Is there a simple way to disable the breadcrumb on the intermediate image display page when the image has been displayed from a set of searched thumbnails?
I have a number of albums that contain a large number of images that are hidden from browsing (via this mod: http://forum.coppermine-gallery.net/index.php/topic,76815.0.html) , but visible via search. When an image in one of these albums is displayed, the breadcrumb points to the hidden album and is confusing as the album has a cryptic name and the user never sees it when browsing.
Copy the function theme_display_breadcrumb from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist.
Then, find
starttable('100%');
and above, add
global $CPG_PHP_SELF;
$superCage = Inspekt::makeSuperCage();
if ($CPG_PHP_SELF == 'displayimage.php' && $superCage->get->keyExists('album') && $superCage->get->getAlpha('album') == 'search') {
return;
}
That worked, Thanks!
Actually, perhaps a more useful solution would be to replace the normal breadcrumb with a simple link that would return the user to the search results, just as the 'return to thumbnail page' icon does. Is that simple to do? I know that is a little redundant, but the link would be more obvious to users accustomed to using the breadcrumb to navigate.
Replace the custom code with
global $CPG_PHP_SELF, $lang_meta_album_names;
$superCage = Inspekt::makeSuperCage();
if ($CPG_PHP_SELF == 'displayimage.php' && $superCage->get->keyExists('album') && $superCage->get->getAlpha('album') == 'search') {
$breadcrumb = '<a href="thumbnails.php?album=search">'.$lang_meta_album_names['search'].'</a>';
}
Bingo. Thanks again.
Please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
tag your thread as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.