After upgrade from 5.8.5 to 6.3.2 custom Global layout broken

Dear Community,

We have performed Confluence upgrade from 5.8.5 to 6.3.2 on one of our Confluence servers and now I am experiencing issue with broken custom Global layout. We are using this layout

{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 full">
<div class="dashboard-item welcome-message wiki-content">
$action.welcomeMessage
</div>
#dashboard_renderGlobalActions("dashboardActionsId", ["system.dashboard"] )


</div>## left
<div class="dashboard-group full wiki-content">
<div class="columnLayout two-left-sidebar" data-layout="two-equal">
<div class="cell aside" data-type="normal">
#foreach ($webPanel in $webInterfaceManager.getDisplayableWebPanels("atl.dashboard.left", {}))
<div class="dashboard-item">
$!webPanel.getHtml($req.getParameterMap())
</div>
#end
</div>
<div class="cell normal" data-type="normal">
$helper.renderConfluenceMacro("{recently-updated-dashboard:showProfilePic=true}")
</div>
</div>
</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 -->
{code}

and are experiencing issues specifically for this div block 
{code}
<div class="cell aside" data-type="normal">
#foreach ($webPanel in $webInterfaceManager.getDisplayableWebPanels("atl.dashboard.left", {}))
<div class="dashboard-item">
$!webPanel.getHtml($req.getParameterMap())
</div>
#end
</div>
{code}

where it just shows blank space, whereas on 5.8.5 it showed Site spaces etc.

On Chrome inspect tool on 5.8.5 I can see a lot of stuff generated under this div block, whereas on 6.3.2 it just prints 
{code}
<div class="cell aside" data-type="normal">
</div>
{code}

Do you perhaps know if something has changed on the code on 6.3.2 version which have caused this to break? I would appreciate any help, thank you!

2 answers

1 vote

6.3 has some significantly different structures to 5.8.

webInterfaceManager doesn't exist any more, I think you'll need to try confluenceWebInterfaceManager

Hi Nic,

Thank you for helping out.

I have tried to use confluenceWebInterfaceManager as below

#foreach ($webPanel in $confluenceWebInterfaceManager.getDisplayableWebPanels("atl.dashboard.left", {}))
<div class="dashboard-item">
$!webPanel.getHtml($req.getParameterMap())
</div>
#end

but still with no luck. Am I missing any parameters?

I don't know, I think you'd want to read the api for the exact calls it may be making.

hey man, is your problem solved? i meet the same problem with you ,and i don't know how to solve it. if you had a solution please share with me.thank you!

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 ...

789 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