How to change the "Last modified" label?
Version 4.1 by Lucian Chevereseanu on 2023/10/17
In order to change the "Last modified label" in your XWiki, you will need to override a template inside the skin. More details on this here.
We recommend that you don't edit the original skin (named Default XWiki Skin) to avoid your customization being inadvertently overwritten during a future XWiki upgrade. Instead, you could create a new skin by copying the default one.
- To do this, in the Administration menu >> Look & Feel >> Themes, click on the Customize button in the Skin section. Then, in the More actions menu (button with vertical ...), select Copy.
- Once the copy has been made, return to the Themes menu, select your copied version of the skin from the drop-down menu and click on the Save button.
- For customization, click on the Customize button and then on Edit this skin. Here you can change the name of the skin (i.e: Copy of Default Skin), and also here we'll override contentheader.vm by following the documentation
- As this is an override, we need to retrieve the original code and add our customization to it. Depending on the version of XWiki that you have, the original code may very. This guide was created by using the current LTS version of XWiki, 14.10.18 as a reference point. The documentation linked above will guide you on how to check your original code.
- Paste this code inside the contentheader.vm Content field and press the "Save & View" button.
6. This will make your header display "Last modified and approved by "authorName" on "tdoc.date".