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 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

866 views 23 12
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