Without menu

Tips submitted by ASPMaker users

Without menu

Postby mastercafe » Thu Jun 06, 2013 3:54 am

Sometimes we need call from aspmaker table-list to another table-list to see the content and use tools like HighSlide (normally this one), ShadowBox, or similar.
If you use any normal url to see a list of table you have this:
domain . ext/tablelist.asp
We add a parameter to the URL called NOMENU and when use nomenu=1 the we obtain same page without any menu and footer. The result is better to insert into a java-window like HighSlide.

How to do this:
Open from then template supplied from AspMaker 10 the template.asp file.
Go to line 269 aprox. you can see this code:

<% If Not ew_IsMobile() Then %>
<!-- header (begin) --><!-- *** Note: Only licensed users are allowed to change the logo *** -->

<!-- header (end) -->
<% End If %>
<!--##/session##-->

<!--##session menu##-->
<% If ew_IsMobile() Then %>
<div data-role="content" data-enhance="false">
<table class="ewContentTable">
<tr>
<% Else %>
<!-- content (begin) -->
<table cellspacing="0" class="ewContentTable">
<tr>
<td class="ewMenuColumn">
<!-- left column (begin) -->
<!--##=SYSTEMFUNCTIONS.IncludeFile("menu","")##-->
<!-- left column (end) -->
</td>
<% End If %>

Add to this code this lines (one before, one after):
<%if request.QueryString("nomenu")<>"1" then%>
(the code copied up)
<% End If %>

When AspMaker create the new tablelist.asp files you could call the url adding tablelist.asp?nomenu=1 and obtain a simple list to insert into you window.

Hope you agree with this simple solution.
mastercafe
 
Posts: 6
Joined: Sun Jan 27, 2013 1:45 am

Re: Without menu

Postby mastercafe » Thu Jun 06, 2013 3:58 am

Some lines after this you can see the Footer section.
You can do the same procedure to omit this part.

Find this code:

<% If Not ew_IsMobile() Then %>
<!-- footer (begin) --><!-- *** Note: Only licensed users are allowed to remove or change the following copyright statement. *** -->
<div class="ewFooterRow">
<div class="ewFooterText">&nbsp;<%= Language.ProjectPhrase("FooterText") %></div>
<!-- Place other links, for example, disclaimer, here -->
</div>
<!-- footer (end) -->
<% End If %>

Put before and after the same lines:
<%if request.QueryString("nomenu")<>"1" then%>
(code copied)
<% End If %>
mastercafe
 
Posts: 6
Joined: Sun Jan 27, 2013 1:45 am


Return to User Submitted Tips (ASPMaker)