Gossamer Forum
Quote Reply
Get Detailed URL
With this global it return the detailed url on a detailed page. The output is thus:

http://www.website.com/topic/104.html

How do I change this when using the StaticURLtr plugin as my detailed page is acuaaly at:

http://www.website.com/topic/computing/online-configs-104.html

Here's the global:

sub {
my $id = shift;
if ($id and $CFG->{build_detailed}) {
return "$CFG->{build_detail_url}/ $id$CFG->{build_extension}";
}
}

<%get_det($ID)%>

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] Get Detailed URL In reply to
Use the <%detailed_url%> tag instead. No globals required.

Adrian
Quote Reply
Re: [brewt] Get Detailed URL In reply to
Sorry, I need this on the actual detailed page.

Result: Unknown Tag: 'detailed_url'

--------------------------------
Privacy Software

Last edited by:

BLOOD: Feb 7, 2006, 11:01 AM
Quote Reply
Re: [BLOOD] Get Detailed URL In reply to
Oh I see, I have it - Cool!

<%Links::Utils::load_link_info%>
<%detailed_url%>

Works on static pages only - just what I wanted thanks!

--------------------------------
Privacy Software