Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [webmaster33] Different add.cgi template for each service

Quote Reply
Re: [webmaster33] Different add.cgi template for each service In reply to
This is what I am doing to serve 5 different add listing form.

1) Create different include_form.html. One for each type you want and name it like include_form_listing_type_1.html, include_form_listing_type_2.html.. etc


2) Create a new ENUM table/field called Categorytype in Category properties and list all different types in select options.

3) In add.html use below code

<%if Categorytype eq 'type1'%><%include include_form_listing_type_1.html%>
<%elseif Categorytype eq 'type2'%><%include include_form_listing_type_2.html%> .......

so on till however many form you have.

<%endif%>

I am sure you and other experts can figure out many other easier ways, however I have been using above method, I hope it helps.

Vishal

Vishal
-------------------------------------------------------
Subject Author Views Date
Thread Different add.cgi template for each service webmaster33 2980 Dec 7, 2005, 12:43 PM
Thread Re: [webmaster33] Different add.cgi template for each service
VishalT 2886 Dec 7, 2005, 1:30 PM
Thread Re: [SWDevil.Com] Different add.cgi template for each service
webmaster33 2901 Dec 7, 2005, 3:57 PM
Post Re: [webmaster33] Different add.cgi template for each service
VishalT 2870 Dec 7, 2005, 4:10 PM
Post Re: [SWDevil.Com] Different add.cgi template for each service
webmaster33 2862 Dec 8, 2005, 5:01 PM