Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

what's the proper hook to append content within the main body?

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


bnabble at says

Aug 22, 2008, 11:17 PM

Post #1 of 3 (401 views)
Permalink
what's the proper hook to append content within the main body?

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

--
View this message in context: http://www.nabble.com/what%27s-the-proper-hook-to-append-content-within-the-main-body--tp19119079p19119079.html
Sent from the Wikipedia Developers mailing list archive at Nabble.com.


_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


leon at leonweber

Aug 23, 2008, 12:17 AM

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


andrew at epstone

Aug 23, 2008, 1:02 AM

Post #3 of 3 (382 views)
Permalink
Re: what's the proper hook to append content within the main body? [In reply to]

On Sat, Aug 23, 2008 at 4:17 PM, horatio <bnabble[at]says.mu> 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?

I use ArticleViewHeader for adding a header.

--
Andrew Garrett

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.