Fórum

[Solved]Ext doubt

thumbnail
Bruno Conrado Santos, modificado 11 Anos atrás.

[Solved]Ext doubt

New Member Postagens: 18 Data de Entrada: 21/03/12 Postagens Recentes
Hi everyone.

I was creating a ext and i have a dougt... Could I insert new propertie in portal.properties?

Thank's

Bruno
thumbnail
Ajeykumar HB, modificado 11 Anos atrás.

RE: Ext doubt

Junior Member Postagens: 72 Data de Entrada: 13/03/12 Postagens Recentes
Hi
Bruno ,

We can't had, but we can modified existing properties.
thumbnail
Bruno Pinheiro, modificado 11 Anos atrás.

RE: Ext doubt

Junior Member Postagens: 27 Data de Entrada: 08/11/10 Postagens Recentes
Hey Bruno,
The best way to add or change properties is using portal-ext.properties
thumbnail
Amit Doshi, modificado 11 Anos atrás.

RE: Ext doubt

Liferay Master Postagens: 550 Data de Entrada: 29/12/10 Postagens Recentes
Hi Bruno,

You can add your custom properties in portal-ext.properties if you required in EXT .

And Fetch it using the following line of code.


final String mypropertyURL = PropsUtil.get("myproperty"); // it will fetch the "/asd/home" that was written in portal-ext.properties


In portal-ext.properites.


myproperty=/asd/home


Hope it helps.

Thanks & Regards,
Amit Doshi
thumbnail
Bruno Conrado Santos, modificado 11 Anos atrás.

RE: Ext doubt

New Member Postagens: 18 Data de Entrada: 21/03/12 Postagens Recentes
Thank you guys for your attention. I solved this problem add a new property in portal-ext.

One more time.. thanks for help me