Gossamer Forum
Home : Products : Gossamer Links : Discussions :

custom detailed pages?

Quote Reply
custom detailed pages?
I know how to do custom templates for different categories in my database. Is there a way to have a custom Detailed page design for a certain category??

Thanks,

Rich
Quote Reply
Re: [richonmaui] custom detailed pages? In reply to
I have used detailed.html as the basis of my detailed pages.

Within detailed.html I call other templates... det1.html, det2.html using various conditions.
Quote Reply
Re: [Alba] custom detailed pages? In reply to
Can you explain how you call the different detail pages? What variable do you use and where? How do you tie a given detail page to a category?

Thanks,

Rich
Quote Reply
Re: [richonmaui] custom detailed pages? In reply to
There's a few ways of doing this. You can either set a custom template set for the category (edit the category and enter the template set name in the Category_Template field), or you can edit the detailed.html template and put if statements in there.

If you want to use a different detailed page per category, then the first method will probably work better for you. You'll want to create a new template set directory, and create a .tplinfo file to make your new template set inherit from the luna (or your current) template set:
Code:
{
inheritance => '../luna'
}

Then in that directory, add your custom detailed.html template.

Adrian