RE: LifeRay 7.4: How can I have a widget dropzone in the header of my page?

Jamie Sammons, modified 3 Years ago. New Member Posts: 7 Join Date: 2/10/22 Recent Posts

Hello guys,

In my 7.0 LifeRay custom theme I had a widget dropzone in the header, but it disappeared in 7.4 GA7

How can I have it back?

I tried to add the HTML "portlet-dropzone" directly in the theme's template but it doesn't work LifeRay doesn't want to save the Widget and the "portlet-dropzone" stays empty.

HTML chunk example in LifeRay 7.0:

<div class="container-fluid-1280"

    <header><div class="portlet-dropzone" id="layout-column_column-breadcrumb">

        [...]

    </header>

</div>

 

Any Idea?

 

Lee Jordan, modified 3 Years ago. Expert Posts: 449 Join Date: 5/26/15 Recent Posts

Good luck trying to get removed features back. I can file a feature request but it's becoming clear that Liferay aren't interested in what we need as users. It's sad. Not that they want to hear it of course, it's almost like they are doubling down on ripping stuff out and not putting it back correctly when asked. (This is an intervention, we obviosuly want Liferay to survive this period).

What you might be able to do is use an embedded web content display widget in the portal_normal.ftl of your theme which is how I'm approaching some global content needs. Stuff that has to be on every page. Where footer_weblinks is the article ID of the web content and global_gid is the site ID where that content lives (on the global site obviously).

<#attempt>
                    <#assign myWebLinks = freeMarkerPortletPreferences.getPreferences({"groupId": "${global_gid}", "articleId": "${footer_weblinks}", "portletSetupPortletDecoratorId", "barebone"}) />
                
                    <@liferay_portlet["runtime"]
                        defaultPreferences="${myWebLinks}"
                        instanceId="Footer_WebLinks_1634996248"
                        persistSettings=true
                        settingsScope="company"
                        portletProviderAction=portletProviderAction.VIEW
                        portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet"
                    />
                    <#recover>
</#attempt>

 

Lee Jordan, modified 1 Year ago. Expert Posts: 449 Join Date: 5/26/15 Recent Posts

The original post said "widget dropzone"

Fragments are not the way to fix this, we are having features removed constantly which creates push factors for dropping Liferay and moving to a different platform.