Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Minimum and maximum number of list items (blueprint)

Started by Muut Archive 10 years ago · 6 replies · 809 views
10 years ago

I've using a blueprint to create a list of images to make a slideshow. I want to have a minimum of 3 items, and a max of X.

---yaml
fields:
.image:
label: Select Image
type: pagemediaselect

TXT


I've tried adding `min: 3` but that doesn't work. Is this possible?
10 years ago

hi,have the same issue, did you resolve it ?

10 years ago

I don't think theres an option for this but you could limit the output in your twig file.

10 years ago

No that is not possible right now. You can open an issue to request such feature to be included in a future release.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1321 9 years ago
Archive · by Muut Archive, 9 years ago
2 916 9 years ago
Archive · by Muut Archive, 9 years ago
2 4047 9 years ago
Archive · by Muut Archive, 9 years ago
1 2921 9 years ago
Archive · by Muut Archive, 9 years ago
3 1105 9 years ago