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

Plugin development problems & questions

Quote Reply
Plugin development problems & questions
1) I would like to create a plugin, which will include (insert) a left side menu into the category, home, new, etc. templates (<%menu_left%>).

Where to hook this menu, to be able to use its tag in all category, home, new, etc. templates?

2) Other.
I'm a bit confused about how plugins works, because strange things happens sometimes.
I know how the plugins logically works... There is described on page /GT/Plugins.html in 4 points.
But sometimes I don't find logical answers why a part of a plugin is not working...
I think there are not enough plugin examples & enough detailed plugin how-to-s & descriptions.
There should be more & more detailed Module descriptions, Plugin How-To-s, Plugin Hook descriptions, and Developers Guide...

Let me show you, how the example plugin (which is not working currently) looks.

The plugin.cfg file has the hook:
Code:
'LinkPlugin' => {
'hooks' => [
[
'site_html_category',
'PRE',
'Plugins::LinkPlugin::site_html_category',
'1'
]
....

The LinkPlugin.pm file has the sub site_html_category, and has a code:
Code:
sub site_html_category {
my ($args) = shift;
print "Content-Type: text/html\n\n";
print "cccccccccc test text";
$args->{'menu_left'} = "aaaaaaaaa";
return $args;

But nothing is displayed.
What is wrong?
Is there any other place, where installing a plugin modifies something? If not, then why is not working this example plugin?

Any idea?

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...

Last edited by:

webmaster33: Feb 23, 2002, 11:04 AM
Subject Author Views Date
Thread Plugin development problems & questions webmaster33 3350 Feb 23, 2002, 11:02 AM
Thread Re: [webmaster33] Plugin development problems & questions
Paul 3255 Feb 23, 2002, 12:05 PM
Post Re: [RedRum] Plugin development problems & questions
webmaster33 3272 Feb 24, 2002, 5:16 AM
Thread Re: [webmaster33] Plugin development problems & questions
Alex 3235 Feb 25, 2002, 12:10 PM
Post Re: [Alex] Plugin development problems & questions
pugdog 3206 Feb 26, 2002, 10:51 AM