Set max result to octobercms repeater

- 1 answer

Ad

I have the bellow repeater

{repeater name="gallery" prompt="Add another image" tab="Gallery"}
{variable type="mediafinder" name="image" label="Image" type="mediafinder" mode="image"}{/variable}
{variable type="text" name="title" label="Title"}{/variable}
{variable type="text" name="description" label="Description"}{/variable}
{variable type="richeditor" name="button" label="Button Link" toolbarButtons="insertLink" size="small"}{/variable}
{/repeater}

Can I set max result of repeats?

For example if set max=3 repeats of gallery. Whenever reach the amount of 3 the prompt "Add another image" does not appear

Ad

Answer

Ad

This feature does not exist at the moment. The best place to request it is the October CMS GitHub issues register, or better yet, you could submit a Pull Request for it to be added.

Ad
source: stackoverflow.com
Ad