Repeater Inside a Block Ignoring Max items

  • I have the following image repeater inside a block, I have tried to limit the repeater to 3 items however it doesn't work. You can add as many as you like.

    Is this a limitation of the repeater and block combination?

  • drewm

    Approved the thread.
  • I have tried your code on my site.

    Your version of the code doesn't work properly, because it misses the surrounding <blocks></blocks> tags to work properly.

    If you put your code between these tags, you will see an "+ add an item" button and also an "+ Image Strip" (= add block) button.

    The max number of images in one block will be 5.

    But also it will be possible to add another <block> (of max 5 images). There is no limit to the number of blocks added.

    Maybe this is intended, but if you wanted to use blocks and limit the amount of blocks (to 5) this isn't possible as far as I know.

    I (and others) have asked for this feature, but I think it isn't implemented.


  • Sorry, I don't think that is the case.

    Here is the full set of the blocks code, as you will see it contains all the required surrounding tags (I am actually using it to build pages) - however it ignores the limit I apply to the image strip block: