In 5.x version I want to deleted added by and view change, but keep last edited and date. where do I go to amend the code and what code do I delete? Thanks
Hi John,
From the description it is not clear for me, let me try to summarize and let me know if I understood it right:
You wish to hide the 'created by' and 'view change' on the top of each Confluence page, you only wish to have the last editor of the page to be displayed, am I right?
If this is the case, you will need to edit the file: <CONFLUENCE-INTALL>/confluence/decorators/includes/page-metadata.vm
In this file you'll need to change the block:
<li class="page-metadata-modification-info"> #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 id="view-change-link" 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 </li>
then remove all elements unwanted.
Kind regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.