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

Deleted user February 25, 2015

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

1 vote
Answer accepted
Sharon Hinde
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 26, 2015

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

Deleted user February 26, 2015

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!

Manuel Pregler September 17, 2015

Are there some news about this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events