MsFloridaNative
Starting Member
3 Posts |
Posted - June 25 2008 : 17:01:22
|
How do I create a home page that is different from all the other pages, while utilizing shoppage_header.htm and shoppage_trailer.htm. I don't want the left nav to show up on the home page. Also, I have several pages where we list services and want their layout to be seperate from the product pages (hiding the left nav). How do I do this? |
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - June 26 2008 : 00:13:38
|
there are lots of ways to do it, one way is to add if statements around the beginning/end of the chunks of html that you want to hide in certain pages, eg in shoppage_header/trailer.htm you'd find the relevant bits of htm that display the left panel and wrap it around an if statement, something like.....
<% if (instr(lcase(request.ServerVariables("script_name")), "default.asp") > 0) then ' Do not display the left panel on default.asp %> put your non-left-panel html here <% else ' Display the left panel %> put your left panel html here <% end if %>
but that might start getting complicated because of the way the surrounding html works for panels.
as a possible alternative you might want to use our vpasp panel splitter addon, because on that you put your left panel contents into a separate file, by default it'll show the same panels as normal, but you can also have a call to the panel function in custom-created asps, eg so that default.asp, instead of calling shoppageheader/shoppagetrailer functions you'd call:
PanelStartPage "YES","NO" (first argument is for top panel display, second argument is for left panel display) PanelEndPage "NO","YES" (first argument is for right panel display, second argument is for bottom panel display)
we've recently used the panel splitter on various vpasp sites for things similar to this, including adding a right-panel which can also be optionally shown/not-shown on certain pages in the same way.
It also has the general bonus of being able to keep each relevant chunk of the header/trailer in separate files so it's easier to spot/maintain each chunk.
see: VP-ASP Panel Splitter: http://www.bigyellowzone.com/shopexd.asp?id=26
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
|
|