I had a question.
on my theme.php, i add this:
public function onTwigTemplatePaths()
{
$locator = $this->grav['locator'];
$tdir = $locator('user://').'/templates';
if (! file_exists($tdir) ) { mkdir($tdir); }
$this->grav['twig']->twig_paths[] = $locator('user://templates');
}
to make a new 'templates' path in 'user', and move some of template files (.html.twig) into that new path.
But then in 'admin', I don't see those files.
Questions:
- Are adding new templates path doesn't work in theme like in plugins? But, 'print_r( $this->grav['twig'])' sure show the additions.
- Are 'templates' in 'user' path is not correct/welcomed in grav twig path?
Thanks in advance.
