Customize title bar

Astor

Joined: 2005-12-15
Posts: 65
Posted: Tue, 2008-05-06 16:13

I used Pgtheme. If i enter in a photo page of my album i have this title bar:
Title Album - Title Photo
for example:
Rome - Colosseo

I wont inverted this situation to obtain :
Title Photo - Title Album
example:
Colosseo - Rome

How I can make to customize title bar only in photo page?
(Excuse bad english)

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 9507
Posted: Tue, 2008-05-06 16:25

theme.tpl

    <title>
    {if $theme.params.site}
      {$theme.params.site} - 
    {/if}
    {$theme.item.title|default:$theme.item.pathComponent|markup:strip}</title>

You would have to do a conditional statement to change it using:

{if $theme.pageType == 'photo'}
.........
{else}
    <title>
    {if $theme.params.site}
      {$theme.params.site} - 
    {/if}
    {$theme.item.title|default:$theme.item.pathComponent|markup:strip}</title>
{/if}

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
Astor

Joined: 2005-12-15
Posts: 65
Posted: Tue, 2008-05-06 16:46

Tnx for reply.
Your code work to do a conditional statement.
But how I can make to invert album title and photo title?

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 9507
Posted: Tue, 2008-05-06 18:59
    <title>    {$theme.item.title|default:$theme.item.pathComponent|markup:strip}
    {if $theme.params.site}
      - {$theme.params.site}  
    {/if}</title>

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments