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).
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.
- 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.
- 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 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|