Page 1 of 1

subtitle by categories

Posted: Mon May 09, 2005 8:14 pm
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

Re: subtitle by categories

Posted: Tue May 10, 2005 12:43 pm
by garvinhicking
A URL to see this would help, or a screenshot. :)

Regards,
Garvin

Posted: Tue May 10, 2005 2:22 pm
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

Posted: Tue May 10, 2005 2:39 pm
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 :)

Posted: Fri May 13, 2005 3:50 pm
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