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
 2 contents on home page
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

VP-ASP New User

141 Posts

Posted - July 14 2009 :  07:04:10  Show Profile  Reply with Quote
i have to make 2 sections on home page...
so to the home page template, i have to create 2 different contents
how can i do it?
have added both contents in database.
but how can we show both on home page

plz do help me
thanks in advance


Senior Member

United Kingdom
1898 Posts

Posted - July 14 2009 :  08:15:21  Show Profile  Visit devshb's Homepage  Reply with Quote
You'd need to code-up your own function to get/show it. However, if you're using sqlserver then you'd need to be careful to avoid the various text/ntext (memo) bugs which would show blank data if you don't reference the fields in the right order etc.

We've got an addon which does that:
BYZ110 - Content Management Enhancements for VP-ASP:

It allows you to show a given content chunk in any page/panel (ie you can show multiple content chunks for different content records on the same page/panel), and also has the benefit of being able to create static content pages (eg "aboutus.asp" instead of "shopcontent.asp?type=aboutus") which use static filenames but dynamic/data retrieval, and it also deals with the sqlserver text/ntext bugs.

To show the main message of the content chunk you'd then just call the function like this in your default.asp page or side panels etc:

<% BYZ_CMS_SHOW_BODYONLY("homecontentchunk1","","N") %>

<% BYZ_CMS_SHOW_BODYONLY("homecontentchunk2","","N") %>

etc (where "homecontentchunk1" is the type that you've given the content record)

There's also a function for the title if you want to show that too (BYZ_CMS_SHOW_TITLEONLY), and a function to simulate the entire contents page.

Simon Barnaby
[email protected]
Web Design, Online Marketing and VPASP addons

Edited by - devshb on July 14 2009 08:16:51
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000