How to distinct archive overview pages (P2.html) from others

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
aschlemmer
Regular
Posts: 70
Joined: Fri Feb 23, 2007 6:13 pm
Location: Freiburg/Germany
Contact:

How to distinct archive overview pages (P2.html) from others

Post by aschlemmer »

Hi all,

is there a variable (like $is_single_entry) to identify an archive page with multiple entries like it can be done with category page with {if $category}?

Thanks for helping me out!
Achim
www.ms-reporter.de
Pharma-unabhängige Infos für Multiple Sklerose-Betroffene
schnellze.it
Einzigartiges Zusammenspiel aus Popfetcher und s9y
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How to distinct archive overview pages (P2.html) from ot

Post by garvinhicking »

Hi!

Yes, $is_single_entry can be used for that! It is only set to true if only a single entry is shown.

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/
aschlemmer
Regular
Posts: 70
Joined: Fri Feb 23, 2007 6:13 pm
Location: Freiburg/Germany
Contact:

Post by aschlemmer »

Hi Garvin,

hups -- this is a misunderstanding :-)

But no problem, I solved it in the following way:

Code: Select all

<title>
{if $category}MS-Reporter.de: {$category_info.category_name} - {$category_info.category_description} 
{elseif $is_single_entry}MS-Reporter.de: {$first_entry.title}{$staticpage_headline}
{elseif $staticpage_pagetitle}MS-Reporter.de: {$staticpage_pagetitle}
{else}MS-Reporter.de: Multiple Sklerose-Weblog für MS-Betroffene und Angehörige.
{/if}</title>
The last {else} is covering all other page types, so everything does now work fine for me.

Thanks very much.
Achim
www.ms-reporter.de
Pharma-unabhängige Infos für Multiple Sklerose-Betroffene
schnellze.it
Einzigartiges Zusammenspiel aus Popfetcher und s9y
Post Reply