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 · 1209 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 TomW, 3 weeks ago
3 277 3 weeks ago
Forms & Blueprints · by Japhy, 1 month ago
2 526 1 month ago
Forms & Blueprints · by FrViPofm, 2 months ago
5 522 2 months ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2515 9 months ago
Forms & Blueprints · by Hugo Oliveira, 10 months ago
0 958 10 months ago