Issue
- I have a Documents and Media portlet on the page
- I go to the configuration menu of the portlet and try to change the Root Folder
Result: I cannot set an external repository (for example Alfresco) as a root folder. The repository does not even show up here.
Environment
- Liferay DXP 7.0+
Resolution
In Liferay Portal 6.2, it was possible to set an external repository, such as Alfresco as the Documents and Media portlet's root folder.
However, this feature has been removed via LPS-74806 for the following reasons:
- In the case of Documents and Media root folders, comments and assets, there are no permanent data stored in the DB that can be used to attach this information (as RepositoryEntry is not really persisted).
- Permissions should be set in the guest repository (Alfresco, Sharepoint, etc.), not in Liferay.
For (1) Liferay cannot simply store the information in the database. Elements can be removed or moved around in the backend repository at any time without Liferay noticing any of this. This would eventually lead to the RepositoryEntry table being filled with lots of invalid data, which also would be very expensive to purge.
Additional Information
- It is possible to bring back the feature by reverting the parts of LPS-74806 that disabled external repositories to be set as root folders.
- Please note that the above is considered as customization. Regarding customization and actual implementation questions, our assistance options are unfortunately limited as Liferay Support is mainly for handling technical malfunctions with the portal. Getting assistance for how to implement custom development can be discussed with our Global Services Team.