Message Boards

Explain about "AssetBrowser Portlet" and uses in Web content in liferay 7 ?

lokesh gorrela, modified 7 Years ago.

Explain about "AssetBrowser Portlet" and uses in Web content in liferay 7 ?

Regular Member Posts: 173 Join Date: 3/9/16 Recent Posts
Hi guys,

I want to know about Asset Browser Portlet in liferay 7 and How it is useful in Web content articles.

Actually I getting a problem in select existing Web content Article functionality. If I login as Portal Admin and I try to select existing web content article after that it is automatically render to Asset Browser Portlet and display all the existing articles.So, It is working fine for Login as test.
If I login as Site Admin and I try to select existing web content article after that it is automatically render to Asset Browser Portlet but not display existing web content articles. So It is not working for Login as Site Admin.
URL:
http://gclassroom.lokesh.com:8080/group/g-classroom/~/control_panel/manage?p_p_id=com_liferay_asset_browser_web_portlet_AssetBrowserPortlet&p_p_lifecycle
=0&p_p_state=pop_up&_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_groupId
=15345&_com_liferay_asset_browser_web_portlet_AssetBrowserPortlet_selectedGroupIds
=15345%2C363811%2C394404%2C213722%2C11105%2C10165&_com_liferay_asset_browser_web_portlet_
AssetBrowserPortlet_refererAssetEntryId=%5B%24ARTICLE_REFERER_ASSET_ENTRY_ID%24%5D&_com_liferay_
asset_browser_web_portlet_AssetBrowserPortlet_typeSelection=com.liferay.journal.model.JournalArticle&_com_
liferay_asset_browser_web_portlet_AssetBrowserPortlet_showNonindexable=true&_com_liferay_asset_browser_
web_portlet_AssetBrowserPortlet_showScheduled=true&_com_liferay_asset_browser_web_portlet_
AssetBrowserPortlet_eventName=selectContent


See the below screen shorts for better understanding my problem:
thumbnail
Andrew Jardine, modified 7 Years ago.

RE: Explain about "AssetBrowser Portlet" and uses in Web content in liferay

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hi Lokesh,

It looks to me like the AssetBrowser portlet is a control panel portlet -- probably something generic that Liferay uses to render the details of web content, users, documents and media etc. That's a guess, but based on the parameters in the render url, it can't be far off in terms of accuracy.

As for your issue, I think the error message is pretty self explanatory -- you don't have the roles required to view the content so it's a permissions issue.
lokesh gorrela, modified 7 Years ago.

RE: Explain about "AssetBrowser Portlet" and uses in Web content in liferay

Regular Member Posts: 173 Join Date: 3/9/16 Recent Posts
Hi Andrew Jardine
Thanks for your replay

I am searched for Asset Browser Portlet in liferay 7 portal code, but it is not available in that portal code. How to find this Asset Browser Portlet and Portlet Id in liferay 7.

Actually this functionality is working fine for Administrator Role. But , I created one Regular Role and
I given all the permissions of Web content, Web Content Display, Web Content Search applications to that Regular Role.So, this functionality is not working for newly created Regular Role. .
I con't understand which permission I missed here. Could you please tell the solution for this problem. This is great Help to me
thumbnail
Andrew Jardine, modified 7 Years ago.

RE: Explain about "AssetBrowser Portlet" and uses in Web content in liferay

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hi Lokesh,

Ok -- I am trying to follow what you are saying, but it's a little confusing. Here is what I did.

1. Fresh install of LR7 GA3
2. Logged in as the admin and created a single basic content item
3. Added a new user called siteadmin
4. Logged out
5. Logged in as siteadmin user
6. Validated that the siteadmin user (no roles assigned yet) could not access web content management
7. Logged out
8. Logged in as admin user and added Site Administrator role to siteadmin user

NOTE: the site member and content reviewer site roles don't have any permissions so assigning those will do nothing for you out of the box.

9. Logged out
10. Logged in as siteadmin
11. Was able to see web content management for site and edit the content.
12. Logged out
13. Logged in as admin and added a new Site Role (which I think is what you want, not a Regular Role)
14. Defined the permissions on that role to have UPDATE and VIEW for all the Web Content stuff.
15. IMPORTANT!! I also added from the general section at the top of the web content permissions the ability to View Site Administration Menu -- this is perhaps the one you are missing?
16. Went to the Users and Organizations Management and added the Site Role to my siteadmin user
17. Went to the Site memberships and varified that the siteadmin user was a member of the Liferay site and that he was assigned the role.
18. Logged out
19. Logged in as siteadmin
20. Now I was able to see the web content management and I was able to edit the content item I created earlier.

-- if this what you are trying to do?
lokesh gorrela, modified 7 Years ago.

RE: Explain about "AssetBrowser Portlet" and uses in Web content in liferay

Regular Member Posts: 173 Join Date: 3/9/16 Recent Posts
Hello Andrew Jardine

Now I am working on Liferay 7 GA2. I don't want to user Site Administrator role directly. Because I used Site Administrator role that user get all the permission, So I need to restrict some permissions to Site Admin user. Actually I created one Organization Role with Name Site Admin. After that I given all the web content related permission to that role. I given what you said permissions also. But still I Faced the same problem.
lokesh gorrela, modified 7 Years ago.

RE: Explain about "AssetBrowser Portlet" and uses in Web content in liferay

Regular Member Posts: 173 Join Date: 3/9/16 Recent Posts
Hello Andrew Jardine

I did What you said the process in liferay 7 GA3. But I faced one problem in this process i.e after creating the Site Role how to assign that role to user.
Can you tell the process of assigning Site Role to user.

Thanks
With Regards
Lokesh
thumbnail
Andrew Jardine, modified 7 Years ago.

RE: Explain about "AssetBrowser Portlet" and uses in Web content in liferay

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hi Lokesh,

You can do it manually thorough the user administration in the control panel. The down side to this if course is that you have to add them manually for each person.If you were using Regular Roles, you could also do default associations in Control Panel > Instance Settings > User > Default User Associations, so that when a new user is added the association is made automatically. Unfortunately though, this won't work for Site roles. I'm not sure what your environment looks like exactly and how you get users into your system, but if you populate them automatically using an external store like Active Directory of OpenDS then wht you could do is import User Groups for the DS along with the Users. Then in Liferay, you assign the role to the User Group so that you only have to make the assignment once. Any user that is imported from your DS, who is assigned to that user group, will inherit the role automagically.
lokesh gorrela, modified 7 Years ago.

RE: Explain about "AssetBrowser Portlet" and uses in Web content in liferay

Regular Member Posts: 173 Join Date: 3/9/16 Recent Posts
Thanks for your replay.

I try to assign site role to user I faced the problem. See below screen short for understand my problem.
thumbnail
Andrew Jardine, modified 7 Years ago.

RE: Explain about "AssetBrowser Portlet" and uses in Web content in liferay

Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Sooooooooo.. you need to go to the site memberships and add them to the site. Once they are a member you should be able to add the role to them. In fact, I think you can even assign them the role when you add them as a member of the site.
Hêndi Silva, modified 7 Years ago.

RE: Explain about "AssetBrowser Portlet" and uses in Web content in liferay

New Member Posts: 5 Join Date: 10/2/12 Recent Posts
I have the same problem!
I can not identify the permission that allows the user to open the modal if they select a resource.

Web Content Display or Asset Publisher > Configuration > Setup > Asset Selection: Manual > Select Web Content (role required)
or
Web Content Display > Configuration > Setup > select web content (role required)

Only works with roles: Site Administrator or Organization Administrator!

emoticon
Hêndi Silva, modified 7 Years ago.

RE: Explain about "AssetBrowser Portlet" and uses in Web content in liferay

New Member Posts: 5 Join Date: 10/2/12 Recent Posts
Is it the same problem?

https://issues.liferay.com/browse/LPS-69984
https://issues.liferay.com/browse/LPS-67630
https://issues.liferay.com/browse/LPS-67580