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

As a developer I can create a fragment for displaying a collection of a specific content type

    Details

      Description

      A very common use case when building a website or other types of web experiences is to display a collection of content (or any other item of information). 

      This Story seeks to empower developers to develop fragments which can display collections of items of a specific type. Developers will be able to use the full power of HTML, CSS and JavaScript to implement any desired advanced presentation needed.

      The fragment developer will be able to specify which type of content does the fragment support as a configuration field. This is useful so that the fragment code can know which fields will be available in each of the content of the collection. 

      When one of these fragments is added to a page, the user will be able to invoke a pop-up to select a collection that is compatible with the component. For example, if a component is able to show only blog entries, would trigger a selector for lists of blog entries.

      Technical Notes

      • One possible way to support the need described is to create a new configuration field type for collections of items. As part of its configuration it should be possible for the fragment developers to specify one or more types of items that it supports. 
      • Using a configuration field, the collection selected by the user will be available to the developer as the value of the field.

      Acceptance Criteria

      • Given a 3rd party fragment to display a collection of items of a certain type
      • When a page author adds the fragment to the page
      • Then they are presented with an action to select a collection of items of that type 

      Test Scenarios

      Test Scenarios Test Strategy Kind of test Is it covered by FrontEnd ? (JS-Unit) Is it covered by BackEnd ? (unit or integration)
      Can select Content Set Providers in a fragment that supports displaying a collection of items Smoke Manual No NO
      Can select Content Sets in a fragment that supports displaying a collection of items Smoke Manual No NO
      Only specific type Dynamic Content Sets are available in a fragment that supports displaying a collection of specific type items Smoke Manual No YES
      Can select Content Set Providers in a fragment that supports displaying a collection of specific type items Smoke Manual No NO
      Manual Content Sets are not available in a fragment that supports display a collection of DLFileEntry items Sanity Manual No NO

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  Master