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.
Jan 13, 2003, 5:42 AM
Veteran (1921 posts)
Jan 13, 2003, 5:42 AM
Post #2 of 4
Views: 1930
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
Jan 13, 2003, 9:04 AM
Veteran / Moderator (18441 posts)
Jan 13, 2003, 9:04 AM
Post #3 of 4
Views: 1924
Mmm...give this a go. Its a modified version of a global that Alex wrote for me a while ago :)
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> > $title ";
} else {
$title_linked = "<a href=http://www.site.com>Home</a> > $programs ";
}
return $title_linked;
}
Hope that helps
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!
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> > $title ";
} else {
$title_linked = "<a href=http://www.site.com>Home</a> > $programs ";
}
return $title_linked;
}
Hope that helps
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!
Jan 13, 2003, 5:52 PM
User (376 posts)
Jan 13, 2003, 5:52 PM
Post #4 of 4
Views: 1905
I want the title_linked url's to stay the same as the default, just the text to change.
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.
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.