How i can get page module by it slug in twig template?
Archive
Are you asking about getting a modular page by slug from Twig?
Yes, I want to make a complex layout of modular page and place modules into separate slots in this layout
Any advice?
It's just the same as finding any other page within Grav except you use the modular slug, so something like page.find('/somepage/_features')
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1323 | 9 years ago | ||
| 2 | 919 | 9 years ago | ||
| 2 | 4048 | 9 years ago | ||
| 1 | 2923 | 9 years ago | ||
| 3 | 1106 | 9 years ago |