Topic on Project:Support desk

Jump to navigation Jump to search

How can I add something on the top of every page ?

6
Gastounet (talkcontribs)

Hi

Is it possible call a custom php script to add HTML or Wiki text on the top of every page ?

If necessary, I can make my own extension for this, but all the examples are either for SpecialPages or Templates. Is there examples or explanations to only output ?

Thanks for help !

88.130.69.150 (talkcontribs)

That depends on where exactly you want to have the output of your PHP script:

  • Maybe you can add it using a hook. That would be a clean way.
  • You can modify the skin or create your own one and modify the skin file (like Vector.php for the Vector skin). In that case you should not change the files of the Vector skin, but instead create an own skin to have a clean solution.
Gastounet (talkcontribs)

I'd like to write it right after the title of the page. I do not find my way in hooks... but i'll try... Thanks

Ciencia Al Poder (talkcontribs)
Gastounet (talkcontribs)

No, thanks, I have some code to execute and process parameters and I don't think this is possible with SiteNotice.

167.220.24.7 (talkcontribs)

use the hook "ArticleViewHeader".

Reply to "How can I add something on the top of every page ?"