Affects Version/s: 7.4.13 DXP GA1, Master
The Collection Display does not display all objects returned by the provider even when the "Display All Collection Items" check box is ticked.
It is also not possible to set the "Maximum Number of Items" value higher than the actual count in the collection.
This means that the Collection Display will not automatically display new objects within the collection.
It is necessary to Edit the Page, select the Collection Display and uncheck and recheck the "Display All Collection Items" checkbox, at which point the "Maximum Number of Items" is updated to reflect the new count.
When "Display All Collection Items" is checked then all objects should be available at all times
- Create a new Object. A simple one will do, a single field. For example, create an Object to called Task and create a single String based field called Name. Configure Title Field as Name and set Scope and Panel Category Key to Site and People. Publish it
- Create a form and configure it to use the Object. Create a single text field and link it to the Name field of the Object.
- Create a new Content Page. Add and configure the Form widget. Add and configure a Collection Display, i.e. link it to the Tasks collection provider. Change Pagination to Simple or Numeric and select the "Display All Collection Items" checkbox.
- Add a Heading widget within the collection display and link it to the Title field.
- As there is nothing in the collection then the warning message will display "This collection has no items. You need at least one item to use this configuration."
- You can still Publish the page.
- Create a new task via the form and edit the content page to finalise the configuration for the collection display, as above.
- The fact there is nothing in the collection should not be an issue because we have configured the widget to "Display All Collection Items" and not tried to set it to a specific size.
- If you create another task then it will not appear in the collection.