{"result":{"depiction_url":null,"edges":{"observes":{"objects":[{"created":"2026-09-09T13:47:41Z","object_id":{"id":1314,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_menu_save","title":"observe_menu_save\/2","uri":"https:\/\/zotonic.com\/id\/1314"},"seq":1},{"created":"2026-09-09T13:47:41Z","object_id":{"id":1466,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_admin_menu","title":"observe_admin_menu\/3","uri":"https:\/\/zotonic.com\/id\/1466"},"seq":2},{"created":"2026-09-09T13:47:41Z","object_id":{"id":1981,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_rsc_update_done","title":"observe_rsc_update_done\/2","uri":"https:\/\/zotonic.com\/id\/1981"},"seq":3},{"created":"2026-09-09T13:47:41Z","object_id":{"id":2052,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_rsc_update","title":"observe_rsc_update\/3","uri":"https:\/\/zotonic.com\/id\/2052"},"seq":4},{"created":"2026-10-06T07:40:12Z","object_id":{"id":2758,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_rsc_get_raw","title":"observe_rsc_get_raw\/3","uri":"https:\/\/zotonic.com\/id\/2758"},"seq":5}],"predicate":{"id":2550,"is_a":["meta","predicate"],"name":"observes","title":{"_type":"trans","tr":{"en":"Observes"}},"uri":"https:\/\/zotonic.com\/id\/observes"}},"references":{"objects":[{"created":"2020-05-30T05:48:15Z","object_id":{"id":1291,"is_a":["text","documentation","reference","template_scomp"],"name":"doc_template_scomp_scomp_menu","title":"menu","uri":"https:\/\/zotonic.com\/id\/1291"},"seq":1000000},{"created":"2020-05-30T05:48:15Z","object_id":{"id":1279,"is_a":["text","documentation"],"name":"doc_glossary","title":"Glossary","uri":"https:\/\/zotonic.com\/id\/1279"},"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:47:41Z","object_id":{"id":1291,"is_a":["text","documentation","reference","template_scomp"],"name":"doc_template_scomp_scomp_menu","title":"menu","uri":"https:\/\/zotonic.com\/id\/1291"},"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:48:15Z","object_id":{"id":1625,"is_a":["text","documentation","reference","template_filter"],"name":"doc_template_filter_filter_menu_flat","title":"menu_flat","uri":"https:\/\/zotonic.com\/id\/1625"},"seq":1000000},{"created":"2020-05-30T05:48:15Z","object_id":{"id":1626,"is_a":["text","documentation","reference","template_filter"],"name":"doc_template_filter_filter_menu_subtree","title":"menu_subtree","uri":"https:\/\/zotonic.com\/id\/1626"},"seq":1000000},{"created":"2020-05-30T05:48:15Z","object_id":{"id":1627,"is_a":["text","documentation","reference","template_filter"],"name":"doc_template_filter_filter_menu_trail","title":"menu_trail","uri":"https:\/\/zotonic.com\/id\/1627"},"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:47:41Z","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:47:41Z","object_id":{"id":2561,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_content_editor","title":"Content editor","uri":"https:\/\/zotonic.com\/id\/2561"},"seq":2},{"created":"2026-09-09T13:47:41Z","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:47:41Z","object_id":{"id":2614,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_resource","title":"Resource","uri":"https:\/\/zotonic.com\/id\/2614"},"seq":4},{"created":"2026-09-09T13:47:41Z","object_id":{"id":2635,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_module","title":"Module","uri":"https:\/\/zotonic.com\/id\/2635"},"seq":5},{"created":"2026-09-09T13:47:41Z","object_id":{"id":2638,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_edit","title":"Edit","uri":"https:\/\/zotonic.com\/id\/2638"},"seq":6},{"created":"2026-09-09T13:47:41Z","object_id":{"id":2664,"is_a":["categorization","keyword","keyword_data_type"],"name":"zotonic_topic_collection","title":"Collection","uri":"https:\/\/zotonic.com\/id\/2664"},"seq":7}],"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":1288,"is_a":["text","documentation","reference","module"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1288"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_module_mod_menu","page_url":{"en":"https:\/\/zotonic.com\/docs\/1288\/mod_menu","x-default":"https:\/\/zotonic.com\/docs\/1288\/mod_menu"},"preview_url":null,"resource":{"version":3391,"pivot_location_lat":null,"title":"mod_menu","is_authoritative":true,"body":"<p>Create nested navigation menus for your site.<\/p>\n<p>Activating the module in the admin enables a “menu” item in the admin navigation under “content”, which lets you\ndefine a simple menu. Every item in the menu references a Zotonic page and can be looked up using the autocompletion widget.<\/p>\n<p>This menu can be rendered in the frontend with the <a href=\"\/id\/doc_template_scomp_scomp_menu\" class=\"doc-reference doc-reference-scomp\"><code>scomp#menu<\/code><\/a> custom tag.<\/p>\n<p>It will use the _menu.tpl template which is by default able to render a Twitter Bootstrap compatible menu structure\nusing nested <code>&lt;ul&gt;<\/code> elements.<\/p>\n<p>To implement a different navigation menu, override the <code>_menu.tpl<\/code> in your project and create new markup.<\/p>\n<h2>Domain model<\/h2>\n<p>The <a href=\"\/id\/doc_glossary#term-domain-model\">domain model<\/a> for this module is the following:<\/p>\n<p>The module creates a new category named menu. This allows one to create multiple menus in a single site. Its edit page\nin the admin contains the hierarchical menu editor.<\/p>\n<p>The menu resource that is accessible from the admin page (Content &gt; Menu) is the resource with the unique name <code>main_menu<\/code>.<\/p>\n<h2>Accepted Events<\/h2>\n<p>This module handles the following notifier callbacks:<\/p>\n<ul><li><code>observe_admin_menu<\/code>: Add menu management entries to the admin menu.<\/li><li><code>observe_menu_get_rsc_ids<\/code>: Notifier handler to get all menu ids for the default menu using <code>m_rsc:name_to_id<\/code>.<\/li><li><code>observe_menu_save<\/code>: Validate and persist edited menu trees after converting names to resource ids.<\/li><li><code>observe_rsc_get_raw<\/code>: Normalize stored menu values by converting old tuple formats to <code>#rsc_tree<\/code> structures.<\/li><li><code>observe_rsc_update<\/code>: Validate and normalize submitted menu structures during resource updates.<\/li><li><code>observe_rsc_update_done<\/code>: Rebuild <code>hasmenupart<\/code> edges after menu changes so referenced resources are tracked correctly.<\/li><\/ul>\n<p>Delegate callbacks:<\/p>\n<ul><li><code>event\/2<\/code> with <code>postback<\/code> messages: <code>ensure_hasmenupart<\/code>.<\/li><li><code>event\/2<\/code> with <code>postback_notify<\/code> messages: <code>&lt;&lt;&quot;menuedit&quot;&gt;&gt;<\/code>.<\/li><\/ul>","slug":"mod_menu","doc_module_config":[],"is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"7bafcc6d225243d35621fd3d17f8e414d9b53c04b9c16185d61bd602c3496957","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":320,"is_a":["meta","category"],"name":"module","title":"Modules","uri":"https:\/\/test.zotonic.com\/id\/320"},"doc_source_path":"apps\/zotonic_mod_menu\/src\/mod_menu.erl","publication_start":"2023-01-30T19:23:59Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_menu\/src\/mod_menu.erl","pivot_location_lng":null,"doc_source_kind":"module","name":"doc_module_mod_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":"28493fb676b2d92727e68d4fba20d89c56cf8ead\n","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-15T20:07:18Z","title_slug":"mod_menu"},"uri":"https:\/\/zotonic.com\/id\/1288","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1288"}},"status":"ok"}