I wanted to show the breadcrumb everywhere but the root, so I used
Quote:
{if !empty($theme.params.BreadCrumb)}
{if $theme.item.parentId > 0}
which worked, except that this meant the breadcrumb wouldn't show on pages like editing the album, or going to the site admin, or logging in.
Is there a way I can do something like this, in order to get the breadcrumb to only not show up on the root album? (these examples don't work for me)
Quote:
{if !empty($theme.params.BreadCrumb)}
{if $theme.item.parentId > 0 || ($theme.item.parentId = 0 && $theme.pageType != 'album'}
Quote:
{php}
if (($theme.item.parentId > 0) || ($theme.item.parentId = 0 && $theme.pageType != 'album'))
{
{/php}
________________________________________________
NOT a "Twilight" fan... Just a fan of sunsets.
Posts: 130
http://codex.gallery2.org/Gallery2:How_Do_I_Remove_the_Root_Album_Link remotes the root album link from every breadcrumb, which isn't what I'm looking for. I just want no breadcrumb whatsoever on the root album page.
I also made a copy of BreadCrumb.tpl and put it into a modules/core/templates/blocks/local/ folder, and took out:
but it didn't make a difference.
________________________________________________
NOT a "Twilight" fan... Just a fan of sunsets.
Posts: 4342
This is the canonical link for how to show stuff only on the home page:
http://gallery.menalto.com/node/70763#comment-255788
So it's very straightforward to turn this into something that shows everywhere except on the home page.
Posts: 27300
I'm a bit confused. If you are on the root album, the breadcrumb is not a link but just the title of the album. Is that what you want to remove?
Should work if you clear template cache.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 130
You're right. It seems I hadn't deleted both lines, just one. Fixed, and now it's working. Thank you!
________________________________________________
NOT a "Twilight" fan... Just a fan of sunsets.