-
Type:
Feature Request
-
Status: Under Review
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Asset Framework
-
Labels:
Dear Team,
We would like to propose the idea of linking related assets to web contents in a unidirectional way.
The feature would give more flexibility and power to content editors using the Asset Framework's related content possibilities to provide a better content management experience.
In our initial investigation, we found that the Liferay API could support the uni-directional type for AssetLinks where the AssetLinkLocalService uses the type parameter to achieve this behavior.
type - the link type. Acceptable values include AssetLinkConstants#TYPE_RELATED which is a bidirectional relationship and AssetLinkConstants#TYPE_CHILD which is a unidirectional relationship. For more information see AssetLinkConstants.:
https://docs.liferay.com/portal/7.0/javadocs/portal-kernel/com/liferay/asset/kernel/service/AssetLinkLocalService.html
https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portlet/asset/service/impl/AssetLinkLocalServiceImpl.java#L59
In addition to the API, which already makes it possible to create AssetLinkConstants#TYPE_RELATED and AssetLinkConstants#TYPE_CHILD relations between assets, we think the best place to add this feature is the edit interface. Please see the attachment for a preview.
This would be somewhere between the – Begin and End – of the fragment_com_liferay_journal_web_portlet_JournalPortlet_relatedAssets.
Best,
István