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.

Kubenexion Newcomer

@Kubenexion · Joined 9 years ago · 4 posts · 2 topics · 3 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • Add assets on Twig include · 9 years ago

    Thanks for your answer. I have to do the assets.addJs() in page.html.twig with your explanation, but if I have: {# page.html.twig #} {% extends 'partials/base.html.twig' %} {% block content %} &

  • Add assets on Twig include · 9 years ago

    Hello, I have a page using a Twig include to a partials/some-content.html.twig and in this file I want to load a specific js script. I tried this way: {# page.html.twig #} {% extends 'partials/base.h

  • Access parent page property recursively · 9 years ago

    After reading the API and dumping some vars I found a solution: public function onTwigInitialized() { $this->grav['twig']->twig()->addFunction( new \Twig_SimpleFun

  • Access parent page property recursively · 9 years ago

    Hi there! I am currently creating a custom theme and I add a color property on my pages. I want, in templates, get the color property for the page and if not defined the parent page color property and