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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Forms & Blueprints

YAML blueprints extra boxes

first-time

Solved by Paul Massendari View solution

Started by vaidotas lipskas 9 years ago · 2 replies · 763 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 Ton Haarmans, 5 years ago
13 1135 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 60 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 132 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 108 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 127 7 months ago