VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Custom Home Page
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

3 Posts

Posted - June 25 2008 :  17:01:22  Show Profile  Reply with Quote
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?

Senior Member

United Kingdom
1898 Posts

Posted - June 26 2008 :  00:13:38  Show Profile  Visit devshb's Homepage  Reply with Quote
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
' 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.

VP-ASP Panel Splitter:

Simon Barnaby
[email protected]
Web Design, Online Marketing and VPASP addons
Go to Top of Page

VP-ASP Expert

590 Posts

Posted - June 28 2008 :  11:32:02  Show Profile  Reply with Quote
The simplest way is to open your default.asp page and enter the front page code in there. This will then be called by the homepage and surrounded by the header and footer pages.

Sex toys from a UK sex shop
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000