However to reflect changes on the dedicated product page (reorder products, change element attributes), the only way I got it working is by disabling caching for the productList prototype completely.
How can i define caching so the productList element get’s cached and updated only if the order of products or the prodcts themselves change on the dedicated product page?
This reads like the following:
Your Site:ProductList is a collection if products. The products itself are stored in the path collection. When you render your List on the template with each item in collection will be rendered in TS object of Type Site:ProductListItem. The Site:ProductListItem will be cahced for each node. So every item in your list has it’s own cache and will be flushed if the product is changed (entryIdentifier). So if just one product is changed only that list item will be flushed, not the full list.
Didn’t tested the code, just wrote it down but i hope you get the idea.
Thank you for the example, I 've been looking into the Carousel prototype from the demo site but did not understand how to implement the itemRenderer. Your example is easier to understand.
Update: I need three different views of the product list so i ended up with this: