{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2020-05-30T05:47:18Z","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":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:47:51Z","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:51Z","object_id":{"id":2564,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_backend_developer","title":"Backend developer","uri":"https:\/\/zotonic.com\/id\/2564"},"seq":2},{"created":"2026-09-09T13:47:51Z","object_id":{"id":2570,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_content_authoring","title":"Content authoring","uri":"https:\/\/zotonic.com\/id\/2570"},"seq":3},{"created":"2026-09-09T13:47:51Z","object_id":{"id":2583,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_user_interface_and_interaction","title":"User interface and interaction","uri":"https:\/\/zotonic.com\/id\/2583"},"seq":4},{"created":"2026-09-09T13:47:51Z","object_id":{"id":2592,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_authorization_and_access_control","title":"Authorization and access control","uri":"https:\/\/zotonic.com\/id\/2592"},"seq":5},{"created":"2026-09-09T13:47:51Z","object_id":{"id":2626,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_controller","title":"Controller","uri":"https:\/\/zotonic.com\/id\/2626"},"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":1330,"is_a":["text","documentation","reference","controller"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1330"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_controller_controller_admin","page_url":{"en":"https:\/\/zotonic.com\/docs\/1330\/controller_admin","x-default":"https:\/\/zotonic.com\/docs\/1330\/controller_admin"},"preview_url":null,"resource":{"version":4020,"pivot_location_lat":null,"title":"controller_admin","is_authoritative":true,"body":"<p>The admin controller is the main controller behind which admin pages are served. Its main purpose is that it does an\nauthentication check (Is current user allowed to <code>use<\/code> the module <code>mod_admin<\/code>).<\/p>\n<p>The template parameter decides which admin template gets served, and defaults to admin.tpl.<\/p>\n<h2>Dispatch options<\/h2>\n<table class=\"table\"><thead><tr><th>Option<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>template<\/code><\/td><td>Template rendered for the request. Defaults to <code>admin.tpl<\/code>.<\/td><\/tr><tr><td><code>selected<\/code><\/td><td>Name of the active admin navigation item. Defaults to <code>dashboard<\/code>.<\/td><\/tr><tr><td><code>acl_module<\/code><\/td><td>Module checked for the <code>{use, Module}<\/code> permission. Defaults to <code>mod_admin<\/code>.<\/td><\/tr><\/tbody><\/table>\n<p>All dispatch and request arguments are passed to the template. A typical dispatch rule is:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-erlang\">{admin_overview_rsc, [&quot;admin&quot;, &quot;overview&quot;], controller_admin, [\n    {template, &lt;&lt;&quot;admin_overview.tpl&quot;&gt;&gt;},\n    {selected, &lt;&lt;&quot;overview&quot;&gt;&gt;},\n    seo_noindex\n]}\n<\/code><\/pre>\n<h2>Request handling<\/h2>\n<p>The controller disables caching and indexing, checks the configured module permission, renders the selected template,\nand returns the generated HTML. Use a more specific controller when a page needs resource lookup, form processing, or a\nresponse format other than the standard admin HTML page.<\/p>","slug":"controller_admin","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"cc7c82ad827e76f813cc2c4bc8aa71f4f37cb8396e89ac9d96e95e26015d2179","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":321,"is_a":["meta","category"],"name":"controller","title":"Controllers","uri":"https:\/\/test.zotonic.com\/id\/321"},"doc_source_path":"apps\/zotonic_mod_admin\/src\/controllers\/controller_admin.erl","publication_start":"2023-06-24T08:17:45Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_admin\/src\/controllers\/controller_admin.erl","pivot_location_lng":null,"doc_source_kind":"controller","name":"doc_controller_controller_admin","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:18Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_admin","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":"c19e5c894d3bd01b57581e2af43e176d42c6877a\n","erlang_module":"controller_admin","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-08T10:40:52Z","title_slug":"controller_admin"},"uri":"https:\/\/zotonic.com\/id\/1330","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1330"}},"status":"ok"}