Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-97128

Possibility to create uni-directional asset links using UI

    Details

    • Type: Feature Request
    • Status: Gathering Interest
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Asset Framework
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            istvan.gergely István Gergely
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package