Added by, View Change

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
Peter Koczan Atlassian Team Jun 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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,166 views 20 14
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you