Forum:Add a header to all existing and new pages?

Hi-

I want to put a block of text that will always appear just below the title on every single page - new and existing pages. It will only be editable by admin users.

Essentially, I want it to always say who the last person to edit a page was at the very top, just below the title. I know the code to use to say that, but I can only get it to show up on a page if I edit it and put it in manually. This defeats the purpose, since it will always be me showing up as the last editor on a page - I need to find a way that it will automatically include this block of text on existing and new pages at the top, and cannot be deleted in the normal edit mode.

Thanks for any help!

Sean3939 15:30, September 14, 2011 (UTC)


 * You will want to create a page layout which contains the code for future pages and you will need a bot to add the code to each page quickly. Gracey91   ✉  15:41, September 14, 2011 (UTC)


 * What you want is not possible. The only way to get it to not be editable by anyone but admins is to put it in a template but if you want the latest revision user to show, you cant use a template as it will show the last person to edit the template. If you still want it, despite all being able to edit it, you need some js to do it and will have to use a bot to place it on all currently existing pages.--