The list tile is now hard coded to 5 items by default in tiles/list.py:ListTile with limit = 5 . The set_limit() method on the same class is marked with a TODO, the count field is not used/ignored:
# TODO: get rid of this by replacing it with the 'count' field
def set_limit(self):
for field in self.get_configured_fields():
if field and field.get('id') == 'uuids':
self.limit = int(field.get('size', self.limit))
I checked with some debugging but afaics the field.get('size', self.limit) will never find a size value since it's not there. Is this some legacy code that would break installed base if we implement the TODO? Maybe in the CarouselTile that is inheriting from ListTile?
The Collection tile has a similar hard coded value where the number_to_show field value is chcked but otherwise set to 4. At least here you can override the default value, but the schema has a note that number_to_show should be renamed to count (to be on par with naming in the ListTile).Another
installed base migration.
Last, the Layout configuration of the List tile shows a 'Position' label next to the "Number to Show" field name, but this seems to be the ordering of the fields, not the field for count. See attached screenshot.
Questions:
- What are the risks of fixing these fields for installed base?
- Should we create fields for these default limitations for list and collection in the cover settings on the plone control panel instead of hard coding them in the python file so that we can override them per site and set using plone.app.registry?
- Should the default limit field for list tiles be overridable in the List Tile Layout config just as is now the case for the collection Tile?
- Should it be one value for both field limits, or separate limits for List/Carousel / Collection?

The list tile is now hard coded to 5 items by default in tiles/list.py:ListTile with limit = 5 . The set_limit() method on the same class is marked with a TODO, the count field is not used/ignored:
I checked with some debugging but afaics the field.get('size', self.limit) will never find a size value since it's not there. Is this some legacy code that would break installed base if we implement the TODO? Maybe in the CarouselTile that is inheriting from ListTile?
The Collection tile has a similar hard coded value where the number_to_show field value is chcked but otherwise set to 4. At least here you can override the default value, but the schema has a note that number_to_show should be renamed to count (to be on par with naming in the ListTile).Another
installed base migration.
Last, the Layout configuration of the List tile shows a 'Position' label next to the "Number to Show" field name, but this seems to be the ordering of the fields, not the field for count. See attached screenshot.
Questions: