Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Different Add Form?

Quote Reply
Different Add Form?
I'm looking to have a different add form for certain categories. I searched this forum and found something like this:

<%if ID=13%>
<%include include_other_form.html%>
<%endif%>
<%if ID=28%>
<%include include_other_form.html%>
<%endif%>
<%if ID=20%>
<%include include_other_form.html%>
<%endif%>

<%ifnot ID%>
<%include include_form.html%>
<%endif%>

(I can't seem to find the thread anymore!)............

It works but, when you try to add a listing to any category besides 13, 28 and 20, it doesn't show any form. Just:

Please completely fill out the form below, and we'll add your link as soon as possible.

and below that is an "Add Link" button.

Could someone please let me know what is wrong and how, if so, can i fix it.

Regards, Blake
Quote Reply
Re: [blakeb] Different Add Form? In reply to
Try the following:
Code:
<%if ID=13%>
<%include include_other_form.html%>
<%elsif ID=28%>
<%include include_other_form.html%>
<%elsif ID=20%>
<%include include_other_form.html%>
<%else%>
<%include include_form.html%>
<%endif%>
In your code the last 'ifnot' condition is never true because 'ID' is always set when go to the add form from a category.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Different Add Form? In reply to
Works great! Thanks alot........