don't show at the startpage

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Night-Walker
Regular
Posts: 20
Joined: Mon Jul 25, 2005 4:05 pm

don't show at the startpage

Post 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 :)
Last edited by Night-Walker on Sun May 27, 2007 10:56 am, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: don't shot at the startpage

Post by garvinhicking »

Hi!

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

Please explain more exactly what you need.

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/
Night-Walker
Regular
Posts: 20
Joined: Mon Jul 25, 2005 4:05 pm

Post 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 :(
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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