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


Quote Reply
Re: 'title_linked' error In reply to
Hi,

Can you explain what this is trying to do? I'm not sure I see it.. =)

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: 'title_linked' error In reply to
On my detailed pages, and extra pages, I want to use the linked title tag. But it's not in the same place as it was before. In order to use the title_linked tag in detail pages, or pages that are generated outside of the build procedure.

As I said, not everyone may be hitting it, but that is one tag that I was getting errors with trying to add features to the site. The other is the "Days_Old" tags for the updated graphics.

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