Page 1 of 1

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

Posted: Sun May 27, 2007 2:57 pm
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

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

Posted: Tue May 29, 2007 10:28 am
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

Posted: Tue May 29, 2007 10:35 am
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