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

Call informations from a custom form made in blueprint

Started by Muut Archive 10 years ago · 1 replies · 290 views
10 years ago

Hello,

I have created a form with blueprint in the grav admin for a specific page. I needed a list system, so I've decided to create my own form. Now I don't know how to call the data from this form in a page template...

I tried to find some informations about this subject, but I don't see anything about this on the website.

I want to use the name of the worker and the history (Like the image url {{ image.url }}) ! Here's the form blueprint bellow :

form:
fields:
tabs:
type: tabs
active: 1

YAML
  fields:
    gallery:
      type: tab
      title: Worker

      fields: 
       header.worker:
          name: Worker
          type: list
          style: vertical
          label: Add a new worker
          fields:
            .name:
              type: text
              label: name
            .history:
              type: text
              label: history

Thank you so much !
Kind regards
Ekiwnox

10 years ago

The information is stored in the page header. So call page.header.worker and its properties.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1359 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2955 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago