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
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