Hello Grav users,
I read a topic about reusing modules in another modular pages and read about Complex Collections and I can't make it work on a site I'm working on.
Here's the case: I have a modular site with a form I'd like to include in most (not all) the pages of the site. The form is in the home page as a module like:
- home
-- _section1
-- _section2
-- _section3
-- _form (the one I want).
On another page I'd like the home page's form sometimes at the bottom but not always.
I tried a complex collection on the another page, let's call it about-us and this would be it's structure:
- about us
-- _section1
-- _section2
-- _form (from home page)
-- _section3
On the default.md file of about us I can put the modular content like this
--
content:
items:
- '@self.modules' (was self.modular on grav 1.6)
- '@page.page': '/home/_form-1'
order:
by: default
custom:
- _section1
- _section2
- _form-1 (or how do I call this???)
- _section3
--
This approach doesn't work. This doesn't display on the site and when I edit the page on the admin, I get a server error. Even not using the custom order, just by adding the @page in the collections make the error appear. I added the slug the admin gave me, but I don't know what else can be happening.
What can I do? I even tried creating a dummy modular _form-1 and on its .md file use the page collection but that didn't work either.
Thanks in advance.

