掲示板
To display multiple language portlet in dockbar ?
13年前 に Dinesh Balaji によって更新されました。
To display multiple language portlet in dockbar ?
Junior Member 投稿: 51 参加年月日: 10/10/06 最新の投稿
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
13年前 に Amos Fong によって更新されました。
RE: To display multiple language portlet in dockbar ?
Liferay Legend 投稿: 2047 参加年月日: 08/10/07 最新の投稿
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.
13年前 に Dinesh Balaji によって更新されました。
RE: To display multiple language portlet in dockbar ?
Junior Member 投稿: 51 参加年月日: 10/10/06 最新の投稿
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
13年前 に Amos Fong によって更新されました。
RE: To display multiple language portlet in dockbar ?
Liferay Legend 投稿: 2047 参加年月日: 08/10/07 最新の投稿
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
13年前 に Dinesh Balaji によって更新されました。
RE: To display multiple language portlet in dockbar ?
Junior Member 投稿: 51 参加年月日: 10/10/06 最新の投稿
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
13年前 に hung ngo によって更新されました。
RE: To display multiple language portlet in dockbar ?
New Member 投稿: 15 参加年月日: 08/07/05 最新の投稿
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"} %>" />
13年前 に sandhya shendre によって更新されました。
RE: To display multiple language portlet in dockbar ?
New Member 投稿: 5 参加年月日: 11/01/21 最新の投稿
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
13年前 に sandhya shendre によって更新されました。
RE: To display multiple language portlet in dockbar ?
New Member 投稿: 5 参加年月日: 11/01/21 最新の投稿
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
13年前 に Amos Fong によって更新されました。
RE: To display multiple language portlet in dockbar ?
Liferay Legend 投稿: 2047 参加年月日: 08/10/07 最新の投稿
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.
12年前 に Juhi Kumari によって更新されました。
RE: To display multiple language portlet in dockbar ?
Expert 投稿: 347 参加年月日: 11/12/12 最新の投稿
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