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

Muut Archive Legend

@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Modular page content chunks · 11 years ago

    Oh, I am sorry I must have missed that! However, to be honest I would still expect that behaviour to be supported. Is there another way to achieve the same results, i.e. re-use content from within a m

  • Modular page content chunks · 11 years ago

    Well like I said modular pages in grav won't work like this. They are considered parts of a page, and won't be found with page.find(). So that behavior is expected.

  • Modular page content chunks · 11 years ago

    Thanks very much Andy, I couldn't get it to work as described but once I dropped the two folders to the page/ folder it worked! I was also able to create a topic2 folder, change the search string, and

  • Modular page content chunks · 11 years ago

    https://www.dropbox.com/s/dz0kgw8qdevt8ku/hibbitts.zip?dl=0 Unzip this, and drop the two folders in your user/ folder and point your browser to /twig-render

  • Modular page content chunks · 11 years ago

    Thanks for testing it out, I must have something awry somewhere. Would it be possible for you to share this working example somehow? I really don't know why I am getting null on my end, thanks.

  • Modular page content chunks · 11 years ago

    I just tested this and it worked 100% fine. 1) I have a plugin i put test templates, but would work the same if you dropped the resource-render.html.twig in the templates/ folder of the theme your u

  • Modular page content chunks · 11 years ago

    Thanks for having a look Andy, I appreciate that. This ability of reusable content is a great feature of Grav, but one that I struggled with to get a working example going. If it helps you to have acc

  • Modular page content chunks · 11 years ago

    Well that looks about right. I'm probably going to have to try to debug this scenario to see what's going on.

  • Modular page content chunks · 11 years ago

    Well, that was a bit embarrassing :-) Thanks for pointing that out! I am trying to get content from /resources/topic1 to display elsewhere, but while I do not get an error anymore (thank you!) I get w

  • Modular page content chunks · 11 years ago

    BTW, try and post code blocks between the triple back-ticks like in regular markdown, makes it much easier to read and see obvious missing things.