enterprisemediawiki / HeaderFooter

Add common headers and footers to MediaWiki pages
http://www.mediawiki.org/wiki/Extension:Header_Footer
6 stars 18 forks source link

Feature request: apply header/footer to subpages #3

Open memethief opened 10 years ago

memethief commented 10 years ago

Great extension; I would love to see functionality in a future release that allows me to have a header (or footer) rendered on all subpages of a particular page. I see two ways the interface to this might be designed:

  1. Create a new hf-parentheader-: similar to hf-header-, but shows up on subpages of the given page as well.
  2. Alternately, implement something like $wgHFIncludeSubpages = true; and put the functionality in hf-header; so you don't have to create a whole new hook.

Cheers, -Dave

jamesmontalvo3 commented 9 years ago

Are you saying that all subpages, regardless of what their parent page is, would have the same header/footer? So a generic this-is-a-subpage header/footer?

Or are you saying that all subpages of a particular parent page would have one header/footer, and all subpages of another parent page would have a different header/footer?

memethief commented 9 years ago

I was thinking of the second one. So for instance I create MediaWiki:hf-parentheader-Foo, and it shows up on all subpages of page Foo.