Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [09-2006 Date Index] [Date Next] || [Thread Prev] [09-2006 Thread Index] [Thread Next]

[dokuwiki] Re: Two action plugin hook suggestions

  • From: Chris Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 05 Sep 2006 10:32:25 +0100
Andreas Gohr wrote:
Hi Chris and *!

I'd like to get your feedback on two more action plugin hooks. I'm
thinking about a few plugins that would need the following hooks:

one around tpl_metaheaders to add new html meta headers or modify
existing ones. What I wonder about is how the data should be passed.
Should we treat the whole <head> area as one string to be passed in
$data or would some array structure be more useful?

Another hook I'd like to add is in pageTemplate() which would allow
plugins to add certain intelligence into the page creation process.

Chris what do you think?

Andi
For metaheaders:

I lean towards an array structure, grouped by element type, meta, link & script. That means its pretty easy to add or inspect/modify an element and means final output can keep similar elements together easily.

I don't think you should do the whole <head>. <title> and meta/content-type should remain in the template.

For pageTemplate:  sounds good.

I also think we need to brainstorm for other hooks. Not many people have come forward with ideas/uses and once we go live with the next release its a little late.
Possibilities
- Hooks to allow additional authentication methods to be implemented by plugin
- Hooks around reading and writing of metadata (similar to IO_WIKIPAGE_READ & _WRITE)


Cheers,

Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.