Foros de discusión
To display multiple language portlet in dockbar ?
Dinesh Balaji, modificado hace 13 años.
To display multiple language portlet in dockbar ?
Junior Member Mensajes: 51 Fecha de incorporación: 6/10/10 Mensajes recientes
Hi,
I want to diaplay the language portlet ( which we made it as a text instead of flag images)in the dockbar as a drop down( Similar to the liferay website language selection). How to implement this.
Thanks in advance.
Regards,
Dinesh Balaji V
I want to diaplay the language portlet ( which we made it as a text instead of flag images)in the dockbar as a drop down( Similar to the liferay website language selection). How to implement this.
Thanks in advance.
Regards,
Dinesh Balaji V
Amos Fong, modificado hace 13 años.
RE: To display multiple language portlet in dockbar ?
Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
Hi Dinesh,
You can invoke the language taglib in your theme's vm files like this:
Take a look at VelocityTaglib.java for more APIs with more parameters.
You can invoke the language taglib in your theme's vm files like this:
$taglibLiferay.language()
Take a look at VelocityTaglib.java for more APIs with more parameters.
Dinesh Balaji, modificado hace 13 años.
RE: To display multiple language portlet in dockbar ?
Junior Member Mensajes: 51 Fecha de incorporación: 6/10/10 Mensajes recientes
Hi Amos,
I want to add language as a drop down in theme-header(dockbar\view.jsp).
In liferay 5.2.3 we have dock.vm to do following change
$taglibLiferay.language("fm", null,"languageId",3)
I'm using Liferay 6 where I don't see dock.vm file. Instead of this file I found dockbar\view.jsp.
How to add above code change in dockbar\view.jsp?
Regards,
Dinesh
I want to add language as a drop down in theme-header(dockbar\view.jsp).
In liferay 5.2.3 we have dock.vm to do following change
$taglibLiferay.language("fm", null,"languageId",3)
I'm using Liferay 6 where I don't see dock.vm file. Instead of this file I found dockbar\view.jsp.
How to add above code change in dockbar\view.jsp?
Regards,
Dinesh
Amos Fong, modificado hace 13 años.
RE: To display multiple language portlet in dockbar ?
Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
Hm...yea there's no dock.vm anymore in 6.x. To override view.jsp you need to use a jsp hook.
http://www.liferay.com/community/wiki/-/wiki/Main/Portal+Hook+Plugins
http://www.liferay.com/community/wiki/-/wiki/Main/Portal+Hook+Plugins
Dinesh Balaji, modificado hace 13 años.
RE: To display multiple language portlet in dockbar ?
Junior Member Mensajes: 51 Fecha de incorporación: 6/10/10 Mensajes recientes
Hi Amos,
Thanks for quick reply.
I have created hook by reading that web link.
Could you give me equivalent code for
$taglibLiferay.language("fm",null,"languageId",3)
in dockbar\view.jsp file?
Thanks in Advance
Dinesh
Thanks for quick reply.
I have created hook by reading that web link.
Could you give me equivalent code for
$taglibLiferay.language("fm",null,"languageId",3)
in dockbar\view.jsp file?
Thanks in Advance
Dinesh
hung ngo, modificado hace 13 años.
RE: To display multiple language portlet in dockbar ?
New Member Mensajes: 15 Fecha de incorporación: 5/07/08 Mensajes recientes
you can try this to display 3 languages in a horizontal lines
<liferay-ui:language displayStyle="0" languageIds="<%= new String[]{"en_US","pt_BR","zh_CN"} %>" />
sandhya shendre, modificado hace 13 años.
RE: To display multiple language portlet in dockbar ?
New Member Mensajes: 5 Fecha de incorporación: 21/01/11 Mensajes recientes
Hi Amos,
$taglibLiferay
How to get velocity variables in jsp page?
Regards,
Sandhya Shendre
$taglibLiferay
How to get velocity variables in jsp page?
Regards,
Sandhya Shendre
sandhya shendre, modificado hace 13 años.
RE: To display multiple language portlet in dockbar ?
New Member Mensajes: 5 Fecha de incorporación: 21/01/11 Mensajes recientes
Hi Amos,
I need your help.
I want to display language drop down similar to 'Manage' which appears in header (dockbar\view.jsp)
I have tried the same way how 'Manage' has added in dockbar\view.jsp
but mouse over event is not getting triggered.
I have modified dockbar.js file also (similar to 'Manage' changes)
Please help me.
Regards,
Sandhya Shendre
I need your help.
I want to display language drop down similar to 'Manage' which appears in header (dockbar\view.jsp)
I have tried the same way how 'Manage' has added in dockbar\view.jsp
but mouse over event is not getting triggered.
I have modified dockbar.js file also (similar to 'Manage' changes)
Please help me.
Regards,
Sandhya Shendre
Amos Fong, modificado hace 13 años.
RE: To display multiple language portlet in dockbar ?
Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
Sandhya,
Sorry I'm not sure how to do that. I think (not sure) you have to do something with the addMenu function in dockbar.js.
Sorry I'm not sure how to do that. I think (not sure) you have to do something with the addMenu function in dockbar.js.
Juhi Kumari, modificado hace 12 años.
RE: To display multiple language portlet in dockbar ?
Expert Mensajes: 347 Fecha de incorporación: 12/12/11 Mensajes recientes
Hi Sandhya,
Did you get the solution for this? I also need the same but not getting solution.
Regards
Juhi
Did you get the solution for this? I also need the same but not getting solution.
Regards
Juhi