dashboard: move bottom left favorite panel to the right hand top side

Is it possible to move the favorite panel from the bottom left to the top right side of the dashboard? Above the default panel on the top right side? I tried it with the documentation but It did not work. Here is the current code:

## GLOBAL DECORATOR
## This decorator handles a global context, i.e. information which is independent of space.
## Supports modes: 'dashboard', 'userdir', 'rss'.
#set ($mode = $params.get("mode"))
#set ($context = $params.get("context"))
#set ($helper = $params.get("helper"))
#set ($infoPanelWidth = $params.get("infopanel-width"))
#set ($maxFavouritePages = "20") ## Change this value to increase the default number of favourite pages displayed on the Dashboard
#infoPanelInitFromParams()
#requireResourcesForContext("global")
<!-- GENERAL PAGE DECORATING BEGINS -->
#assistiveSkipLink("assistive.skiplink.to.dashboard.recent.updates" "dashboard-recently-updated")
<div class="pagebody">
#parse ( "/template/includes/actionerrors.vm" )
<div class="dashboard">
<div class="dashboard-section">
#if ($mode == "dashboard")
#parse ("/decorators/includes/dashboard-navigation.vm")
#requireResourcesForContext("dashboard")
#rssautodiscovery($action.rssDescriptor)
#permitSearchEngines()
<div class="dashboard-group left">
#if($permissionHelper.isConfluenceAdministrator($remoteUser))
<div class="dashboard-item wiki-content">
<ol id="dashboard-get-started">
</ol>
</div>
#end
#dashboard_renderGlobalActions("dashboardActionsId", ["system.dashboard"] )
#foreach ($webPanel in $webInterfaceManager.getDisplayableWebPanels("atl.dashboard.left", {}))
<div class="dashboard-item">
$!webPanel.getHtml($req.getParameterMap())
</div>
#end
<div class="dashboard-item">
$helper.renderConfluenceMacro("{globaltimeline:defaultSpaceKeyForGlobalMicroblog=LV}")
</div>
</div>## left
<div class="dashboard-group right wiki-content">
$helper.renderConfluenceMacro("{recently-updated-dashboard:showProfilePic=true}")
</div>## right
#else
#if ($params.get("suppress-default-navigation") != "true")
<content tag="content-navigation">
<div id="navigation" class="content-navigation">
<ul class="ajs-menu-bar">
#menuMacros_renderButton("system.${mode}.button")
</ul>
</div>
</content>
#end
<div class="dashboard-group $!mode">
$body
</div>
#end
## INFO PANEL FOR ANY PAGE
#if ($infoPanelRequired)
<div style="width: $infoPanelWidth" id="helptd">
#infoPanel(true true true true)
</div>
#end
</div><!-- .dashboard-section -->
</div><!-- .dashboard -->
</div>
#parse ( "/breadcrumbs.vm" )
<!-- GENERAL PAGE DECORATING ENDS -->

1 answer

1 accepted

Hi Lars,

because of the way the left hand dashboard items are being created, in a loop of velocity code, it may be easier to move the Favourites section using JavaScript.

Try this code in Confluence Administration > Custom HTML > At the end of the BODY

It moves the favourites-spaces-section to the beginning of the dashboard-group right HTML div.

&lt;script type="text/javascript"&gt;
$(document).ready(function() {
  $('.dashboard-group.right').prepend($('.favourite-spaces-section'));
});
&lt;/script&gt;

You may need to add some CSS styling to space things out a little in that right hand column though.

Sharon

This is great! And what about moving the whole web panel section (including network, favorites and so on) from left to top right? Can I add more tabs and fill in own stuff and so on? Is there any good documentation? Thanks!

Are there some news about this?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

274 views 11 10
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