Foros de discusión

Where's the code for the dockbar?

thumbnail
Dave Kliczbor, modificado hace 12 años.

Where's the code for the dockbar?

Junior Member Mensajes: 77 Fecha de incorporación: 12/07/11 Mensajes recientes
Hello,

I'd like to have a look at the (Java?) code for the dockbar, in particular the code for generating the "go to" dropdown menu. Searching through the templates, I found a macro named "dockbar" which consisted of

$theme.runtime("145")
$theme.runtime("170")

Searching on, I found that $theme is an object of the type Theme, which curiously does not have any member named "runtime". So I'm at a loss here -- what's being called by the two lines in the code? And where can I find this code?

Thanks for any answers,
Dave
thumbnail
jelmer kuperus, modificado hace 12 años.

RE: Where's the code for the dockbar? (Respuesta)

Liferay Legend Mensajes: 1191 Fecha de incorporación: 10/03/10 Mensajes recientes
Runtime is a function in com.liferay.taglib.util.VelocityTaglib. Basically it says, include portlet with id 145 (dockbar portlet) and 170 (staging bar portlet)
thumbnail
Mayur Patel, modificado hace 12 años.

RE: Where's the code for the dockbar? (Respuesta)

Expert Mensajes: 358 Fecha de incorporación: 17/11/10 Mensajes recientes
yes this is right and if you are interested to see the logic of it then you can go to the following path of tomcat,

\tomcat-6.0.29\webapps\ROOT\html\portlet\dockbar\view.jsp
thumbnail
Dave Kliczbor, modificado hace 12 años.

RE: Where's the code for the dockbar?

Junior Member Mensajes: 77 Fecha de incorporación: 12/07/11 Mensajes recientes
Thanks guys, exactly the answers I was looking for!