How to hide the last modified information when viewing pages?
Last modified by Alex Cotiugă on 2023/01/31
If you want to hide just the Last modified by... part, then overwrite the flamingo/contentheader.vm file as described in the skin tutorial and comment out (using #* *#) the following block of code:
#*
<div class="xdocLastModification">
#if (!$doc.isMostRecent())
$services.localization.render(
'core.document.modificationWithVersion',
["<a href='$tdoc.getURL('view', ""rev=$tdoc.version"")'>$tdoc.version</a>",
$xwiki.getUserName($authorName),
$xwiki.formatDate($tdoc.date)
])
#else
$services.localization.render('core.footer.modification', [$xwiki.getUserName($authorName), $xwiki.formatDate($tdoc.date)])
#end
</div>
*#
<div class="xdocLastModification">
#if (!$doc.isMostRecent())
$services.localization.render(
'core.document.modificationWithVersion',
["<a href='$tdoc.getURL('view', ""rev=$tdoc.version"")'>$tdoc.version</a>",
$xwiki.getUserName($authorName),
$xwiki.formatDate($tdoc.date)
])
#else
$services.localization.render('core.footer.modification', [$xwiki.getUserName($authorName), $xwiki.formatDate($tdoc.date)])
#end
</div>
*#