How to remove or hide the last updated and created by text on a Confluence page
目的
To remove or hide the last updated and created by text on a Confluence page.
ソリューション
Open the file <confluence-install>/confluence/decorators/includes/page-metadata.vm
in a text editor and remove the following text:
#if ($page.isLatestVersion() == true)
$action.getText('added.by.user.last.edited.on.date', ["#usernameLink ($page.creatorName)","#usernameLink ($page.lastModifierName)","$action.dateFormatter.format( $page.lastModificationDate )"])
#set ($previousPage = $action.getPreviousVersion($page.previousVersion))
#if ($!previousPage)
<span class="noprint"> (<a href="$req.contextPath/pages/diffpages.action?pageId=${page.id}&originalId=$previousPage.id">$action.getText('view.change')</a>)</span>
#end
#else
$action.getText('added.by.user.edited.on.date', ["#usernameLink ($page.creatorName)","#usernameLink ($page.lastModifierName)","$action.dateFormatter.format( $page.lastModificationDate )"])
#end
Additionally, to hide Last Updated and Created by Text using CSS, go to Confluence Admin >> Stylesheet (Global Stylesheet) and add the following code:
.page-metadata
{
display:none !important;
}
最終更新日: 2016 年 2 月 26 日
Powered by Confluence and Scroll Viewport.