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?
thanks in advance
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:
- do not display content in edit window
- 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
On Sat, Aug 23, 2008 at 4:17 PM, horatio bnabble@says.mu wrote:
i'm trying to add content to the body of my wiki documents. the requirements are the following:
- do not display content in edit window
- 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?
I use ArticleViewHeader for adding a header.
wikitech-l@lists.wikimedia.org