[xwiki-users] How to attach a class to _every_ page created
Hi All, I'm wondering whether it is possible to configure the whole xwiki or (preferably) a space to have certain class attached to every page created. Just like it is done with tag class by default. I know that similar questions have been here several times. I've learned the standard way with template and custom HTML form. But I'd like to avoid custom form - i need to guarantee this class is attached, even if user didn't use any form (clicked non-existent wikiname for example). The final goal is to implement my own tagging system with more advanced features (like hierarchy, tags on tags etc) Thanx in advance -- Synchronously Nikolai Ugarov || | |||| | || | | | || ||| |||| | ||| http://www.xko.kiev.ua
You should write a java plugin that uses the notification mechanism and adds the object when the page is saved. The problem is that you won't have the object for a new document before saving. So another option would be to write a plugin that overrides a plugin method that is called for each request, like beginRendering, and adds the object if it doesn't already exist. On 9/25/07, Nikolai Ugarov <xko@xko.kiev.ua> wrote:
Hi All,
I'm wondering whether it is possible to configure the whole xwiki or (preferably) a space to have certain class attached to every page created. Just like it is done with tag class by default. I know that similar questions have been here several times. I've learned the standard way with template and custom HTML form. But I'd like to avoid custom form - i need to guarantee this class is attached, even if user didn't use any form (clicked non-existent wikiname for example).
The final goal is to implement my own tagging system with more advanced features (like hierarchy, tags on tags etc)
Thanx in advance
Sergiu -- http://purl.org/net/sergiu
participants (2)
-
Nikolai Ugarov -
Sergiu Dumitriu