Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Added by, View Change

John Pfotzer
Contributor
June 13, 2013

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

1 answer

0 votes
PeterKoczan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 16, 2013

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:

&lt;li class="page-metadata-modification-info"&gt;
                #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)
                        &lt;span class="noprint"&gt;&amp;nbsp;(&lt;a id="view-change-link" href="$req.contextPath/pages/diffpages.action?pageId=${page.id}&amp;originalId=$previousPage.id"&gt;$action.getText('view.change')&lt;/a&gt;)&lt;/span&gt;
                    #end
                #else
                    $action.getText('added.by.user.edited.on.date', ["#usernameLink ($page.creatorName)","#usernameLink ($page.lastModifierName)","$action.dateFormatter.format( $page.lastModificationDate )"])
                #end
            &lt;/li&gt;

then remove all elements unwanted.

Kind regards,

Peter

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events