Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Becas Kostas
Asset Publisher user scope
November 23, 2012 6:32 AM
Answer

Becas Kostas

Rank: Junior Member

Posts: 28

Join Date: August 30, 2012

Recent Posts

Hey,

The scanario is:

Each user has an asset publisher (user scope) portlet in his public pages for adding content with specific structure and template.
How can i get these asset in a asset publisher in public pages of the site (not the user public pages). Is it possible?

The use of global scope does not meet my requirements. Think the following senario

User 1 has an asset publisher for displaying the last 5 webcontents he adds and to add new content. If the scope is global then if user_2 adds content then that content will be vissible at user_1 asset publisher.

I need the same functionality as blogs, where the scope can be users.

Is it possible or i need to create a custom portlet for that?
Bart Simpson
RE: Asset Publisher user scope
November 23, 2012 7:00 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

I am not sure if it's entirely possible with hooks. The idea basically is that each user's (own) assets are stored with his groupId. So you need to identify the groupid's of the user's you want to list the assets of. Then passing these groupid's to asset publisher's jsp's / classes to fetch and render the content should do the trick.
You can also create custom portlet if you don't really need all the other functionality of Asset publisher.
Becas Kostas
RE: Asset Publisher user scope
November 23, 2012 7:29 AM
Answer

Becas Kostas

Rank: Junior Member

Posts: 28

Join Date: August 30, 2012

Recent Posts

yes, i think it is better to use my custom portlet instead of hooking the asset publisher. I think it should be default option for liferay. Maybe in next releases..

Thanks for the quick reply bart.