Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Display category editor on detailed page

Quote Reply
Display category editor on detailed page
Hi, I would like to be able to display the editor of a category on the detailed page of a link in that category.

I tried using <%Links::Utils::load_editors~%> on the detailed page template, but that can only be used on category template pages it seems.

Any ideas?

Regards,

Robert
Quote Reply
Re: [mrrob] Display category editor on detailed page In reply to
You can use load_editors in the detailed page as long as you have a 'category_id' template variable set.

Adrian
Quote Reply
Re: [brewt] Display category editor on detailed page In reply to
Thanks, worked a treat.

For the record:

I created a global "detailed_cat_id" to find out the parent category for the link, as described in this thread:

http://www.gossamer-threads.com/...tegory_id%20detailed;

And then use the following tag to set category_id on the detailed page template.

<%set category_id = $detailed_cat_id%>

I was then able to call <%Links::Utils::load_editors~%> on the detailed page and access the category editor information.

Cheers,

Rob