Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Are all category listings controlled by the same file?

Quote Reply
Are all category listings controlled by the same file?
Afternoon (again!)

I have another problem. From what I know about LinksSQL's template system, there is only one template controlling how categories and subcategories are displayed, subcategory.html.

However, I wish to display the categories in a different format on the home page, how should I go around editing the templates so that I can have one category look for the home page, and another for all the others?

Sorry for all these newbe questions, but I'm learning Wink

Thanks for your time!
Scampi.

-----------------------------------------------------
A Little Madness Now And Then,
Is Relished By The Wisest Men
- Mr Willy Wonka
-----------------------------------------------------
Quote Reply
Re: [Scampi] Are all category listings controlled by the same file? In reply to
How about the following in subcategory.html;

<%if FatherID != 0%>
stuff for the sub categories...
<%else%>
stuff for the front page...
<%endif%>

Untested, but I don't see why it shouldn't work.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Are all category listings controlled by the same file? In reply to
Thanks!

That one works quite nicley, I'm going to remember that little trick : )

Thanks again!
Scampi.

-----------------------------------------------------
A Little Madness Now And Then,
Is Relished By The Wisest Men
- Mr Willy Wonka
-----------------------------------------------------