forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: PKfanSteph on March 07, 2005, 07:06:49 am

Title: Display Title In Navigation Bar
Post by: PKfanSteph on March 07, 2005, 07:06:49 am
On the image page, is it possible to include the image title (or file name if there isn't a title) in the navigation menu?  So it would read something like "Picture Title (File 1/20)".  

Can this be done?

Thanks,

-- Steph B.
Title: Re: Display Title In Navigation Bar
Post by: Nibbler on March 07, 2005, 02:52:37 pm
displayimage.php, find

Code: [Select]
$pic_pos = sprintf($lang_img_nav_bar['pic_pos'], $human_pos, $pic_count);
change to

Code: [Select]
$pic_pos = max($CURRENT_PIC_DATA['title'], $CURRENT_PIC_DATA['filename']) . ' ' . sprintf($lang_img_nav_bar['pic_pos'], $human_pos, $pic_count);