Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

YAML blueprints extra boxes

first-time

Solved by Paul Massendari View solution

Started by vaidotas lipskas 9 years ago · 2 replies · 1140 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 days ago
3 77 2 days ago
Forms & Blueprints · by Japhy, 3 weeks ago
2 394 2 weeks ago
Forms & Blueprints · by FrViPofm, 1 month ago
5 395 1 month ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2387 8 months ago
Forms & Blueprints · by Hugo Oliveira, 9 months ago
0 844 9 months ago