
leon at leonweber
Aug 23, 2008, 12:17 AM
Post #2 of 3
(624 views)
Permalink
|
|
Re: what's the proper hook to append content within the main body?
[In reply to]
|
|
On 22.08.2008 23:17:19, horatio wrote: > i'm trying to add content to the body of my wiki documents. the requirements > are the following: > > 1. do not display content in edit window > 2. cache content as normal > > so far the closest hook to this seems like ParserAfterTidy, but the content > seems to disappear on edits and remains gone until the cache is flushed. > > what technique should I use? That depends on where your data should appear. There is a hook called SkinAfterContent which allows you to add data below the article text and metadata. See docs/hooks.txt for documentation on the usage of that hook. For disabling it on the edit page you would probably use a case differentiation based on action != edit. Leon -- Leon Weber, leon [at] leonweber 0x8E04D7FC blog: https://leonweber.de/blog jabber: leon [at] jabber (icq: 261067046) -- Anyway, you should learn German. It's no more difficult than regex. (Richard Quinn)
|