> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
> On Behalf Of Martin S.
> Sent: Friday, October 31, 2008 11:15 AM
> To: Trac Users
> Subject: [Trac] Re: Updating my HeadLink trac macro from 0.10 to 0.11
> 
> 
> 
> On Oct 27, 12:16 am, Noah Kantrowitz <[EMAIL PROTECTED]> wrote:
> > You cannot add things to <head> in a macro, as they are rendered too
> 
> > late in the process. You could do some interesting stuff with string
> 
> > scanning and a request filter though.
> Yes, or you could let your macro write their content into a database
> and
> let a request filter then use this DB to insert this information into
> the wiki
> page __at the next reload__.
> One thing you would have to figure out is how to delete the DB entry
> after a macro was deleted from the wiki.
> 
> This whole link tag thing screams after an admin plugin where you can
> set for which pages which extra tags should be set. Then you don't
> need any macros anymore.
> 
> Also, a plugin which allows an trac admin to add general script and
> link tags to all wiki pages without the need for an own template file
> would be nice.
> The input information could be put into trac.ini . Maybe I will create
> such a plugin soon if I find the time.

Indeed, the reason this doesn't work very well is that it is a giant hack.
You can look at the tags plugin for an example of how to add an extra edit
field to the wiki UI.

--Noah


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to