Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Incorporate search_engine templates in default templates

Quote Reply
Incorporate search_engine templates in default templates
Hi,

Is there a way that we could incorporate search_engine templates in the default templates? I tried <if t=search_engine%>Special link for search engines<%else%>Standard link<%endif%>. But the tag <%if t=search_engine%> doesn't work, it does nothing. It would be great if that works, because we will not have to do templates changes twice when there is changes to do in category_list.html, forum_view.html and all others search engine templates.

Thank you very much!

François
Quote Reply
Re: [Franco] Incorporate search_engine templates in default templates In reply to
<%if t eq 'search_engine'%>

should work....

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Incorporate search_engine templates in default templates In reply to
Thank you, Ivan! But the tag <%if t eq 'search_engine'%> doesn't work. It seem that "t" variable is not available anywhere.

François

Last edited by:

Franco: Jul 22, 2002, 11:39 AM
Quote Reply
Re: [Franco] Incorporate search_engine templates in default templates In reply to
<%GT::Template::dump%> ...

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Incorporate search_engine templates in default templates In reply to
"t=search_engine" is in hidden_query variable (ex.: hidden_query = "guest=1999&t=search_engine"). But I don't know how to tell to the script: if the word "search_engine" is in the variable hidden_query than do this action... Something like: <%if hidden_query [contains the word] 'search_engine'%>Do this action<%else%>Do this other action<%endif%>

Any idea?

Thank you! Smile

François
Quote Reply
Re: [Franco] Incorporate search_engine templates in default templates In reply to
<%if hidden_query contains 'search_engine'%>

should do the job.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Incorporate search_engine templates in default templates In reply to
Simple! It works.

Thank you! Smile

François