Gossamer Forum
Home : Products : Gossamer Links : Discussions :

<%loop category_results_loop%>

Quote Reply
<%loop category_results_loop%>
Hi,

In the <%loop category_results_loop%> - how do you insert the link to the actual category?

Is there a tag - or should I make the link manually - ie <%db_cgi_url%>/page.cgi?g=<%ID%> (which does work if you use numbers as categories)

Cheers
Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] <%loop category_results_loop%> In reply to
Try using <%title_linked%>.
Quote Reply
Re: [afinlr] <%loop category_results_loop%> In reply to
Yes it works but I just want the actual category - not the path...

Any ideas?
Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] <%loop category_results_loop%> In reply to
If you use

<%if Username eq 'asdf'%><%GT::Template::dump%><%endif%>

- change asdf to whatever you want - and put it in the footer template. Then you can use it to see all your available tags on any page by adding &Username=asdf to the end of your (dynamic) url.

Have a look and see what is in the category_results_loops tag to see what you can use.

Laura.
The UK High Street
Quote Reply
Re: [afinlr] <%loop category_results_loop%> In reply to
yeah I did - can't find anything that links to the category except <%title_linked%> - guess I need to make a global Frown

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] <%loop category_results_loop%> In reply to
I've just had a quick look at the tags available on my site. Couldn't you use something like this:

<a href="<%db_cgi_url%>/page.cgi?g=<%Full_Name%>"><%Name%></a>

Last edited by:

afinlr: Apr 15, 2003, 1:34 PM
Quote Reply
Re: [afinlr] <%loop category_results_loop%> In reply to
True - but I need the converted version - ie.

this_is_my_category and not with spaces - guess I need a global..

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] <%loop category_results_loop%> In reply to
Ah yes - I don't have any spaces in my Full_Name field.

You'll need a simple global that reads in Full_Name, changes it with

$DB->table('Category')->as_url(Full_Name);

and gives back the result.

Laura.
The UK High Street
Quote Reply
Re: [afinlr] <%loop category_results_loop%> In reply to
Got it - thanks Laura

Klaus

http://www.ameinfo.com