Foren
Navigation looses attribute selected
Mason Stein, geändert vor 11 Jahren.
Navigation looses attribute selected
Junior Member Beiträge: 47 Beitrittsdatum: 05.12.12 Neueste Beiträge
Happy new year you, all!
I am having a problem, that I saw already in this forum, but it was not solved...
Everytime I want to place my login portlet like in http://www.packtpub.com/article/advanced-theme-liferay-user-interface-development , my navigation looses its attribute "selected" , its always false and the whole css gets screwed..=(
When I login it ok.
Please, I tried with a fresh theme and a new liferay installation... nothing changed but this few lines...
THX
I am having a problem, that I saw already in this forum, but it was not solved...
Everytime I want to place my login portlet like in http://www.packtpub.com/article/advanced-theme-liferay-user-interface-development , my navigation looses its attribute "selected" , its always false and the whole css gets screwed..=(
#if(!$is_signed_in)
#set ($locPortletId = "58")
$velocityPortletPreferences.setValue("portlet-setup-show-borders","false")
#set($locRenderedPortletContent = $theme.runtime($locPortletId, "", $velocityPortletPreferences.toString()))
$locRenderedPortletContent
$velocityPortletPreferences.reset()
#end
When I login it ok.
Please, I tried with a fresh theme and a new liferay installation... nothing changed but this few lines...
THX
Mason Stein, geändert vor 11 Jahren.
RE: Navigation looses attribute selected
Junior Member Beiträge: 47 Beitrittsdatum: 05.12.12 Neueste Beiträge
Does noone have the same problem?
=(
=(
Mason Stein, geändert vor 11 Jahren.
RE: Navigation looses attribute selected
Junior Member Beiträge: 47 Beitrittsdatum: 05.12.12 Neueste Beiträge
Hey,
that is so strange...
When I put that code below the navigation, it works fine...
Can please someone explain to me, why?
WORKING:
NOT WORKING:
that is so strange...
When I put that code below the navigation, it works fine...
Can please someone explain to me, why?
WORKING:
#if ($has_navigation || $is_signed_in)
#parse ("$full_templates_path/navigation.vm")
#end
#if(!$is_signed_in)
###set ($VOID = $velocityPortletPreferences.setValue('display-style', '1'))
###set ($VOID = $velocityPortletPreferences.setValue('portlet-setup-show-borders', 'false'))
###set ($instanceId = 'E8j5')
#set ($myPortletId = "58")
$theme.runtime($myPortletId, '', $velocityPortletPreferences.toString())
#set ($VOID = $velocityPortletPreferences.reset())
#end
NOT WORKING:
#if(!$is_signed_in)
###set ($VOID = $velocityPortletPreferences.setValue('display-style', '1'))
###set ($VOID = $velocityPortletPreferences.setValue('portlet-setup-show-borders', 'false'))
###set ($instanceId = 'E8j5')
#set ($myPortletId = "58")
$theme.runtime($myPortletId, '', $velocityPortletPreferences.toString())
#set ($VOID = $velocityPortletPreferences.reset())
#end
#if ($has_navigation || $is_signed_in)
#parse ("$full_templates_path/navigation.vm")
#end
Bradley Wood, geändert vor 11 Jahren.
RE: Navigation looses attribute selected
Mason Stein, geändert vor 11 Jahren.
RE: Navigation looses attribute selected
Junior Member Beiträge: 47 Beitrittsdatum: 05.12.12 Neueste Beiträge
Hey Bradley,
thx for your answer...
But I am getting nowhere=(
What do you exactly mean by current layout?
And I just don´t understand why it is working, when I change the order...
thx for your answer...
But I am getting nowhere=(
What do you exactly mean by current layout?
And I just don´t understand why it is working, when I change the order...