Foros de discusión
Two docks in the theme
Nicolle Smith, modificado hace 15 años.
Two docks in the theme
Junior Member Mensajes: 45 Fecha de incorporación: 30/11/07 Mensajes recientes
Hi guys.
I have a strange command from my customer for my Liferay 5.0.1. I need two docks in my theme: one with only the My Places section, and the second with the rest of items.
The thing is I removed My Places from the dock,vm, created another .vm with this code
and then created the css styles for lfr-dock2 and interactive-mode2 from lfr-dock and interactive-mode.
The My Places' new dock appears without css style, all the items in a row!! and also My Places drop down still appears in the usual dock of my theme. I also tried to modify \webapps\ROOT\html\js\liferay\dock.js but no changes in this file have a visible effect (is this file really used?).
Which are the steps to have these two docks in my page?
Thanks
Nicolle
I have a strange command from my customer for my Liferay 5.0.1. I need two docks in my theme: one with only the My Places section, and the second with the rest of items.
The thing is I removed My Places from the dock,vm, created another .vm with this code
<div class="lfr-dock2 interactive-mode2">
<h2 class="user-greeting">
<span>$my_places_text</span>
</h2>
<ul class="lfr-dock-list">
#if ($show_my_places)
<li class="my-places">
<a>$my_places_text</a>
$theme.myPlaces()
</li>
#end
</ul>
</div>
and then created the css styles for lfr-dock2 and interactive-mode2 from lfr-dock and interactive-mode.
The My Places' new dock appears without css style, all the items in a row!! and also My Places drop down still appears in the usual dock of my theme. I also tried to modify \webapps\ROOT\html\js\liferay\dock.js but no changes in this file have a visible effect (is this file really used?).
Which are the steps to have these two docks in my page?
Thanks
Nicolle
Nicolle Smith, modificado hace 15 años.
RE: Two docks in the theme
Junior Member Mensajes: 45 Fecha de incorporación: 30/11/07 Mensajes recientes
Oh Guys, this issue is still pending.
I would really appreciate any help on this topic.
Thank you
Nicolle
I would really appreciate any help on this topic.
Thank you
Nicolle
Milan Jaroš, modificado hace 15 años.
RE: Two docks in the theme
Expert Mensajes: 268 Fecha de incorporación: 18/08/08 Mensajes recientes
I've posted solution which could be interesting for you here: Parse $theme.myPlaces() in dock.vm (velocity template).