Gossamer Forum
Home : Products : Gossamer Links : Discussions :

'title_linked' error

Quote Reply
'title_linked' error
I'm getting a lot of the 'title_linked' tag error (mainly on my detail pages), since the place where this was calculated has changed.

If you are getting it, and want to figure out how to get around it, here is a very messy hack that Alex might be able to clean up:

Code:
my ($cat_id, $cat_name) = %{$LINKDB->get_categories ($link->{'ID'})}; ## Returns the category name & ID from link ID
$link->{'title_linked'} = Links::Build::build ('title_linked', "$cat_name/$link->{Title}");
## Fix up the HTML references
my ($begin, $url, $output); ## setting up for a very, very complicated regex, taken from Links.pm clean_output
$link->{'title_linked'} =~ s!(<a[^>]+href\s*=\s*["']*)$CFG->{build_root_url}/?([^"'>]*)!
($begin, $url) = ($1, $2);
$output = "$1$CFG->{db_cgi_url}/page.cgi?g=" . $IN->escape($2);
$output;
!eisog;
This will probably not work for everyone, in every case, but has solved the problem for me in a couple of them. Where you add it depends on where you are getting the error.


PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ


Subject Author Views Date
Thread 'title_linked' error pugdog 2066 Dec 12, 2000, 12:47 AM
Thread Re: 'title_linked' error
Alex 2001 Dec 13, 2000, 6:47 PM
Post Re: 'title_linked' error
pugdog 2002 Dec 13, 2000, 8:22 PM