Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

YAML blueprints extra boxes

first-time

Solved by Paul Massendari View solution

Started by vaidotas lipskas 9 years ago · 2 replies · 1273 views
9 years ago

Hello,

I'm to learn how to use blueprints, everything works good but just want to know if there is any chance to make a button which you pressing and the same box with options will appear for example look in the image below:

22|690x166

So I would like to have a button under him which i would press and the same options would appear, and i would able to have multiple boxes. is there any possibility to do that with YAML or is there no luck in it? I'm kind of new to YAML

9 years ago Solution

You have to use a list field: exemple:

YAML
header.mylistfield:
  type: list
  label: Add element
  fields:
    .mytextbox:
      type: text
      label: My text box
👍 1

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Anna, 2 days ago
2 51 15 hours ago
Forms & Blueprints · by Anna, 3 days ago
7 81 15 hours ago
Forms & Blueprints · by Anna, 1 week ago
5 185 6 days ago
Forms & Blueprints · by TomW, 1 month ago
3 377 1 month ago
Forms & Blueprints · by Japhy, 2 months ago
2 593 2 months ago