Browse by topic

Discover Documentation

Explore related documentation through its most useful keyword groups.

1435 items

Grouped by Architecture

All Documentation

Developer guide

Configure persistent file storage

Identify where the site's archive files, generated previews, backups, and security files are stored. These have different retention and recovery needs.

Actions

confirm

Show a JavaScript confirm message and on confirmation triggers one or more actions and/or sends a postback to the server.

User guide

Connecting pages

Link an article to an author, subject, or another page.

Developer guide

Connect resources and preserve order

An edge connects a subject resource to an object resource through a predicate. Use model#edge to inspect and manage these connections.

Models

content_group

Model for content-group checks, currently exposing whether a content group is in use.

User guide

Content ownership

Know who created content and who is responsible for it.

Filters

content_type_label

Return a translated, human-readable label for a MIME content type.

Filters

content_type_urls

Return the available content representations and URLs for a resource.

Controllers

controller_admin

The admin controller is the main controller behind which admin pages are served. Its main purpose is that it does an authentication check (Is current user…

Controllers

controller_admin_analytics

Serve the Site Analytics dashboard and its separate recording configuration page. Responses disable caching and search-engine indexing.

Controllers

controller_admin_backup

Shows the admin backup screen where you can download nightly backups that were made by module#mod_backup.

Controllers

controller_admin_category_sorter

Shows the admin category screen where you can edit the category tree, rearranging the categories, adding new categories, or removing existing ones.

Controllers

controller_admin_comments

Shows an admin screen with an overview of most recently created comments. The screen offers the option to moderate the comments or delete them entirely.

Controllers

controller_admin_config

Shows the admin config editor. Here you can edit the key/value pairs of model#config.

Controllers

controller_admin_edit

The main admin edit controller. This controller serves the edit page where resources can be edited.

Controllers

controller_admin_mailinglist_recipients

Shows the recipients of the current mailing list. The recipients are listed in three columns, and have a checkbox next to them to deactivate them.

Controllers

controller_admin_mailing_status

This controller shows the mailing status of a resource. It lists each mailing list available in the system, and shows whether or not the current resource has…

Controllers

controller_admin_media_preview

A controller for rendering preview thumbnails of any media embedded in a richtext-editor component of a resource on the controller#controller_admin_edit page.

Controllers

controller_admin_seo

Shows a form with settings related to Search Engine Optimization.

Controllers

controller_admin_traffic_guard

Administrator-only IP allow and block list editor. Responses are not cached or indexed. Save events call the model, which separately enforces administrator and…

Controllers

controller_agent_content

Anonymous GET/HEAD projections. Recompute authorization and content before conditional requests; caches must revalidate every use. Errors are never cached.

Controllers

controller_agent_discovery

Serve public agent discovery documents with GET and HEAD. The dispatch option document selects llms , catalog , openapi or help . Discovery metadata uses…

Controllers

controller_api

controller_api exposes MQTT topics over HTTP at /api/:topic , including model calls. Requests use the normal MQTT and model access checks for the current user.

Controllers

controller_authentication

This controller manages all authentication cookies. It is called by the auth model in the browser.

Controllers

controller_feed

Serve /feed , /feed/:type and /feed/:type/:id with optional search arguments. Types are atom, rss, jsonfeed, json (an alias for JSON Feed), and ics/ical.

Controllers

controller_file

Serve an uploaded-, resized- or library file.

Controllers

controller_id

Handle different content representations of a page.

Controllers

controller_language_set

Controller which sets the language as given in the code argument, and redirects the user back to the page given in the p argument.

Controllers

controller_logoff

Controller that logs off a user, destroying the session. It also removes any “remember me” cookies the user has, so that auto-logon is disabled.

Controllers

controller_logon_done

This controller is used as a jumping stone after a log on from the /logon page. The p argument is passed from the /logon page.

Controllers

controller_mailgun_webhook

Receive Mailgun event callbacks at /mailgun-webhook (dispatch name mailgun_webhook ). Accepts POST with content type application/json . Generate the site's…

Controllers

controller_media_runner_callback

Client-side receiver for results produced by the external media runner site. This controller belongs to mod_base , so each client site has a callback endpoint…

Controllers

controller_paysub_stripe_webhook

Receive Stripe payment and subscription events with POST at /paysub/stripe/webhook (dispatch paysub_stripe_webhook ). Generate the absolute endpoint URL in a…

Controllers

controller_ping

Simple controller for connection tests, used on the /test/connection page.

Controllers

controller_signup

Controller which displays a form to sign up (rendered from signup.tpl ).

Controllers

controller_signup_confirm

Controller which displays the confirmation page where the user can confirm his signup.

Controllers

controller_websub

HTTP hub and subscriber callback controller for mod_websub .

Controllers

controller_websub_topic

Serve the complete JSON representation advertised as a resource's WebSub topic.

Models

copyright

Model for copyright and rights metadata helpers, including Creative Commons lists, rights statement lookup, and attribution/year values.

Cotonic

Cotonic Cotonic

Cotonic is a Javascript library which makes it possible to split the javascript code of your page into truly isolated components. By…

Cotonic

cotonic.broker Cotonic

The broker module handles all local publish subscribe connections. The subscriptions are stored in a trie datastructure allowing quick action. They…

Cotonic

cotonic.mqtt Cotonic

The mqtt module provides functions to work with mqtt topics. The broker uses this module as the basis to provide its functionality. This module…

Cotonic

cotonic.mqtt_bridge Cotonic

This module makes it possible to bridge the broker on the local page to an external MQTT broker.

Cotonic

cotonic.tokenizer Cotonic

The tokenizer transforms text to html tokens. The tokenizer is used by the user interface composer in order to call the incremental-dom api.

Cotonic

cotonic.ui Cotonic

The user interface composer manages html snippets which can be placed in the DOM tree. When an updated html snippet is delivered to the composer it…

Developer guide

Create a page layout

Use an existing site base template as your starting point. Put shared document structure in the base and page-specific markup in blocks.

Developer guide

Create a page layout

Use an existing site base template as your starting point. Put shared document structure in the base and page-specific markup in blocks.