Fórum

Navigation looses attribute selected

Mason Stein, modificado 11 Anos atrás.

Navigation looses attribute selected

Junior Member Postagens: 47 Data de Entrada: 05/12/12 Postagens Recentes
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..=(


	#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, modificado 11 Anos atrás.

RE: Navigation looses attribute selected

Junior Member Postagens: 47 Data de Entrada: 05/12/12 Postagens Recentes
Does noone have the same problem?
=(
Mason Stein, modificado 11 Anos atrás.

RE: Navigation looses attribute selected

Junior Member Postagens: 47 Data de Entrada: 05/12/12 Postagens Recentes
Hey,

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, modificado 11 Anos atrás.

RE: Navigation looses attribute selected

Mason Stein, modificado 11 Anos atrás.

RE: Navigation looses attribute selected

Junior Member Postagens: 47 Data de Entrada: 05/12/12 Postagens Recentes
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...emoticon