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

Flex Objects and directory

Started by p 4 years ago · 0 replies · 521 views
4 years ago

Is it possible to use flex objects with variable directories? Usually the directory has to be specified in the flex-blueprint under

YAML
    storage:
      class: 'Grav\Framework\Flex\Storage\SimpleStorage'
      options:
        formatter:
          class: 'Grav\Framework\File\Formatter\JsonFormatter'
        folder: user-data://flex-objects/guestbook.json

Would it be possible to define the folder variably?

Use case would be a guestbook plugin with multiple storage directories that can be specified in the frontmatter of a md page file. This way each page could have its own storage directory.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Mathieu Lecouturier, 6 days ago
3 132 3 days ago
Plugins · by Slebeig, 4 weeks ago
1 296 4 weeks ago
Plugins · by Rene, 2 months ago
2 456 2 months ago
Plugins · by Xavier, 2 months ago
2 373 2 months ago
Plugins · by Luka Prinčič, 7 years ago
3 1597 3 months ago