Ticket #857 (closed task: fixed)

Opened 1 year ago

Last modified 1 year ago

Implement autoload/autohook actions

Reported by: pablo Assigned to: pablo
Priority: normal Milestone: 0.8.0
Component: Gadgets / Other Version: SVN
Severity: normal Keywords:
Cc:

Description

Currently a gadget can't modify HTTP headers / meta tags if its not added in the layout or is being executed (index.php?gadget=Foobar).

So what comes to my mind is to add a new feature: autoload actions. But what does the *autoload action* is going to do?

Well, when Jaws gets requested it will check on /gadgets/autoload_items, (which will have a list of gadgets that have the 'autoload' key/thingie turned on), then it will call the 'autoload' action of each gadget.

An example could be a 'sitemap' and a new version of the 'visitcounter':

  1. Jaws gets requested
  2. Will check on /gadgets/autoload_items and will find that we have 'Sitemap,VisitCounter?'
  3. Then it will call the autoload action of Sitemap and VisitCounter?
    1. Sitemap will modify the HTTP and metatags
    2. VisitCounter? will increment (for example) its visits counter.
  4. Done

Maybe this could sound like adding 'autohook' actions to the gadgets, if that's the name we will give to this new feature I'm OK with it ;-)

And as well, keep this ticket updated with your ideas/suggestions/comments and the changes you make to the core that affect this ticket.

Attachments

Change History

05/12/07 20:40:56 changed by pablo

Checkout the commit I did. We just need to do some tests with this feature.

http://dev.jaws-project.com/cgi-bin/trac.cgi/changeset/6080

07/10/07 11:59:14 changed by afz

  • status changed from new to closed.
  • resolution set to fixed.

done.


Add/Change #857 (Implement autoload/autohook actions)




Change Properties
Action