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

Multi page reference

Started by Muut Archive 9 years ago · 3 replies · 399 views
9 years ago

Hi! I've created a field to save links to internal pages in my site, this way:

YAML
      fields:
        header.filmography:
          type: pages
          size: medium
          classes: fancy
          style: vertical
          label: Filmography
          show_all: false
          show_modular: false
          show_root: false
          help: PLUGIN_ADMIN.HOME_PAGE_HELP
          multiple: true

The point is that when I put multiple: true it doesn't work, but, then I remove it it works and the field is saved into the md file.

And another question: Is it possible to filter by page template?

Thanks in advance!

9 years ago

What appears in the md file for this field is this:

filmography: Array

9 years ago

Also, tried with a list, and the result is the same... It seems it cannot save arrays properly :(

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1336 9 years ago
Archive · by Muut Archive, 9 years ago
2 925 9 years ago
Archive · by Muut Archive, 9 years ago
2 4056 9 years ago
Archive · by Muut Archive, 9 years ago
1 2941 9 years ago
Archive · by Muut Archive, 9 years ago
3 1112 9 years ago