{"action":"created","issue":{"url":"https://api.github.com/repos/bolt/bolt/issues/2631","labels_url":"https://api.github.com/repos/bolt/bolt/issues/2631/labels{/name}","comments_url":"https://api.github.com/repos/bolt/bolt/issues/2631/comments","events_url":"https://api.github.com/repos/bolt/bolt/issues/2631/events","html_url":"https://github.com/bolt/bolt/issues/2631","id":56032294,"number":2631,"title":"Custom listing templates don't include app path","user":{"login":"RuudBurger","id":38136,"avatar_url":"https://avatars.githubusercontent.com/u/38136?v=3","gravatar_id":"","url":"https://api.github.com/users/RuudBurger","html_url":"https://github.com/RuudBurger","followers_url":"https://api.github.com/users/RuudBurger/followers","following_url":"https://api.github.com/users/RuudBurger/following{/other_user}","gists_url":"https://api.github.com/users/RuudBurger/gists{/gist_id}","starred_url":"https://api.github.com/users/RuudBurger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RuudBurger/subscriptions","organizations_url":"https://api.github.com/users/RuudBurger/orgs","repos_url":"https://api.github.com/users/RuudBurger/repos","events_url":"https://api.github.com/users/RuudBurger/events{/privacy}","received_events_url":"https://api.github.com/users/RuudBurger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-30T13:19:37Z","updated_at":"2015-01-30T17:58:21Z","closed_at":null,"body":"Looking at the example at https://github.com/bolt/bolt/blob/master/app/view/twig/custom/listing/pages.twig.dist#L3 I tried adding my own template for listing of backend content types in `/app/view/custom/listing/{contenttype}.twig`\r\n\r\nThis however doesn't work as the path `/app/` isn't included in the twig include path.\r\nThe only `addPath` that is called for twig I can find here: https://github.com/bolt/bolt/blob/master/src/Application.php#L408 which on a composer-install is the path to `/vendor/bolt/bolt/app/view`.\r\n\r\nIf I do the following after `$app->initialize()`, everything works like expected (and like https://github.com/bolt/bolt/blob/master/app/view/twig/custom/listing/pages.twig.dist#L3 says):\r\n\r\n```php\r\n$configuration->setPath(\"my_app_path\", \"app\");\r\n$app->extend(\r\n\t'twig.loader.filesystem',\r\n\tfunction(\\Twig_Loader_Filesystem $filesystem, $app) {\r\n\t\t$filesystem->addPath($app['resources']->getPath('my_app_path') . '/view');\r\n\t\treturn $filesystem;\r\n\t}\r\n);\r\n```"},"comment":{"url":"https://api.github.com/repos/bolt/bolt/issues/comments/72242252","html_url":"https://github.com/bolt/bolt/issues/2631#issuecomment-72242252","issue_url":"https://api.github.com/repos/bolt/bolt/issues/2631","id":72242252,"user":{"login":"rarila","id":5936174,"avatar_url":"https://avatars.githubusercontent.com/u/5936174?v=3","gravatar_id":"","url":"https://api.github.com/users/rarila","html_url":"https://github.com/rarila","followers_url":"https://api.github.com/users/rarila/followers","following_url":"https://api.github.com/users/rarila/following{/other_user}","gists_url":"https://api.github.com/users/rarila/gists{/gist_id}","starred_url":"https://api.github.com/users/rarila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rarila/subscriptions","organizations_url":"https://api.github.com/users/rarila/orgs","repos_url":"https://api.github.com/users/rarila/repos","events_url":"https://api.github.com/users/rarila/events{/privacy}","received_events_url":"https://api.github.com/users/rarila/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T17:58:21Z","updated_at":"2015-01-30T17:58:21Z","body":"Ok, I never wanted it this way (#1769), but at that time I well behaved and did what Bob wants ;-)"}}