forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: ktdt00 on September 22, 2006, 11:17:46 pm

Title: Breadcrumb on Main Page v.1.4.9
Post by: ktdt00 on September 22, 2006, 11:17:46 pm
Hello,

I've searched high and low...

I have "breadcrumb" listed on the Config | Album List View | The content of the Main Page section (eg. breadcrumb/catlist/alblist) but the breadcrumb does not actually show on the main page. I want it to because I am integrated with PHPBB and I have modified the breadcrumb array so that it always begins with a pointer back to the main board (per several other posts here).

There is an article explaining how to do this for v.1.3.x but it does not work for v.1.4.x. I've tried to extrapolate the solution from 1.3 to 1.4 without success. Per the manual it would appear as though this should just work - given that "breadcrumb" is a choice to have displayed on the main page. Still, I've read several posts from folks that indicate the breadcrumb is not supposed to appear on the main page regardless of what the instructions say.

I didn't know if this was a themes/skins/templates issue or an integration issue but the description of this topic seemed to fit better than the other so I chose it.

Any assistance would be appreciated.

My gallery is at www.campstockton.com/coppermine if you want to have a look.

Title: Re: Breadcrumb on Main Page v.1.4.9
Post by: Tranz on September 23, 2006, 03:46:08 am
Why don't you have a link to the forum in the system links instead of the breadcrumb? I think having it as you want would be confusing, and add clutter as you drill down deep into the gallery.
Title: Re: Breadcrumb on Main Page v.1.4.9
Post by: ktdt00 on September 23, 2006, 04:10:39 pm
Hello and thanks for your response.

If by "system links" you mean the links at the top of the page I have already done that.

The majority of navigation in PHPBB is breadcrumb driven so folks don't normally look up there.

Thanks again!!

Title: Re: Breadcrumb on Main Page v.1.4.9
Post by: Sami on September 24, 2006, 11:05:44 am
open up  index.php and find these lines ( around 778~780) :
Code: [Select]
case 'breadcrumb':
                        // Added breadcrumb as a separate listable block from config
                        if (($breadcrumb != '' || count($cat_data) > 0) && $cat != 0) theme_display_breadcrumb($breadcrumb, $cat_data);

and remove && $cat != 0 from if statment  so those line should be look like these:

Code: [Select]
case 'breadcrumb':
                        // Added breadcrumb as a separate listable block from config
                        if ($breadcrumb != '' || count($cat_data) > 0) theme_display_breadcrumb($breadcrumb, $cat_data);

I don't have my test bed to test it
hope it will work for you ....
Title: Re: Breadcrumb on Main Page v.1.4.9
Post by: wkdwich on July 15, 2011, 07:10:23 pm
Just to help someone else out.. the code as posted was close.. missing {

Code: [Select]
                case 'breadcrumb':
                    // Added breadcrumb as a separate listable block from config
//                    if (($breadcrumb != '' || count($cat_data) > 0) && $cat != 0) {
//                        theme_display_breadcrumb($breadcrumb, $cat_data);
if ($breadcrumb != '' || count($cat_data) > 0) {
theme_display_breadcrumb($breadcrumb, $cat_data);
                    }
                    break;