Page 1 of 1

don't show at the startpage

Posted: Tue May 15, 2007 6:29 pm
by Night-Walker
Hi I don't know how to solve this problem,

I want that this code

Code: Select all

        {if $entry.is_extended}
		<h2 class="serendipity_commentsTitle"><a href="{$entry.link}">{$entry.title|@default:$entry.body|truncate:200}</a></h2>
		{else}
		<h2 class="serendipity_commentsTitle_frontpage"><a href="{$entry.link}" >{$entry.title|@default:$entry.body|truncate:200:" ..."}</a></h2>
		{/if}
doesn't shown at the Startpage (it is a Staticpage with the name: frontpage )

How can i do this?


Thanks :)

Re: don't shot at the startpage

Posted: Wed May 16, 2007 11:37 am
by garvinhicking
Hi!

But that code comes from entries and not from a static page?!

Please explain more exactly what you need.

Regards,
Garvin

Posted: Sun May 27, 2007 11:08 am
by Night-Walker
this code is from the entries.tpl but serendipity shows it also if a static page is defined as startpage.(I don't know if it is a Bug or Feature ;) )
But s9y should not show it, if the current page is the startpage.

I want a if querie like this
{if $page=staticpage_firstpage don't show}
but i didn't find any guidance in the technical documentation :(

Posted: Tue May 29, 2007 10:24 am
by garvinhicking
Hi!

You could use something like:

Code: Select all

{if $entry.is_extended}
      <h2 class="serendipity_commentsTitle"><a href="{$entry.link}">{$entry.title|@default:$entry.body|truncate:200}</a></h2>
      {elseif $staticpage_pagetitle != ''}
<h2>Staticpage!!!</h2>
      {else}
      <h2 class="serendipity_commentsTitle_frontpage"><a href="{$entry.link}" >{$entry.title|@default:$entry.body|truncate:200:" ..."}</a></h2>
      {/if}
?

Regards,
Garvin