Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Controlling the breadcrumb??

Quote Reply
Controlling the breadcrumb??
Currently I have this:

<%Links::Utils::format_title($title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 0, link_type => 2)%>


which displays for example:

[Category-linked] > [SubCategory-linked] > Detailed-Page

Is there any way to have the output without the current page, that is:

[Category-linked] > [SubCategory-linked]

Thanks,
--Jo

Thanks,
--Jo

Last edited by:

iplay: Jan 30, 2016, 6:25 AM
Quote Reply
Re: [iplay] Controlling the breadcrumb?? In reply to
Hi,

I have not done it before, but you should be able to do it with:

Code:
<%Links::Utils::format_title($title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 0, link_type => 2, include_last => 0 )%>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Controlling the breadcrumb?? In reply to
Thanks Andy.

I've tried it and we seem to be getting there :)

If the page is a category page, that cuts out the category name at the end of the breadcrumb, which is what's wantedAngelic

But if the page is a detailed page, it keeps the entire breadcrumb, including the detailed page titleMad

Do you know of any tweaks please?

Thanks,
--Jo
Quote Reply
Re: [iplay] Controlling the breadcrumb?? In reply to
Hi,

What template is the breadcrumb code in? I don't see any reason why it would be doing that. All its doing (same on cat page, and detailed), is:

Code:
$ret .= '</span>' if $_ == $#$title_loop and not $options{no_span} and $options{include_last};

If you still can't get it going, I'll have a peek tomorrow.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Controlling the breadcrumb?? In reply to
The breadcrumb is in include_header.html which is called in both category.html and detailed.html. I'll try a bit more and let you know.

Thanks,
--Jo