Gossamer Forum
Home : Products : Gossamer Links : Discussions :

replacement for <%category_results%>

Quote Reply
replacement for <%category_results%>
Hello :-)

Is it possible to afect how the <%category_results%> tag is generated? I see that Search.pm uses the same routine as <%title_linked%> tag and I don't like it, because my category_results should have VERY different format than title_linked. What I need are the category_results displayed in a way similar to how get_link_cats mod displays it.

Thank you in ahead for any suggestions or advice how to do it :-)

Robo
Quote Reply
Re: [Robo] replacement for <%category_results%> In reply to
Use the loop:



<%loop category_loop%>
<%include subcategory.html%>
<%endloop%>



see the GT::Template docs for more exciting stuff
Quote Reply
Re: [,] replacement for <%category_results%> In reply to
Thank you for your help :-)

Anyway - it is not working - it just returns nothing and there is a blank space in HTML code then :-(

What can be the problem?
Quote Reply
Re: [Robo] replacement for <%category_results%> In reply to
use GT::Template::dump and see what tags you can use.
Post deleted by rayhne In reply to
Quote Reply
Re: [apache] replacement for <%category_results%> In reply to
I had finally made it without categories...
Quote Reply
HELP NEEDED In reply to
Hello everybody :-)

I am still thinking about it over and over again, it is coming back to me, and finally I have decided, that indeed I really SHOULD allow users to see category results.

I would like to have some GLOBAL to override <%category_results%> tag on search-result page or perhaps something else to do the job. I have discribed my problems above in the first post of this topic. The results are really corrupted, because I have made changes to my title_linked.

Can you please help me with that?

Thank you very much in ahead Smile

Robo
Quote Reply
Re: [Robo] HELP NEEDED In reply to
First of all, it always is a good idea to use <%GT::Template::dump%> if you want to know what tags you can use on a template.

You will then see, that on the "search_results.html" template, you can use

<%loop category_results_loop%>
whatever you want to put here
<%endloop%>

Inside the loop you can use all the field names of the category table plus a few more (again, have a look at what the output of <%GT::Template::dump%> is, to see which tags you can use).

Hope that helps.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] HELP NEEDED In reply to
Thank you Yogi !!

Your advices were very helpfull. It works: http://www.frigorista.com/

Thank you again. I feel happy to have it solved - it was a ghost Wink

Robo