Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

After upgrade from 5.8.5 to 6.3.2 custom Global layout broken

Deleted user August 14, 2017

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
Nic Brough -Adaptavist-
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.
August 14, 2017

6.3 has some significantly different structures to 5.8.

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

Deleted user August 14, 2017

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?

Nic Brough -Adaptavist-
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.
August 14, 2017

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

0 votes
lamlvchen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 22, 2017

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
TAGS
AUG Leaders

Atlassian Community Events