Gossamer Forum
Home : Products : Gossamer Links : Discussions :

<%Title%> Displayed with underscore???

Quote Reply
<%Title%> Displayed with underscore???
Hey, I'm trying to find a tag for displaying the Title with underscores that are added to the Detailed_URL in the Build Advanced mode. I'm using newlinks and toprated globals but they display the detailed url as the out of box default (Detailed/ID.php), but with the <%Title%> added to the detailed url in Build it will insert an underscore for spaces.

So, either how do I update my detailed url in newlinks global to be the same as that in my build options?

or

How do I display a <%Title%> as "Listing_Name" rather than "Listing Name" so I can just add it manually to the newlinks output template?

thanks...
Quote Reply
Re: [pshadow] <%Title%> Displayed with underscore??? In reply to
Hi,

You'll need a global to do that, as the spaces arn't replaced by default.

Something like;

Code:
sub { my $tmp = $_[0]; $tmp =~ s/ /_/sg; return $tmp; }

..and call with;

<%global_name($Title)%>

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!
Quote Reply
Re: [Andy] <%Title%> Displayed with underscore??? In reply to
Perfect! Thanks