Message Boards

Liferay 7.3 - Pass/set custom/own folderId to DLAdminDisplayContext

Chanakya P, modified 1 Year ago.

Liferay 7.3 - Pass/set custom/own folderId to DLAdminDisplayContext

Junior Member Posts: 72 Join Date: 2/17/14 Recent Posts

Hi Team,

I want pass/set custom/own folderId to DLAdminDisplayContext before rendering overriden document_library/view.jsp ( jsp fragment-host)

 

Can any one help me out, How to implement in Liferay 7.3.

thumbnail
Olaf Kock, modified 2 Years ago.

RE: Liferay 7.3 - Pass/set custom/own folderId to DLAdminDisplayContext

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts

Can you elaborate a bit on the use case? E.g. why did you choose this solution, what's the underlying business problem?

Chanakya P, modified 1 Year ago.

RE: Liferay 7.3 - Pass/set custom/own folderId to DLAdminDisplayContext

Junior Member Posts: 72 Join Date: 2/17/14 Recent Posts

Hi Olaf Kock,

Thanks for your reply.

Use Case:

We want to show the perticular folder related documents when specific page hit/access by the user.

Actual Result:

When user hit/access the page, it displaying all the folders and documents of site.

Expected Result:

When user hit/access the page, it should display the perticular folder related documents only.

Note: We already setting the Folder in renderRequest from CustomMVCRenderCommand class.

Ex:

renderRequest.setAttribute(
WebKeys.DOCUMENT_LIBRARY_FOLDER, Folder));

thumbnail
Russell Bohl, modified 2 Years ago.

RE: Liferay 7.3 - Pass/set custom/own folderId to DLAdminDisplayContext

Expert Posts: 291 Join Date: 2/13/13 Recent Posts

There's a widget configuration for that.

1. Place your files into the folder you'd like to use

2. Place the Documents and Media widget on the page.

3. Open the widget configuration screen.

4. In the Folders Listing section, select the folder you want to display and save.

That's it. If you're trying to describe something different, you'll need to elaborate even more on what you're trying to accomplish.