{"result":{"depiction_url":null,"edges":{"observes":{"objects":[{"created":"2026-09-09T13:47:41Z","object_id":{"id":2017,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_content_types_dispatch","title":"observe_content_types_dispatch\/3","uri":"https:\/\/zotonic.com\/id\/2017"},"seq":1},{"created":"2026-09-09T13:47:41Z","object_id":{"id":2065,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_hierarchy_updated","title":"observe_hierarchy_updated\/2","uri":"https:\/\/zotonic.com\/id\/2065"},"seq":2},{"created":"2026-09-09T13:47:41Z","object_id":{"id":2126,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_edge_delete","title":"observe_edge_delete\/2","uri":"https:\/\/zotonic.com\/id\/2126"},"seq":3},{"created":"2026-09-09T13:47:41Z","object_id":{"id":2156,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_dispatch","title":"observe_dispatch\/2","uri":"https:\/\/zotonic.com\/id\/2156"},"seq":4},{"created":"2026-09-09T13:47:41Z","object_id":{"id":2164,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_media_stillimage","title":"observe_media_stillimage\/2","uri":"https:\/\/zotonic.com\/id\/2164"},"seq":5},{"created":"2026-09-09T13:47:41Z","object_id":{"id":2168,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_edge_insert","title":"observe_edge_insert\/2","uri":"https:\/\/zotonic.com\/id\/2168"},"seq":6}],"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:04Z","object_id":{"id":326,"is_a":["meta","category"],"name":"template_action","title":"Actions","uri":"https:\/\/test.zotonic.com\/id\/326"},"seq":1000000},{"created":"2020-05-30T05:48:04Z","object_id":{"id":324,"is_a":["meta","category"],"name":"template_tag","title":"Tags","uri":"https:\/\/test.zotonic.com\/id\/324"},"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-11T07:28:10Z","object_id":{"id":323,"is_a":["meta","category"],"name":"dispatch","title":"Dispatch rules","uri":"https:\/\/zotonic.com\/id\/dispatch"},"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":[],"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":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:47:41Z","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":3},{"created":"2026-09-09T13:47:41Z","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:47:41Z","object_id":{"id":2624,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_wire_action","title":"Wire action","uri":"https:\/\/zotonic.com\/id\/2624"},"seq":5},{"created":"2026-09-09T13:47:41Z","object_id":{"id":2628,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_dispatch_rule","title":"Dispatch rule","uri":"https:\/\/zotonic.com\/id\/2628"},"seq":6},{"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":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":1296,"is_a":["text","documentation","reference","module"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1296"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_module_mod_base","page_url":{"en":"https:\/\/zotonic.com\/docs\/1296\/mod_base","x-default":"https:\/\/zotonic.com\/docs\/1296\/mod_base"},"preview_url":null,"resource":{"version":3371,"pivot_location_lat":null,"title":"mod_base","is_authoritative":true,"body":"<p>mod_base is the base module, which acts as a container module holding most of Zotonic basic <a href=\"\/id\/dispatch\">dispatch\nrules<\/a>, <a href=\"\/id\/template_action#actions\">Actions<\/a> and <a href=\"\/id\/template_tag#scomps\">Module tags<\/a>.<\/p>\n<p>Note that the amount of templates has been kept to a minimum in this module, so that sites are free to implement\nwhatever templates they want.\nCore base module providing fundamental dispatch rules, actions, and template components used across sites.<\/p>\n<h2>Accepted Events<\/h2>\n<p>This module handles the following notifier callbacks:<\/p>\n<ul><li><code>observe_content_types_dispatch<\/code>: Add an extra content-type to the &#39;id&#39; controller using <code>controller_api:content_types_provided<\/code>.<\/li><li><code>observe_dispatch<\/code>: Check if there is a controller or template matching the path using <code>z_url:url_path_encode<\/code>.<\/li><li><code>observe_edge_delete<\/code>: If an edge is deleted, then force a repivot of the subject using <code>z_pivot_rsc:insert_queue<\/code>.<\/li><li><code>observe_edge_insert<\/code>: If an edge is inserted, then force a repivot of the subject using <code>z_pivot_rsc:insert_queue<\/code>.<\/li><li><code>observe_hierarchy_updated<\/code>: Renumber category ranges after hierarchy edits so tree lookups remain consistent.<\/li><li><code>observe_media_stillimage<\/code>: Return the filename of a still image to be used for image tags using <code>z_media_preview:can_generate_preview<\/code>.<\/li><\/ul>","slug":"mod_base","doc_module_config":[{"default":"[]","description":"The title of the site, used in the HTML &lt;title&gt; tag and in the header.","has_default":true,"key":"title","module":"site","type":"string"},{"default":"[]","description":"The sub-title of the site, can used in the HTML &lt;title&gt; tag and in the header.","has_default":true,"key":"subtitle","module":"site","type":"string"},{"default":"[]","description":"Optional comma or whitespace separated hexadecimal RGB colors used as the default chart palette.","has_default":true,"key":"chart_palette","module":"site","type":"string"},{"default":"20","description":"The default page length of paginated searches. Default is 20 items per page.","has_default":true,"key":"pagelen","module":"site","type":"integer"},{"default":"14400","description":"The time in seconds after which an inactive session expires. Default is 14400 seconds (4 hours).","has_default":true,"key":"session_expire_inactive","module":"site","type":"integer"},{"default":"15552000","description":"The time in seconds after which an autologon cookie expires. Default is 15552000 seconds (180 days).","has_default":true,"key":"autologon_expire","module":"site","type":"integer"},{"default":"false","description":"If true, a user must choose a different password when changing their password.","has_default":true,"key":"password_force_different","module":"site","type":"boolean"},{"default":"[]","description":"The secret used to encrypt the state cookie with application state data remembered between page reloads. It is automatically set, and must be a random string that is kept secret.","has_default":true,"key":"state_cookie_secret","module":"site","type":"string"},{"default":"&quot;+1 month&quot;","description":"The relative time after which the .well-known\/security.txt expires. Default is &#39;+1 month&#39;.","has_default":true,"key":"security_expires","module":"site","type":"string"},{"default":"[]","description":"The contact email address for security issues, used in the .well-known\/security.txt file. Defaults to the Zotonic config security_email, and if not set to the public mail_email address of the admin (id 1) user.","has_default":true,"key":"security_email","module":"site","type":"string"},{"default":"[]","description":"The URL to the security contact, used in the .well-known\/security.txt file. Defaults to the URL of the page_security_contact page, and if not set to the Zotonic config security_url.","has_default":true,"key":"security_url","module":"site","type":"string"},{"default":"[]","description":"The URL to the security policy, used in the .well-known\/security.txt file.Defaults to the URL of the page_security_policy page, and if not set to the Zotonic config security_policy_url.","has_default":true,"key":"security_policy_url","module":"site","type":"string"},{"default":"[]","description":"The URL to the security hiring, used in the .well-known\/security.txt file.Defaults to the URL of the page_security_hiring page, and if not set to the Zotonic config security_hiring_url.","has_default":true,"key":"security_hiring_url","module":"site","type":"string"},{"default":"[]","description":"The domain used for the &#39;from&#39; when sending email and the SMTP hostname used for receiving email. Defaults to the site&#39;s configured hostname.","has_default":true,"key":"smtphost","module":"site","type":"string"},{"default":"[]","description":"If set, this email address is used as the envelop address on emails and will receive bounced emails. Defaults to the Zotonic config smtp_bounce_email_override, and if not set to the noreply with the smtphost as the domain.","has_default":true,"key":"bounce_email_override","module":"site","type":"string"},{"default":"[]","description":"The email address used as the &#39;from&#39; address when sending emails. Defaults to noreply with the smtphost as the domain.","has_default":true,"key":"email_from","module":"site","type":"string"},{"default":"[]","description":"If set, all outgoing email will be sent to this address. Useful on development systems to catch all email. The Zotonic config email_override always takes precedence over this setting.","has_default":true,"key":"email_override","module":"site","type":"string"},{"default":"[]","description":"Comma or space separated list of email addresses and @domains that are not overridden by the email_override. Useful to allow some emails to be sent to their original destination, while others are caught by the email_override.","has_default":true,"key":"email_override_exceptions","module":"site","type":"string"},{"default":"[]","description":"The domain hostname as identification when sending email to other SMTP servers. Defaults to the site&#39;s configured hostname.","has_default":true,"key":"client_smtphost","module":"site","type":"string"},{"default":"false","description":"If true, the site will relay email through the SMTP server configured in smtp_relay_host. If false, the site will send email directly to the recipient&#39;s mail server.","has_default":true,"key":"smtp_relay","module":"site","type":"boolean"},{"default":"[]","description":"If smtp_relay is set, the hostname of the SMTP server to relay email through. Defaults to localhost.","has_default":true,"key":"smtp_relay_host","module":"site","type":"string"},{"default":"25","description":"If smtp_relay is set, the port of the SMTP server to relay email through. Defaults to 25 or 587, depending on smtp_relay_ssl.","has_default":true,"key":"smtp_relay_port","module":"site","type":"integer"},{"default":"false","description":"If smtp_relay is set, always use SSL\/TLS when connecting to the relaying SMTP server. Defaults to false, which means STARTTLS is only used if supported by the relaying server.","has_default":true,"key":"smtp_relay_ssl","module":"site","type":"boolean"},{"default":"[]","description":"If smtp_relay is set, the username to authenticate with the relaying SMTP server. Defaults to an empty string, which means no authentication is used.","has_default":true,"key":"smtp_relay_username","module":"site","type":"string"},{"default":"[]","description":"If smtp_relay is set, the password to authenticate with the relaying SMTP server. ","has_default":true,"key":"smtp_relay_password","module":"site","type":"string"},{"default":"false","description":"If true, the site will send the Strict-Transport-Security header to enforce HTTPS connections. Defaults to false.","has_default":true,"key":"hsts","module":"site","type":"boolean"},{"default":"17280000","description":"The maximum age in seconds for the Strict-Transport-Security header. This is only useful if hsts is also set to true. Defaults to 17280000 seconds (200 days).","has_default":true,"key":"hsts_maxage","module":"site","type":"integer"},{"default":"false","description":"If true, the Strict-Transport-Security header will include the &#39;includeSubDomains&#39; directive. This is only useful if hsts is also set to true. Defaults to false.","has_default":true,"key":"hsts_include_subdomains","module":"site","type":"boolean"},{"default":"false","description":"If true, the site will include the &#39;preload&#39; directive in the Strict-Transport-Security header. This is only useful if hsts is also set to true. Defaults to false.","has_default":true,"key":"hsts_preload","module":"site","type":"boolean"}],"is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"d2c7c060e0157f9a68bf5099b14460d59f6eb0a764658e04f19d0b3b55c2f246","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_base\/src\/mod_base.erl","publication_start":"2023-01-30T19:23:54Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_base\/src\/mod_base.erl","pivot_location_lng":null,"doc_source_kind":"module","name":"doc_module_mod_base","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:17Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_base","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":"e086089ffd6be52ec13711209aeeb493c60f710d\n","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-14T09:29:25Z","title_slug":"mod_base"},"uri":"https:\/\/zotonic.com\/id\/1296","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1296"}},"status":"ok"}