Ad
Set Max Result To Octobercms Repeater
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
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
Related Questions
- → OctoberCMS Backend Loging Hash Error
- → "failed to open stream" error when executing "migrate:make"
- → OctoberCMS - How to make collapsible list default to active only on non-mobile
- → Create plugin that makes objects from model in back-end
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → How to install console for plugin development in October CMS
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS create a multi select Form field
- → How to update data attribute on Ajax complete
- → October CMS - Conditionally Load a Different Page
Ad