Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Can someone please help me with this?

Quote Reply
Can someone please help me with this?
I have made a /Detailed page which can be seen at http://www.scriptz.com/Detailed/93.html



The part i'm having trouble with is the "Category" part in the table. For this, I am using <%title_linked%> however, it puts off a link that looks like this:



Home : Java Scripts : Navigation : Menus : Cool Table Menu



What I want it to say, is just:



Java Scripts : Navigation : Menus



How can I get rid of the other parts?



Thanks alot,

Adam
--------------------
Scripts - Powered by Links-SQL
Quote Reply
Re: [SkuZZy] Can someone please help me with this? In reply to
Maybe something like a new global called 'title_linked_mod'

Code:
sub {
my $title = shift;
$title =~ s/<a href(.+?)>Home<a> ://i; # get rid of the 'home' bit
$title =~ s/: [\w\s]$//i;
return $title;
}

Untested, but that should work.

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] Can someone please help me with this? In reply to
Andy,



I much appreciate your help! However, it does not seem to have any effect. Is this how I should be putting it?



<%detailed_link_mod($title_linked)%>



And also, what if I want to use two different global mods in one link? Can I just do something like this?



<%detailed_link_mod,remove_build_index($title_linked)%> ???



Thanks,

Adam
--------------------
Scripts - Powered by Links-SQL