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">&nbsp;(<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.