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
-------------------------------------------------------
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
-------------------------------------------------------