Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

category field in links template

Quote Reply
category field in links template
I want to include the category field 'Name' within links.html & detailed.html
At present it is not recognising the field and it is not available when doing a template dump.

Can anyone explain how to do this?

Thanks
Alba
Quote Reply
Re: [Alba] category field in links template In reply to
http://www.sqlwidgets.com/...ces/Detailed/10.html

:)

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!
Quote Reply
Re: [Andy] category field in links template In reply to
Thanks Andy, unfortunately this produced the following error: (global named det_name)


A fatal error has occured:Can't call method "fetchrow" on an undefined value at (eval 55) line 7.
Please enable debugging in setup for more details.
Stack Trace
======================================
Links (18518): Links::environment called at /path/to/url/cgi-bin/admin/Links.pm line 524 with no arguments.
Links (18518): Links::fatal called at (eval 55) line 7 with arguments
(Can't call method "fetchrow" on an undefined value at (eval 55) line 7.
).
Links (18518): Links::__ANON__ called at GT::Template::_call_func line 821 with arguments
(2).
Links (18518): GT::Template::_call_func called at /path/to/url/cgi-bin/admin/templates/default/compiled/detailed.html.compiled line 69 with arguments
(GT::Template=HASH(0x8760284), det_name, 2).
Links (18518): GT::Template::parsed_template called at /path/to/url/cgi-bin/admin/GT/Template.pm line 640 with arguments
(GT::Template=HASH(0x8760284)).
Links (18518): GT::Template::_parse called at /path/to/url/cgi-bin/admin/GT/Template.pm line 126 with arguments
(GT::Template=HASH(0x8760284), detailed.html, HASH(0x875cd9c)).
Links (18518): GT::Template::parse called at /path/to/url/cgi-bin/admin/Links.pm line 385 with arguments
(GT::Template, detailed.html, ARRAY(0x876023c), HASH(0x875cd9c)).
Links (18518): Links::user_page called at /path/to/url/cgi-bin/admin/Links/SiteHTML.pm line 141 with arguments
(detailed.html, HASH(0x8669e4c), HASH(0x875cd9c)).
Links (18518): Links::SiteHTML::site_html_detailed called at /path/to/url/cgi-bin/admin/GT/Plugins.pm line 112 with arguments
(HASH(0x8669e4c), [undef]).
Links (18518): GT::Plugins::dispatch called at /path/to/url/cgi-bin/admin/Links/SiteHTML.pm line 28 with arguments
(GT::Plugins, /path/to/url/cgi-bin/admin/Plugins, site_html_detailed, *Links::SiteHTML::site_html_detailed, HASH(0x8669e4c), [undef]).
Links (18518): Links::SiteHTML::display called at Links::Build::build_detailed line 499 with arguments
(detailed, HASH(0x8669e4c)).
Links (18518): Links::Build::build_detailed called at /path/to/url/cgi-bin/admin/GT/Plugins.pm line 112 with arguments
(HASH(0x86e7678)).
Links (18518): GT::Plugins::dispatch called at /path/to/url/cgi-bin/admin/Links/Build.pm line 30 with arguments
(GT::Plugins, /path/to/url/cgi-bin/admin/Plugins, build_detailed, CODE(0x872d450), HASH(0x86e7678)).
Links (18518): Links::Build::build called at nph-build.cgi line 528 with arguments
(detailed, HASH(0x86e7678)).
Links (18518): main::_build_detailed called at /path/to/url/cgi-bin/admin/GT/Plugins.pm line 112 with arguments
(HASH(0x82cd6e0)).
Links (18518): GT::Plugins::dispatch called at nph-build.cgi line 87 with arguments
(GT::Plugins, /path/to/url/cgi-bin/admin/Plugins, create_detailed, CODE(0x8296ea0), HASH(0x82cd6e0)).
Links (18518): main::build_all called at nph-build.cgi line 42 with no arguments.
Links (18518): main::main called at nph-build.cgi line 29 with no arguments.
Quote Reply
Re: [Alba] category field in links template In reply to
Mmm.. think;

Code:
my $categoryID = $db2->select( ['ID'],{ LinkID => $id } )->fetchrow;

...should be;

Code:
my $categoryID = $db2->select( ['CategoryID'],{ LinkID => $id } )->fetchrow;

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!

Last edited by:

Andy: Sep 2, 2004, 4:33 AM