Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

YAML blueprints extra boxes

first-time

Solved by Paul Massendari View solution

Started by vaidotas lipskas 9 years ago · 2 replies · 1060 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 Japhy, 4 hours ago
0 12 4 hours ago
Forms & Blueprints · by FrViPofm, 3 weeks ago
5 274 2 weeks ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2265 8 months ago
Forms & Blueprints · by Hugo Oliveira, 9 months ago
0 729 9 months ago
Forms & Blueprints · by Flachy Joe, 10 months ago
9 810 10 months ago