{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2020-05-30T05:47:52Z","object_id":{"id":1288,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_menu","title":"mod_menu","uri":"https:\/\/zotonic.com\/id\/1288"},"seq":1000000}],"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-09-09T13:48:07Z","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:07Z","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:07Z","object_id":{"id":2575,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_navigation","title":"Navigation","uri":"https:\/\/zotonic.com\/id\/2575"},"seq":3},{"created":"2026-09-09T13:48:07Z","object_id":{"id":2623,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_scomp","title":"Server component","uri":"https:\/\/zotonic.com\/id\/2623"},"seq":4},{"created":"2026-09-09T13:48:07Z","object_id":{"id":2641,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_render","title":"Render","uri":"https:\/\/zotonic.com\/id\/2641"},"seq":5}],"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":1291,"is_a":["text","documentation","reference","template_scomp"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1291"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_template_scomp_scomp_menu","page_url":{"en":"https:\/\/zotonic.com\/docs\/1291\/menu","x-default":"https:\/\/zotonic.com\/docs\/1291\/menu"},"preview_url":null,"resource":{"version":3323,"pivot_location_lat":null,"title":"menu","is_authoritative":true,"body":"<p>Show a page menu.<\/p>\n<p>This tag is part of the module mod_menu. The <code>{% menu %}<\/code> tag is used to generate the HTML for the menu defined in the admin.<\/p>\n<p>You can define multiple menus in your site. By default there is one menu, called “main_menu”. If you want another\none, create a page of type “page menu” (under “Categorization”) and start editing your menu. You can use the\n“menu_id” argument to select which menu you want to display.<\/p>\n<p>Example:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-erlang\">{% menu id=id %}\n<\/code><\/pre>\n<p>Generates something like:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-erlang\">&lt;ul id=&quot;navigation&quot; class=&quot;nav&quot;&gt;\n  &lt;li&gt;\n    &lt;a href=&quot;\/&quot; class=&quot;welcome&quot;&gt;Home&lt;\/a&gt;\n  &lt;\/li&gt;\n  &lt;li&gt;\n    &lt;a href=&quot;\/features&quot; class=&quot;page_features&quot;&gt;Features&lt;\/a&gt;\n  &lt;\/li&gt;\n  &lt;li&gt;\n    &lt;a href=&quot;\/documentation&quot; class=&quot;documentation active&quot;&gt;Documentation&lt;\/a&gt;\n  &lt;\/li&gt;\n  &lt;li&gt;\n    &lt;a href=&quot;\/documentation\/628\/installation&quot; class=&quot;page_install&quot;&gt;Install&lt;\/a&gt;\n  &lt;\/li&gt;\n&lt;\/ul&gt;\n<\/code><\/pre>\n<p>The menu has the following features:<\/p>\n<ul><li>The menu is a unordered list.<\/li><li>The id of the menu is <code>navigation<\/code> and can be prepended with param <code>id_prefix<\/code>.<\/li><li>The class of the menu is set with param <code>class<\/code> (default <code>nav<\/code>).<\/li><li>Menu items are a &lt;li&gt; with a single &lt;a&gt;<\/li><li>The link of the menu item referring to the current page has the class <code>active<\/code>.<\/li><li>Every link also gets the unique name of the target as a class.<\/li><li>Every menu item can have single level submenus. A submenu has the same properties as the menu.<\/li><\/ul>\n<table class=\"table\"><thead><tr><th>Argument<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>id<\/code><\/td><td>Set this to the id of the current shown page and it wil highlight its page path.<\/td><td><\/td><\/tr><tr><td><code>menu_id<\/code><\/td><td>The id of the menu that you want to display. If left empty, the main menu is shown.<\/td><td><\/td><\/tr><tr><td><code>id_prefix<\/code><\/td><td>String prepended to menu id.<\/td><td><\/td><\/tr><tr><td><code>class<\/code><\/td><td>HTML class for the list; default “nav”.<\/td><td><\/td><\/tr><tr><td><code>maxdepth<\/code><\/td><td>Maximum depth of the menu; default 999.<\/td><td><\/td><\/tr><tr><td><code>template<\/code><\/td><td>Template to render the menu; default <code>&quot;_menu.tpl&quot;<\/code><\/td><td><\/td><\/tr><\/tbody><\/table>","slug":"menu","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"b5d2d63e1c8ceabd7a5a979fba7bde97418836b92704f6ae4008ef627914a968","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":327,"is_a":["meta","category"],"name":"template_scomp","title":"Scomp","uri":"https:\/\/zotonic.com\/id\/template_scomp"},"doc_source_path":"apps\/zotonic_mod_menu\/src\/scomps\/scomp_menu_menu.erl","publication_start":"2023-01-30T19:23:58Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_menu\/src\/scomps\/scomp_menu_menu.erl","pivot_location_lng":null,"doc_source_kind":"scomp","name":"doc_template_scomp_scomp_menu","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:16Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_menu","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":"b8c4b2ccdc223257f311968fbd17b2d66f0c4156\n","erlang_module":"scomp_menu_menu","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-09-30T09:39:51Z","title_slug":"menu"},"uri":"https:\/\/zotonic.com\/id\/1291","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1291"}},"status":"ok"}