Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to do a category specific include on the details page?

Quote Reply
How to do a category specific include on the details page?
I use PhpAdsNew on my list and wanted to pull in ads specific to the category of the detail page.

I thought I could do something like <%if Category%> but it doesn't look like category is a variable on the details page.
---
I'm a very boring lady, very, very boring.
Quote Reply
Re: [Cleo_] How to do a category specific include on the details page? In reply to
Yes, category info isn't available in the detailed page because the link may be in multiple categories. You'll have to write a global to fetch it yourself.

Adrian
Quote Reply
Re: [brewt] How to do a category specific include on the details page? In reply to
I didn't think about something being in multiple categories.

Think it would be possible to have it just use the first one found or something?
---
I'm a very boring lady, very, very boring.