Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Modify title linked

Quote Reply
Modify title linked
I am running a non-link directory for organizations (Title) and programs (Programs). Is there a way to modify the title linked bar. I would like to use an if statement for the title tag like (if program)(Program)(else)(Title)(endif). I use this statement almost everywhere else, but I can not find where to modify the title linked bar.
Quote Reply
Re: [jgkiefer] Modify title linked In reply to
The title_linked is hard coded into the core links code. You'll need to use a global - there are some other discussions about using globals to modify title_linked - here's one: http://www.gossamer-threads.com/...i?post=225735#225735
Quote Reply
Re: [jgkiefer] Modify title linked In reply to
Mmm...give this a go. Its a modified version of a global that Alex wrote for me a while ago :)

Code:
sub {
my $vars = shift;
my $title = $vars->{Title};
my $programs = $vars->{Programs};
my $title_linked = $vars->{title_linked};

if ($title) {
$title_linked = "<a href=http://www.site.com>Home</a> &gt; $title ";
} else {
$title_linked = "<a href=http://www.site.com>Home</a> &gt; $programs ";
}

return $title_linked;

}

Hope that helps Smile

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] Modify title linked In reply to
I want the title_linked url's to stay the same as the default, just the text to change.

Code:


Example (I am using the title tag to hold the organization name)

Home | Category | Subcategory | Program or Title (Organization)

<%if Program%><%<a href=What is the default title link - What to put here?>Program</a>
<%else%>
<a href=What is the default title link - Same as above.><%Title</a><%endif%>


I think that the global will work I am just not sure of the syntax.