I have a Matrix field setup and working perfectly except for one problem.
In my template I'm using .limit
to only pull the first two items from the matrix field (I can't use max in the field settings as I'm using the same field on other pages that allow more than two blocks to show).
Using the following line to pull the Matrix blocks works fine in the live preview.
{% for serviceBlock in entry.serviceBlocks %}
But adding the limit stops Craft showing the blocks in the live preview. Though the rest of the template loads and updates perfectly.
{% for serviceBlock in entry.serviceBlocks.limit(2) %}
I'm not getting any errors, and if I save the page and reload the live preview it will render the blocks perfectly, but not update the content live.
Has anyone encountered this problem, or have an idea that might help?