Gossamer Forum
Home : Products : Gossamer Links : Discussions :

unknow tag 'detailed_url'

Quote Reply
unknow tag 'detailed_url'
I just do not know why it return me the unknow tag error.

IN Links::Utils.pm , i have copy the sub load_link and rename it to sub load_link_short, and
also create a tempalate link_short.html which is 100% copyed from link.html,


sub load_link_short {
# -------------------------------------------------------------------
# This will return a fully formatted link.
#
my $tags = GT::Template->tags;
return Links::SiteHTML::display('link_short', $tags);
}


It seems it should work, however when i click modify.cgi, all other tag is ok. while detailed_url tag is not work.

however when i modify sub load_link_short as below , it works fine.

sub load_link_short {
# -------------------------------------------------------------------
# This will return a fully formatted link.
#
my $tags = GT::Template->tags;
return Links::SiteHTML::display('link', $tags);
}



has anyone found this situation?
Quote Reply
Re: [courierb] unknow tag 'detailed_url' In reply to
Was it giving this error before you edited the main file? Sound like you don't have detailed page building set to 'on' in your LSQL setup Wink In your templates, you should also use;

<%if detailed_url%>
<%detailed_url%>
<%endif%>

Hope that helps Tongue

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: [courierb] unknow tag 'detailed_url' In reply to
That's because the "detailed_url" tag is built in Links/SiteHTML.pm, whenever "link.html" is used, but not for your "link_short.html" template.

Solutions:

a) either copy the sub site_html_link to site_html_link_short in SiteHTML.pm

or

b) always use "link.html", but insert some <%if link_short%> conditions

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [Andy] unknow tag 'detailed_url' In reply to
Thanks Andy. everything is ok before edit.it seems that Yoji gives a right direction.
Quote Reply
Re: [yogi] unknow tag 'detailed_url' In reply to
It works perfect by first option. THanks again

by the way how is the secound way? how to defined it first?

Thanks