Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Portlet title - using common resource bundle for all portlets
Hi,
We use a common resource bundle containing translatable strings for 8 different languages
mycompany_en_US.properties
mycompany_es_US.properties
...
...
...
i have 3 portlets and i have defined resource bundle in portlet.xml
<resource-bundle>mycompany</resource-bundle>
As per the documentation each resource bundle can i have one entry for javax.portlet.title.
As i have 3 portlets with different titles using a common resource bundle. How do i define different titles for each of my portlet in resourcebundle and reference them in portlet.xml
We use a common resource bundle containing translatable strings for 8 different languages
mycompany_en_US.properties
mycompany_es_US.properties
...
...
...
i have 3 portlets and i have defined resource bundle in portlet.xml
<resource-bundle>mycompany</resource-bundle>
As per the documentation each resource bundle can i have one entry for javax.portlet.title.
As i have 3 portlets with different titles using a common resource bundle. How do i define different titles for each of my portlet in resourcebundle and reference them in portlet.xml
Hi Sanjay,
Please try with following concept, hope it may helps you
javax.portlet.title.<portlet-id>=Portlet Title
For e.g.,
javax.portlet.title.my-portlet=My Test Portlet
Please try with following concept, hope it may helps you
javax.portlet.title.<portlet-id>=Portlet Title
For e.g.,
javax.portlet.title.my-portlet=My Test Portlet
Thanks Pinkesh,
I am assuming the protlet-id is as defined for individual portlets in liferay-display.xml
I am assuming the protlet-id is as defined for individual portlets in liferay-display.xml
Portlet id is the name declared in the portlet.xml.
e.g. In the following example from liferay's portlet-custom.xml, portlet-id is 2.
<portlet-name>2</portlet-name>
e.g. In the following example from liferay's portlet-custom.xml, portlet-id is 2.
<portlet-name>2</portlet-name>
Thank you.
How do i achieve the same for Site page name ?.
I have created a site with private and public pages. I would like to derive the name of the page from the custom resource bundle
How do i achieve the same for Site page name ?.
I have created a site with private and public pages. I would like to derive the name of the page from the custom resource bundle
Hi Sanjay,
If you want to create site pages through portal UI then it is not possible.
You must have to pass required values manually in UI at the time of page creation.
But if you are trying to create site pages through your code then you can do it by reading property file.
I hope it might resolved your query.
If you want to create site pages through portal UI then it is not possible.
You must have to pass required values manually in UI at the time of page creation.
But if you are trying to create site pages through your code then you can do it by reading property file.
I hope it might resolved your query.
I have 1 WAR 1 portlet.xml with multiple portlets and according to following documentation
http://www.liferay.com/es/community/wiki/-/wiki/Main/Portlet+Localization+-+Outside+Liferay#section-Portlet+Localization+-+Outside+Liferay-Portlet+Title
i need to have resource bundle for each portlets. Is there a way i can get it to work with common resource bundle ?
http://www.liferay.com/es/community/wiki/-/wiki/Main/Portlet+Localization+-+Outside+Liferay#section-Portlet+Localization+-+Outside+Liferay-Portlet+Title
i need to have resource bundle for each portlets. Is there a way i can get it to work with common resource bundle ?