How do I select the settings in the menu port, which is "Soaked" or "Runtime ADD" in the Liferay Layout.tpl?

Asked

Viewed 38 times

1

Hello, I need a little help,

put the menu automatically in the layout and it should have specific settings... "Can’t be in the theme because not all pages should display the menu."

I’ve tried this code it brings the menu but does not remove the edges...

set ($VOID = $velocityPortletPreferences.setValue('portlet-setup-show-borders', 'false'))
$theme.runtime("71_INSTANCE_abcd", '', $velocityPortletPreferences.toString())
set ($VOID = $velocityPortletPreferences.reset())

I’ve tried that too and this code also does not remove the edges...

$velocityPortletPreferences.setValue("portlet-setup-show-borders", "false")
$theme.runtime("71_INSTANCE_efgh", "", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()

The two ways I mentioned work within the theme, But, The edge removal and other settings I’ve set are not working. EX:

$velocityPortletPreferences.setValue("portlet-setup-show-borders", "false")
$velocityPortletPreferences.setValue("root-layout-level", "4")

The complete code is this and it doesn’t work:

$velocityPortletPreferences.setValue("portlet-setup-show-borders", "false")
$velocityPortletPreferences.setValue("header-type", "none")
$velocityPortletPreferences.setValue("root-layout-type", "relative")
$velocityPortletPreferences.setValue("root-layout-level", "4")
$velocityPortletPreferences.setValue("included-layouts", "all")
$velocityPortletPreferences.setValue("nested-children", "true")
$theme.runtime("71_INSTANCE_abcd", "", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset() 

Também tentei assim e sem sucesso:
#set ($VOID = $velocityPortletPreferences.setValue('portlet-setup-show-borders', 'false'))
#set ($VOID = $velocityPortletPreferences.setValue('header-type', 'none'))
#set ($VOID = $velocityPortletPreferences.setValue('root-layout-type', 'relative'))
#set ($VOID = $velocityPortletPreferences.setValue('root-layout-level', '4'))
#set ($VOID = $velocityPortletPreferences.setValue('included-layouts', 'all'))
#set ($VOID = $velocityPortletPreferences.setValue('nested-children', 'true'))
$theme.runtime("71_INSTANCE_efgh", '', $velocityPortletPreferences.toString())
set ($VOID = $velocityPortletPreferences.reset())

The environment here is Liferay 61.ga3

If not possible we will have to configure 209 pages in hand.

Thank you in advance!

1 answer

0

Try reversing by placing the last line at the beginning, before all the rest of the code:

set ($VOID = $velocityPortletPreferences.reset())
  • Changing the order did not influence the final result. I still need help :( , but still obligated1

  • It didn’t work :'( Thanks anyway!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.