Hi,
I'm trying to outprint navigation links i lcase like this,
/gallery/
/gallery/album/
/gallery/album/subalbum/
/gallery/album/subalbum/picture.jpg
in other words, just print out, what "level" the user is at the momement when he navigates through the pictures..
I'd love to get this all in lowercase. + that each of the outprints become links, so the user can navigate back and forward in the gallerys through them...
I've tried something under
What am i missing?
Quote:
{if !empty($theme.item.title)}
{if $theme.pageType == 'photo'}
{$theme.item.title|markup:strip}/{$theme.parent.title|markup:strip}/<b>{$theme.item.pathComponent|markup:strip}</b>
{else}
{$theme.parent.title|markup:strip}/<b>{$theme.item.title|markup|default:$theme.item.pathComponent|markup:strip}</b>
{/if}
{/if}
Thanks
schlimmest.
Posts: 560
Isn't what you want a breadcrumb exactly? (just in lowercase)
check out ~modules/core/templates/breadcrumb.tpl (somewhere in there )
My Gallery 2: http://gallery.site.hu
Posts: 15
AWSOME
Thanks.
Now, just to get this code in lowercase + outprint like
/album/subalbum/picture.jpg
not like it is now:
/ album / subalbum / picture.jpg
Posts: 27300
@ space:
{if isset($separator)} {$separator} {/if}
@ lowercase: http://smarty.php.net/manual/en/language.modifier.lower.php
Dave
_____________________________________________
Blog & G2 || floridave @ Gallery Team || G2 Theme Contest: +$3k in Prizes!
Posts: 560
as this is smarty, I think |strtolower will just convert it to lowercase
Posts: 15
|strtolower works great, thanks joe7rocks!
But as for the spacing, it dont work totally.
Now it looks like this
/pictures /paris /img_1631.jpg
so, i'm struggeling removing the space _after_ the name..
I'd like for it to be
/pictures/paris/img_1631.jpg