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.

Support

Collection of a specific page's modules

Started by Sergi 7 months ago · 0 replies · 54 views
7 months ago

This is the problem:

I want to point to the modules of a specific page from the collection of another page. Looking at the documentation, this is achieved as follows:

YAML
content:
    items:
      '@page.modules': '/blocks/serveis'

I save from the admin plugin (expert mode) and it works perfectly, but if I switch to normal mode, the code changes automatically and stops working:

YAML
content:
    items:
      '@page.modules': /blocks/serveis

If I go back in and save from expert mode, the validation error pops up (invalid entry for Items), but it works again. It is very curious when I switch back to normal mode and save (without changes). Then the code changes again and stops working:

YAML
content:
    items: /blocks/serveis

I am aware of the sensitivity of the text in the yaml format, but I still think there is an inconsistency with the Admin plugin. Or… am I doing something wrong?

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 51 8 hours ago
Support · by Anna, 2 days ago
2 58 10 hours ago
Support · by Justin Young, 11 hours ago
1 30 11 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 55 5 days ago