change title order

c0ntrite

Joined: 2008-04-29
Posts: 4
Posted: Tue, 2008-04-29 17:03

hi! i would like to have a title that displays the child album first then follows all of the parent albums. The following code displays the album title in the opposite, parent first then child album:

<title>
{foreach name=parent from=$theme.parents item=parent}
{if !$smarty.foreach.parent.last}
{$parent.title|markup:strip|default:$parent.pathComponent}
{else}
{$parent.title|markup:strip|default:$parent.pathComponent}
{/if}
{if isset($separator)}
{$separator}
{/if}
{/foreach}

{if ($theme.pageType == 'admin' || $theme.pageType == 'module')}
{$theme.item.title|markup:strip|default:$theme.item.pathComponent}
{else}
{$theme.item.title|markup:strip|default:$theme.item.pathComponent}
{/if}
</title>

so what i would like to do is the opposite of what this code does. this was taken from the ebony theme. i'm new to smarty and i'm pretty much having a hard time editing this code. thanks!