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(a)leonweber.de 0x8E04D7FC
blog:
https://leonweber.de/blog
jabber: leon(a)jabber.ccc.de (icq: 261067046)
--
Anyway, you should learn German. It's no more difficult than regex. (Richard Quinn)