Easy way to know category index page?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
tpost
Regular
Posts: 77
Joined: Fri Sep 21, 2007 1:45 am

Easy way to know category index page?

Post by tpost »

Is there a Smarty variable for S9Y that will detect if a page is the category index page?

I would use this variable in the template index.tpl.

Thanks for reading!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Easy way to know category index page?

Post by garvinhicking »

Hi!

You should be able to detect category view's by:

Code: Select all

{if $view == 'category'}
...
{/if}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply