{"result":{"depiction_url":null,"edges":{"references":{"objects":[{"created":"2020-05-30T05:47:38Z","object_id":{"id":1353,"is_a":["text","documentation","developerguide"],"name":"doc_developerguide_modules","title":{"_type":"trans","tr":{"en":"Create a reusable module"}},"uri":"https:\/\/zotonic.com\/id\/1353"},"seq":1000000},{"created":"2020-05-30T05:47:38Z","object_id":{"id":1326,"is_a":["text","documentation","reference","template_tag"],"name":"doc_template_tag_tag_include","title":"include","uri":"https:\/\/zotonic.com\/id\/1326"},"seq":1000000},{"created":"2020-05-30T05:47:38Z","object_id":{"id":1331,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_admin","title":"mod_admin","uri":"https:\/\/zotonic.com\/id\/1331"},"seq":1000000}],"predicate":{"id":332,"is_a":["meta","predicate"],"name":"references","title":{"_type":"trans","tr":{"en":"References"}},"uri":"https:\/\/zotonic.com\/id\/references"}},"refers":{"objects":[{"created":"2026-09-09T13:48:30Z","object_id":{"id":1326,"is_a":["text","documentation","reference","template_tag"],"name":"doc_template_tag_tag_include","title":"include","uri":"https:\/\/zotonic.com\/id\/1326"},"seq":1000000},{"created":"2026-09-09T13:48:30Z","object_id":{"id":1331,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_admin","title":"mod_admin","uri":"https:\/\/zotonic.com\/id\/1331"},"seq":1000000},{"created":"2026-09-09T13:48:30Z","object_id":{"id":1353,"is_a":["text","documentation","developerguide"],"name":"doc_developerguide_modules","title":{"_type":"trans","tr":{"en":"Create a reusable module"}},"uri":"https:\/\/zotonic.com\/id\/1353"},"seq":1000000}],"predicate":{"id":2409,"is_a":["meta","predicate"],"name":"refers","title":{"_type":"trans","tr":{"en":"Refers"}},"uri":"https:\/\/zotonic.com\/id\/refers"}},"relation":{"objects":[{"created":"2020-05-30T05:47:38Z","object_id":{"id":1326,"is_a":["text","documentation","reference","template_tag"],"name":"doc_template_tag_tag_include","title":"include","uri":"https:\/\/zotonic.com\/id\/1326"},"seq":1000000}],"predicate":{"id":303,"is_a":["meta","predicate"],"name":"relation","title":{"_type":"trans","tr":{"nl":"Relatie","en":"Relation"}},"uri":"http:\/\/purl.org\/dc\/terms\/relation"}},"subject":{"objects":[{"created":"2026-09-09T13:48:30Z","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-09-09T13:48:30Z","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-09-09T13:48:30Z","object_id":{"id":2620,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_template","title":"Template","uri":"https:\/\/zotonic.com\/id\/2620"},"seq":3},{"created":"2026-09-09T13:48:30Z","object_id":{"id":2635,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_module","title":"Module","uri":"https:\/\/zotonic.com\/id\/2635"},"seq":4},{"created":"2026-09-09T13:48:30Z","object_id":{"id":2641,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_render","title":"Render","uri":"https:\/\/zotonic.com\/id\/2641"},"seq":5},{"created":"2026-09-09T13:48:30Z","object_id":{"id":2691,"is_a":["categorization","keyword","keyword_quality"],"name":"zotonic_topic_maintainability","title":"Maintainability","uri":"https:\/\/zotonic.com\/id\/2691"},"seq":6}],"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":1355,"is_a":["text","documentation","reference","template_tag"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1355"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_template_tag_tag_all_include","page_url":{"en":"https:\/\/zotonic.com\/docs\/1355\/all_include","x-default":"https:\/\/zotonic.com\/docs\/1355\/all_include"},"preview_url":null,"resource":{"version":4040,"pivot_location_lat":null,"title":"all_include","is_authoritative":true,"body":"<aside><p>See also<\/p><p>tag <a href=\"\/id\/doc_template_tag_tag_include\" class=\"doc-reference doc-reference-tag\"><code>tag#include<\/code><\/a>.<\/p><\/aside>\n<p>Call all modules to include a certain template.<\/p>\n<ul><li><code>{% all include &quot;foobar.tpl&quot; %}<\/code> will include all templates named <code>foobar.tpl<\/code>.<\/li><li><code>{% include &quot;foobar.tpl&quot; %}<\/code> only includes the highest priority <code>foobar.tpl<\/code>.<\/li><\/ul>\n<p>Exactly the same <a href=\"\/id\/doc_developerguide_modules\">module priority<\/a> is also valid for all files in the <code>lib\/<\/code> directory of modules.<\/p>\n<p>This allows any module to change the static css, javascript, images, favicon.ico, robots.txt and other static files with its own version.<\/p>\n<p>This is an extension on the <a href=\"\/id\/doc_template_tag_tag_include\" class=\"doc-reference doc-reference-tag\"><code>tag#include<\/code><\/a> tag. It will include all templates with the given name, instead of the first one found. Templates are defined in modules, because of that multiple modules can define a template with the same name.<\/p>\n<p>For example when you have two modules (mod_a and mod_b), both with the template _name.tpl. When the template in mod_a is defined as:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">this is mod_a&#39;s {{ hello }}\n<\/code><\/pre>\n<p>and in mod_b as:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">this is mod_b&#39;s {{ hello }}\n<\/code><\/pre>\n<p>then the tag:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">{% all include &quot;_name.tpl&quot; hello=&quot;world&quot; %}\n<\/code><\/pre>\n<p>Will output:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">this is mod_a&#39;s world\nthis is mod_b&#39;s world\n<\/code><\/pre>\n<p>The modules will be called in the order of their defined priority. This is the order in which they are listed in the module admin page.<\/p>\n<p>Examples of this mechanism can be found in <a href=\"\/id\/doc_module_mod_admin\" class=\"doc-reference doc-reference-module\"><code>module#mod_admin<\/code><\/a>, for example the main menu and the category specific editing fields on the edit page.<\/p>\n<p>Another example is the _html_head.tpl template which is included from the <a href=\"..\/templates\/template_base.html#template-base\">base.tpl<\/a> template and allows all modules to add HTML to the head of a generated HTML page.<\/p>","slug":"all_include","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"37c5451bb9580f24348d8ca110c3abba3ac82dc3525b9603ec336e5443c8aacc","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":324,"is_a":["meta","category"],"name":"template_tag","title":"Tags","uri":"https:\/\/test.zotonic.com\/id\/324"},"doc_source_path":"doc\/template-tags\/all_include.md","publication_start":"2023-06-24T08:17:47Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/doc\/template-tags\/all_include.md","pivot_location_lng":null,"doc_source_kind":"template_tag","name":"doc_template_tag_tag_all_include","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:19Z","uri":null,"doc_status":"current","is_dependent":false,"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":"a9af6256d16f0717b59ea8dcf2a2e0565573bdd4\n","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-14T14:01:22Z","title_slug":"all_include"},"uri":"https:\/\/zotonic.com\/id\/1355","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1355"}},"status":"ok"}