Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Alain Dresse
Controling import-export of preferences in lar for custom portlet
July 9, 2012 11:38 AM
Answer

Alain Dresse

Rank: Junior Member

Posts: 95

Join Date: July 18, 2011

Recent Posts

Hi,

My question : how can I prevent inclusion of a specific portlet preference value in a lar file ?

The context:
One of my portlets creates messages in a message board based on user input. In the preferences of my portlet, I store the ID of the message board category in which the message is published.

When I save a page with this portlet from a given group - say in group A - , the categoryId saved in the lar file points to a message board category in group A. If I import the lar file as a page in another group - say group B - the newly created portlet posts the messages in the exported portlet's category, in group A. What I would like to do is to NOT save the categoryId in the lar file, so that a new category is created for a newly created portlet.

Thanks,
Alain
Neetu Mishra
RE: Controling import-export of preferences in lar for custom portlet
July 24, 2012 11:28 PM
Answer

Neetu Mishra

Rank: Junior Member

Posts: 76

Join Date: May 21, 2012

Recent Posts

Alain Dresse:
What I would like to do is to NOT save the categoryId in the lar file, so that a new category is created for a newly created portlet.


Hi Alain,

We have option for not to export categories of a message board in Liferay 6.0.

I am not very sure whether it would fulfill your requirements or not but you can try this.emoticon

I am attaching here snapshot also.
Attachment

Attachments: category_export.png (17.4k)