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

Re: [pugdog] Accessing a template global from a plugin

Quote Reply
Re: [pugdog] Accessing a template global from a plugin In reply to
Ahh, I see.

What I am trying to do is to modify what links are shown (all results in generate_category, generate_cool, generate_new, search_results and so on), by applying a pre hook that adds an extra condtion to the query that selects which links to show.

This condition I want to be template specific. Furter I thought adding a template global called "condition" would be a nice place to store this template specific value. The problem is that I have no idea how to access the value of the template global from inside the pre hooked plugin (or if it is possible).

I suppose this qualifies for the case you mention where the plugin is is not called from inside the template, so I really would like to know how to load the template global value from inside links.

Thank you very much for your help so far!

Knut Reistad
Gjerrigknark.com
Subject Author Views Date
Thread Accessing a template global from a plugin KA 2079 Feb 21, 2006, 10:13 AM
Thread Re: [KA] Accessing a template global from a plugin
pugdog 1982 Feb 22, 2006, 10:55 PM
Thread Re: [pugdog] Accessing a template global from a plugin
KA 1980 Feb 23, 2006, 3:07 PM
Post Re: [KA] Accessing a template global from a plugin
afinlr 1973 Feb 24, 2006, 3:35 AM