{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2026-10-15T11:02:02Z","object_id":{"id":1457,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_development","title":"mod_development","uri":"https:\/\/zotonic.com\/id\/1457"},"seq":1}],"predicate":{"id":333,"is_a":["meta","predicate"],"name":"in_module","title":{"_type":"trans","tr":{"en":"In module"}},"uri":"https:\/\/zotonic.com\/id\/in_module"}},"subject":{"objects":[{"created":"2026-10-18T14:50:00Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-10-18T14:50:00Z","object_id":{"id":2563,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_frontend_developer","title":"Frontend developer","uri":"https:\/\/zotonic.com\/id\/2563"},"seq":2},{"created":"2026-10-18T14:50:00Z","object_id":{"id":2621,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_template_filter","title":"Template filter","uri":"https:\/\/zotonic.com\/id\/2621"},"seq":3}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":3089,"is_a":["text","documentation","reference","template_filter"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/3089"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_template_filter_filter_development_filename","page_url":{"en":"https:\/\/zotonic.com\/docs\/3089\/development_filename","x-default":"https:\/\/zotonic.com\/docs\/3089\/development_filename"},"preview_url":null,"resource":{"version":44,"pivot_location_lat":null,"title":"development_filename","is_authoritative":true,"body":"<p>Format a source filename for display in development tools. Resolves symbolic links\nin both files and parent directories, then removes the Zotonic root directory from\npaths inside that root. This makes template viewer, cross-reference and language\nserver paths easier to read.<\/p>\n<p>For example:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">{{ template_file|development_filename|escape }}\n<\/code><\/pre>\n<p>With Zotonic installed in <code>\/home\/developer\/zotonic<\/code>, the filename\n<code>\/home\/developer\/zotonic\/apps\/mysite\/priv\/templates\/page.tpl<\/code> is displayed as\n<code>apps\/mysite\/priv\/templates\/page.tpl<\/code>. A development build path whose <code>priv<\/code>\ndirectory links to the source directory is first resolved to that source path.\nThe root itself is displayed as <code>.<\/code>.<\/p>\n<p>Absolute paths outside the Zotonic root retain their full resolved path. Relative\npaths are left unchanged. An undefined input returns <code>undefined<\/code>; other supported\nfilename inputs return a binary. If symlink resolution fails, the original path\nis used for root-relative formatting. Link traversal is limited to prevent cycles.<\/p>\n<p>The root is obtained from <code>z_path:get_path()<\/code> and is resolved through symlinks too.\nIt refers to the Zotonic installation, not the current site&#39;s directory.<\/p>\n<p>This filter formats labels only: retain the original filename for opening files\nor generating editor links. It does not check access permissions or HTML-escape\nthe result; use <code>escape<\/code> when displaying it in HTML, as in the example above.<\/p>","slug":"development_filename","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"b00ff9673092d873c8b6f5f4181a0cdb8bf1db76ab59a5bc0256e72f08e84fad","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":325,"is_a":["meta","category"],"name":"template_filter","title":"Filters","uri":"https:\/\/test.zotonic.com\/id\/325"},"doc_source_path":"apps\/zotonic_mod_development\/src\/filters\/filter_development_filename.erl","publication_start":"2026-10-15T11:02:02Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_development\/src\/filters\/filter_development_filename.erl","pivot_location_lng":null,"doc_source_kind":"filter","name":"doc_template_filter_filter_development_filename","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2026-10-15T11:02:02Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_development","publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"7df977519c8cf191b758d30a0ddca1826a013903\n","erlang_module":"filter_development_filename","creator_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"modified":"2026-10-22T13:33:24Z","title_slug":"development_filename"},"uri":"https:\/\/zotonic.com\/id\/3089","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/3089"}},"status":"ok"}