Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
tacoen Member
@tacoen · Joined 6 years ago · 14 posts · 4 topics · 1 reputation
Badges
Recent posts
-
Adding 'user/templates' path from themes
· 6 years ago
@Jrbdog, I finally found it. onGetPageTemplates and onGetPageBlueprints must also be included in getSubscribedEvents() public function onGetPageTemplates(Event $event) { $types = $event->types;
-
Adding 'user/templates' path from themes
· 6 years ago
Yes, I always fork it for updating reason. But yet, they always add a templates path by using or merge $this->grav['twig']->twig_paths[] = $newpath; Still had no idea, why it doesn't show up.
-
Add CSS class to markdown table
· 6 years ago
True. Wrapping the element with class is the quickest, and sometimes render a markdown extra to be useless. Unless you want to write your own markdown
-
Adding 'user/templates' path from themes
· 6 years ago
I had a question. on my theme.php, i add this: public function onTwigTemplatePaths() { $locator = $this->grav['locator']; $tdir = $locator('user://').'/templates'; if (! fil