Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Thomas Berg
Mix preferences
24 de Março de 2013 02:25
Resposta

Thomas Berg

Ranking: Regular Member

Mensagens: 134

Data de entrada: 7 de Setembro de 2009

Mensagens recentes

Hi,

I would like to be able to set preferences for a portlet using different "storage classes", i.e., some prefs are company-wide while others may be unique-per-layout.
Example: I have a portlet where a URL is shared for all instances but another property for binding a tooltip should be per layout. The preferences are editable from the config-page of the portlet.

Is this possible out of the box or have someone managed to accomplish this in some other way?

Regards
Thomas
Riccardo Ferrari
RE: Mix preferences
24 de Março de 2013 04:47
Resposta

Riccardo Ferrari

Ranking: Regular Member

Mensagens: 137

Data de entrada: 13 de Novembro de 2010

Mensagens recentes

Hi,

I am not sure if you want to have a different preferences owner on portlet basis or a different owner per specific portlet properties (let say prefA company, prefB layout ...)
I would suggest you to check the liferay-portlet-app_<version>.dtd and read the descritpion of:
preferences-company-wide
preferences-unique-per-layout
preferences-owned-by-group
if they fits your scenario, otherwise you should go for a custom solution that could include to have some setting read from a portal preference instead.

Best,
Riccardo
Hitoshi Ozawa
RE: Mix preferences
24 de Março de 2013 05:58
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7949

Data de entrada: 23 de Março de 2010

Mensagens recentes

I had a similar requirement and I just created a configuration page within the portlet instead of using the default portlet configuration.