Gossamer Forum
Quote Reply
Links::Utils::load_link
Hi. Just an idea.. why not change (in admin/Links/Utils.pm);


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

...with;

Code:
sub load_link {
# -------------------------------------------------------------------
# This will return a fully formatted link.
#
my $_template = $_[0] || 'link';
my $tags = GT::Template->tags;
return Links::SiteHTML::display($_template, $tags);
}

This means you can then define a template for it to use in the link... i.e;

<%Links::Utils::load_link('new_link')%>

..instead of;

<%Links::Utils::load_link('new_link')%>

Nothing major... but would be quite handy when you don't want to have to modify the .pm file to use a different link.html template Smile

Cheers

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!