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

Products: Gossamer Links: Development, Plugins and Globals: Re: [yogi] Install a global from a plugin?: Edit Log

Here is the list of edits for this post
Re: [yogi] Install a global from a plugin?
Hi Ivan (or any expert!):

I put my global and tried to call it from my category.html template. This code works great as a global, but it does not when I put it into my plug-in.

Is there a 'require something' or a statment I have to put into my template file for it to be able call plug-in functions?

When building the build is terminated with the error:

Technical Message Follows:
--------------------------
GT::SQL::Table (86696): Wrong argument passed to this subroutine. Usage: Must pass category id to parents at (eval 54) line 7.


Sure thing, but you worked when you were just an ordinarly global!!

Here are the first few lines of the sub...

Code:


sub EditorLinks {
# -------------------------------------------------------------------
# This subroutine is for generating the list of editors on each
# category page, with links to their profile pages.
# called with <%Plugins::EditorMonitor::EditorLinks%>


my $tags = shift;
my $cat_id = $tags->{'ID'};
my $cat_db = $DB->table('Category');
my $parents = $cat_db->parents($cat_id);
push @$parents, $cat_id;






http://www.iuni.com/...tware/web/index.html
Links Plugins

Last edited by:

Ian: May 31, 2002, 12:41 PM

Edit Log: