Gossamer Forum
Quote Reply
link_form
Can link_form present different input options depending on template?

<%if Full_Name eq News%>

<input A>
<%else%>
<input B>

<%endif%>

Even though new templates sets are created the add, & link_form (maybe others) use default template set.
Quote Reply
Re: [gatman] link_form In reply to
I mean include_form
Quote Reply
Re: [gatman] link_form In reply to
Yes, this can be done. The syntax is

<%if Full_Name eq 'The full Name/To Your/Category'%>

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] link_form In reply to
Isn't this what I have in the first post? How different?

Just as an aside, shouldn't the template set be inclusive of all templates of that set? If I have template set "Testing" in a category, shouldn't include_form and others follow? I am missing the something.

[ Takes while to search through the many posts similar, but not quite exact, issues ]

Last edited by:

gatman: Dec 10, 2002, 4:48 AM
Quote Reply
Re: [gatman] link_form In reply to
Single quotes.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] link_form In reply to
RE: Include_form.html

Misses the first if

<%if Full_Name eq 'Press'%>
<%include include_News_companyinfo_form.html%>
<%else%>
<%include include_companyinfo_form.html%>
<%endif%>

Regardless of single quotes, it fails

I have read
http://www.gossamer-threads.com/...i?post=175865#175865
Quote Reply
Re: [gatman] link_form In reply to
Put

<%GT::Template::dump%>

on the bottom of add.html (and/or modify.html), and see what the output is for 'Full_Name'.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] link_form In reply to
Included <%GT::Template::dump%> on bottom of add.html

There is no Full_Name (See attachment of output)

Last edited by:

gatman: Dec 10, 2002, 5:54 AM
Quote Reply
Re: [gatman] link_form In reply to
Then you probably need to use something like:

<%if ID = 2%>

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Post deleted by gatman In reply to

Last edited by:

gatman: Dec 10, 2002, 6:36 AM
Quote Reply
Re: [yogi] link_form In reply to
Bingo - thanks, that does it
Quote Reply
Re: [gatman] link_form In reply to
Although I got the ID format to work - its limiting. Here is how I extended it

<% if ID=2 or ID=5 ..... and so on....%>


In the "dump" should any variable be able to be matched against? Example

<%if Category_Template eq 'NewsItems' %>

yada yada yada

The Help - Template Syntax doesn't seem clear on this.

Last edited by:

gatman: Dec 18, 2002, 6:12 AM
Quote Reply
Re: [gatman] link_form In reply to
Yes you can match against any string.