subtitle by categories

Found a bug? Tell us!!
Post Reply
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

subtitle by categories

Post by Timbalu »

Has anybody discoverd this with s9y 0.8

If you klick to view entries by category, the page shows the subtitle of
last entry in header(< h2 >< a class="homelink2" etc)
I think this is not the best of all practises...

Any hints?
Ian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: subtitle by categories

Post by garvinhicking »

A URL to see this would help, or a screenshot. :)

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/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Post by Timbalu »

I changed index.tpl already to {$blogDescription}, which is the only working version for me.
Thats a strange behaviour while the default index.tpl is not working either.

Code: Select all

    <h2><a class="homelink2" href="{$serendipityBaseURL}">{$head_subtitle|@default:$blogDescription}</a></h2>
When I recognized the problem described, I had some like this in my index.tpl

Code: Select all

{if $head_subtitle}
    <h2><a class="homelink2" href="{$serendipityBaseURL}" style="color:#C03F00;">{$entry.title}</a></h2>
{else}
    <h2><a class="homelink2" href="{$serendipityBaseURL}">{$blogDescription}</a></h2>
{/if}
Ian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

"A URL to see this would help, or a screenshot. :)"

This means: I don't understand what you're talking about, thus I need to see it happen on your blog/screenshot :)
# 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/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Post by Timbalu »

After all I solved my problem, thanks to Garvin.

Code: Select all

<div id="serendipity_banner">
    <h1><a class="homelink1" href="{$serendipityBaseURL}"><img src="{$serendipityBaseURL}some/path/to/header.png" title="{$head_title|@default:$blogTitle}" alt="{$head_title|@default:$blogTitle}" border=0 width=326 height=26 /></a></h1>
{if $head_subtitle}
    <h2><a class="homelink2" href="{$serendipityBaseURL}" style="color:#C03F00;">{$head_title|@default:$blogTitle}</a></h2>
{else}
    <h2><a class="homelink2" href="{$serendipityBaseURL}">{$head_subtitle|@default:$blogDescription}</a></h2>
{/if}
</div>
see http://www.s9y.org/forums/viewtopic.php?t=608&start=30
Post Reply