Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

cat_id problem

Quote Reply
cat_id problem
I am trying modify the script. I want different things to happen based on different cat_id's. When I click on a category though (no forum_id is true) cat_id is unknown. Is there a better way to do this? I'm just doing <%cat_id%> to print the cat_id and it returns an unknown tag error. On the forum it prints the cat_id just fine.

Thanks.
Quote Reply
Re: [adunphy] cat_id problem In reply to
You might try cat_id_fk, which is sometimes available in cases where cat_id is not. You can also try adding a tag: <%GT::Template::dump%> to display a table of all template variables available at the point of the dump.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] cat_id problem In reply to
The two options are <%cats_query%> or doing a loop through everything. (for anyone who wants the info). Doing a dump of everything available was really nice. Thanks.