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

This widget could not be displayed.
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 Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

399 views 4 6
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