Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Crumb Titles on New Template Pages

Quote Reply
Crumb Titles on New Template Pages
  
I updated the ContactPage plugin templates to GLinks 3.0 and I'm having a problem getting the crumb title to display.

Trying to get:
Home > Contact Page
Home > Contage Page Sent

to appear on top of the pages.

This is the relevant template code. Somehow I need to setup $main_title_loop properly.
Code:

<div class="crumb"><%Links::Utils::format_title($main_title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div>


Anyone know how to do this ?

Regards,
Peter Puglisi
www.ausfreedom.com
Ultimate Freedom is our game.

Last edited by:

rocco: Apr 15, 2005, 7:46 AM
Quote Reply
Re: [rocco] Crumb Titles on New Template Pages In reply to
Hi,

Do you mean like;

Home: Cat 1: Sub Cat
.. link here

Home: Cat 1: Sub Cat2
.. link here

Home: Cat 1: Sub Cat
.. link here

?

If so, I think the option you need is in Setup > build_new_gb. Set this option to "Yes", and it should do what you want :)

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] Crumb Titles on New Template Pages In reply to
Hi Andy,

I'm referring specifically to the contact_page.html and contage_page_sent.html templates. Just trying to get Home > Contact Page to show up just like most of the other templates in GLinks 3. Apart from that, everything works fine.

Regards,
Peter Puglisi
www.ausfreedom.com
Ultimate Freedom is our game.
Quote Reply
Re: [rocco] Crumb Titles on New Template Pages In reply to
Hi,

You should have made your first post a bit clearer Wink

By the sounds of it, you need a global. There are a ton around here. The most likely one you'll want to use, is this;

category_title_linked =>

Code:
sub {

my $id = $_[0];
my $db = $DB->table ('Category');
my $cat = $db->get ($id, 'HASH', ['Name','Full_Name']);
my $title_linked = Links::Build::build ('title_linked', $cat->{Full_Name} . '/' . ' ');
return $title_linked;
}

..and call with;

<%category_title_linked($ID)%>

That should do it :)

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] Crumb Titles on New Template Pages In reply to
LOL.....Crazy.. I think I will go to bed and rewrite this post tomorrow.

Regards,
Peter Puglisi
www.ausfreedom.com
Ultimate Freedom is our game.