Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Mason Stein
Navigation looses attribute selected
4 de Janeiro de 2013 10:35
Resposta

Mason Stein

Ranking: Junior Member

Mensagens: 47

Data de entrada: 5 de Dezembro de 2012

Mensagens 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..=(

1
2    #if(!$is_signed_in)
3          #set ($locPortletId = "58")
4         $velocityPortletPreferences.setValue("portlet-setup-show-borders","false")
5        #set($locRenderedPortletContent = $theme.runtime($locPortletId, "", $velocityPortletPreferences.toString()))
6          $locRenderedPortletContent
7          $velocityPortletPreferences.reset()
8    #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
RE: Navigation looses attribute selected
5 de Janeiro de 2013 08:35
Resposta

Mason Stein

Ranking: Junior Member

Mensagens: 47

Data de entrada: 5 de Dezembro de 2012

Mensagens recentes

Does noone have the same problem?
=(
Mason Stein
RE: Navigation looses attribute selected
9 de Janeiro de 2013 13:57
Resposta

Mason Stein

Ranking: Junior Member

Mensagens: 47

Data de entrada: 5 de Dezembro de 2012

Mensagens 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:
 1
 2        #if ($has_navigation || $is_signed_in)
 3            #parse ("$full_templates_path/navigation.vm")
 4        #end
 5       
 6          #if(!$is_signed_in)
 7        ###set ($VOID = $velocityPortletPreferences.setValue('display-style', '1'))
 8        ###set ($VOID = $velocityPortletPreferences.setValue('portlet-setup-show-borders', 'false'))
 9        ###set ($instanceId = 'E8j5')
10        #set ($myPortletId = "58")
11        $theme.runtime($myPortletId, '', $velocityPortletPreferences.toString())
12        #set ($VOID = $velocityPortletPreferences.reset())
13        #end


NOT WORKING:
 1
 2               
 3          #if(!$is_signed_in)
 4        ###set ($VOID = $velocityPortletPreferences.setValue('display-style', '1'))
 5        ###set ($VOID = $velocityPortletPreferences.setValue('portlet-setup-show-borders', 'false'))
 6        ###set ($instanceId = 'E8j5')
 7        #set ($myPortletId = "58")
 8        $theme.runtime($myPortletId, '', $velocityPortletPreferences.toString())
 9        #set ($VOID = $velocityPortletPreferences.reset())
10        #end
11
12               #if ($has_navigation || $is_signed_in)
13            #parse ("$full_templates_path/navigation.vm")
14        #end
Anônimo
RE: Navigation looses attribute selected
9 de Janeiro de 2013 14:04
Resposta

Anônimo

to get the selected state working, check to see if $page layout matches the current layout
Mason Stein
RE: Navigation looses attribute selected
11 de Janeiro de 2013 02:35
Resposta

Mason Stein

Ranking: Junior Member

Mensagens: 47

Data de entrada: 5 de Dezembro de 2012

Mensagens 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