Hiding serendipity_entry_body at extended mode

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
dale
Regular
Posts: 14
Joined: Tue Feb 14, 2006 3:36 am
Contact:

Hiding serendipity_entry_body at extended mode

Post by dale »

I am trying to hide the main body when the post is extended. So at entries.tpl of the respective theme, I did:

Code: Select all

{if not $entry.is_extended}
<div class="serendipity_entry_body">
     {$entry.body}
</div>
{/if}
Is this an elegant way to do this? I don't want to break anything...

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

Re: Hiding serendipity_entry_body at extended mode

Post by garvinhicking »

Hi!

Yes, that is a very elegant way to do this. Perfectly in order. :-)

Best 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/
dale
Regular
Posts: 14
Joined: Tue Feb 14, 2006 3:36 am
Contact:

Post by dale »

Thanks for the speedy reply Garvin. :D
Post Reply