Hiding upper levels of breadcrumb links

rmcgonegal

Joined: 2007-09-21
Posts: 10
Posted: Thu, 2008-01-10 21:24

Is it possible with specific albums to hide the upper levels of breadcrumb links, so visitors can't access the rest of the Gallery2 site?

eg. Photos/Canoeing/2007 could appear as Canoeing/2007

but Photos/Family/Hawaii could remain as Photos/Family/Hawaii

Basically, a selective way to say "if album is [X], don't show breadcrumb links above this level"

This would be very useful as it'd mean I wouldn't have to make multiple installs of Gallery2!

Robert McGonegal

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-01-10 22:02

G2 (or WPG2) has no functionality to hide breadcrumbs however You could do this by restricting (guest view) access to higher level albums, the breadcrumbs would still display but you could not navigate (as guest) to other albums.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
rmcgonegal

Joined: 2007-09-21
Posts: 10
Posted: Fri, 2008-01-11 02:44

Ok, so it'd take full blown coding or a plug in to achieve then. Fair enough.

Is there a simple Smarty way to write an if statement that would test true when loading a particular album? Then I could use it to assign a CSS style of "display: none;" for the upper level breadcrumbs. I think they're all tagged uniquely and would be pretty easy to select.

Actually it'd be nice to be able to test the path in general, and include/exclude certain features for a branch of the gallery.

Robert McGonegal

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2008-01-14 00:35

The issue is the smarty template just displays the results, the actual breadcrumb generation happens deep inside Gallery2 Core programs.

I understand what you are asking, if the user does not have access to the album, exclude it from the breadcrumb. I do not believe this is possible, however you might want to try a post in G2 Support and just confirm this..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo