Adding content pages to CKAN with ckanext-pages: when a portal needs its own pages
A CKAN portal can hold thousands of datasets and still leave visitors unsure what the portal is, who runs it, or how to publish to it. ckanext-pages is the extension that fills that gap by adding editable content pages to a CKAN site, so the portal team can write an about page, guidance for publishers and news posts inside the same application that serves the datasets. The extension is aimed at narrative content that sits alongside catalog data, not at replacing the catalog itself.
The page types teams usually build fall into three groups. An about page explains the portal's purpose, governing body and data policies. A guidance page walks publishers through how to prepare and submit datasets, which metadata is required and who to contact. News or update pages announce new releases, training and changes to the catalog. Before building any of these, list the pages the portal needs, who will write and approve them, and how often they will change. Pages that change weekly and need reviewer sign-off suit an in-application editor. Pages that rarely change may be better kept in a static site, linked from the portal menu, so the content team does not depend on a CKAN release cycle.
Before you plan the work, confirm which CKAN version your portal runs and which ckanext-pages release supports it, because compatibility is tied to the CKAN version rather than to the extension alone. Check the extension's repository and your CKAN release notes, then test the install on a staging copy of the portal. Also decide early whether editors will need a rich text editor, whether raw HTML will be allowed, and who can publish, since those choices shape the security review and the support effort after launch.
What ckanext-pages does inside a CKAN portal
ckanext-pages lets publishers add static content to a CKAN portal without touching templates. The cards below describe the capabilities a team plans around, from page creation to menus and editing options. Confirm each one against the extension repository for the CKAN release you run before you scope the work.
Creating pages from the interface
The extension lets administrators create and edit content pages from within CKAN rather than by editing theme files on the server. A page is saved as a record in the portal, so content changes do not require a code deployment. Confirm which user roles can create pages on your release, and whether a page can be drafted and reviewed before it is published. Check who holds the page-editing permission before you grant it to publishers.
Pages extension repositoryPage organization and URLs
Pages get a URL slug and can sit in a hierarchy under the portal's routes, which shapes how guidance and news are found. Plan the URL structure before publishing, because renaming a slug later can break links from other sites and from internal documents. Confirm how the extension handles nested pages and redirects for your release.
Menu entries
Pages can be linked from the portal's main navigation, which is how an About page or publisher guide becomes reachable. Confirm whether menu entries are managed in the extension's settings or in configuration files, and whether they can be ordered and nested. Test menu behavior on your theme, since menu markup depends on the template overrides your portal uses.
Editor types
The extension offers a choice of content editing modes, and the choice shapes both what publishers can do and what risks the portal accepts. Confirm exactly which editors ship for your release, including whether a Markdown editor, a WYSIWYG editor or a raw HTML option is available. Decide the editor policy before publishers start, because switching later can change how existing content renders.
Organization page support
Some teams want pages tied to a publishing organization, so that each publisher maintains its own guidance or updates. Confirm whether the extension supports organization-scoped pages on your release, or whether those pages must be handled through a separate extension or custom work. Ask how page permissions are checked for organization admins before you promise that model to publishers.
Editing controls and content risks
Editing options decide how much markup a publisher can enter, and that determines your exposure to unsafe content. Any option that accepts raw HTML needs a review of which users can use it and how the output is sanitized. Confirm the sanitization behavior and the permission model for your release with your security team before you enable the most permissive editor.
Choosing the editor, HTML option and menu structure
This table compares the four configuration decisions that shape a ckanext-pages site: the editor, whether raw HTML is allowed and who may use it, how pages reach the site menu, and whether organization pages are needed. Read each row as a decision with its editorial cost, its security cost and the points to verify in the version you deploy. The main takeaway is that the editor and HTML settings should be chosen together, because they decide who can publish what and how much review each page needs.
| Decision | Option | Trade-off | Verify before choosing |
|---|---|---|---|
| Editor | Markdown | Plain, predictable output that suits technical publishers, but layout and formatting need more know-how from editors. | Confirm which Markdown flavor the chosen ckanext-pages version renders and how it handles tables and images. |
| Editor | WYSIWYG | Lets communications staff format pages without markup knowledge, at the cost of editor-generated HTML that reviewers must read. | Check which editor library ships with the version and whether pasted content from word processors is cleaned. |
| Raw HTML | Disabled | Lowest risk of script or markup injection, and pages stay consistent with the portal theme, but some embeds and custom layouts are not possible. | Confirm the default setting in your version and whether any template change is needed to hide the HTML option. |
| Raw HTML | Enabled for sysadmins only | Allows embeds and custom layouts for a small trusted group, with a smaller set of accounts able to introduce risky markup. | Confirm how page editing permissions map to sysadmin accounts and test that other roles cannot submit HTML. |
| Site menu | Manual menu entries | Gives administrators direct control over navigation order and labels, but menu changes must be kept in step with page changes. | Confirm where menu settings are stored and whether they survive upgrades and configuration changes. |
| Organization pages | Pages attached to organizations | Lets each publishing organization maintain its own guidance, which increases the number of pages to review and keep current. | Confirm whether the version supports organization-scoped pages and which roles can edit them. |
| Review workflow | Publisher-authored pages with sysadmin approval | Adds an editorial checkpoint before publication, with the cost of slower updates and a clear owner for each page. | Confirm that the portal's process, not the software, enforces approval, and document who signs off. |
Why allowing raw HTML on portal pages needs a review
A small team usually has a few people who write every page and can see each other's work. In this setting, raw HTML is mostly a convenience for layout tweaks, embedded charts or a funding logo. The main risk is not a malicious author but an honest one who pastes a script from a third-party site, or an embed that loads content you never reviewed. Before you enable the HTML option, confirm with your implementation team whether the version of ckanext-pages you install filters script tags and event handler attributes, and whether that filtering is applied on save, on render, or both. Keep the number of people who can use HTML small and document who they are.
- Know who can paste HTML: list the accounts that can edit pages with the HTML option, and keep that list short.
- Confirm the filtering behavior: test a page containing a script tag and an inline event handler to see what is stored and what is displayed.
- Limit embeds: agree which third-party domains are acceptable for iframes and widgets before anyone adds one.
- Prefer Markdown for routine pages: reserve raw HTML for the few pages that truly need it.
- Keep a change record: a simple log of who changed each page and when is often enough at this scale.
Before going live, check that a non-administrator cannot slip an unreviewed script into a public page and that your review habit is written down, not just assumed.
A large portal often has many organizations, each with its own publishers, writing guidance, news and about pages. Here the question is less about one trusted editor and more about separation of duties. A publisher for one organization should not be able to change pages that appear on the front of the whole portal, and no single publisher should be able to publish HTML that affects every visitor. A review workflow fits this situation well: publishers draft, a central editor or sysadmin checks the page, and only then does it go live. Confirm with your team how page permissions are actually enforced in your ckanext-pages version, since the menu and organization pages can have different ownership rules.
- Separate drafting from publishing: make review a required step for any page with HTML, not an optional courtesy.
- Restrict HTML to sysadmins: keep the HTML option off for organization publishers and let them use Markdown or the WYSIWYG editor.
- Control the menu: only central administrators should be able to change site-wide navigation that links to pages.
- Check organization boundaries: test that a publisher cannot edit another organization's pages by changing a URL or an ID.
- Plan for volume: a queue with named reviewers keeps reviews from stalling as the number of pages grows.
Before rollout, ask your implementation partner to show the review queue, the role matrix and a test account for each role, so the separation is demonstrated rather than described.
When a portal is under security review, whether for an internal assessment, a customer questionnaire or an independent audit, reviewers will ask how user-supplied HTML is kept from running in visitors' browsers. Raw HTML lets page authors inject scripts, iframes and embeds that run with the portal's origin, which can expose session data, redirect users or load code you do not control. DeployOpen prepares the systems and evidence for these reviews but does not issue audit reports or certifications, so the goal is to give reviewers clear, testable answers. Treat the HTML option as a privileged capability, and make the case for it in writing before it is enabled.
- Document the threat: describe how a stored script or embed could reach visitors, and which controls reduce that risk.
- Confirm sanitization: ask whether HTML is sanitized, which tags and attributes are removed, and whether the rules are tested in your release.
- Restrict the role: allow only named sysadmins to write raw HTML, and log their changes.
- Review embeds and content security policy: list the external hosts allowed in pages and check the portal's headers against that list.
- Test with security tooling: include stored cross-site scripting cases in application security testing of the portal.
Before the review starts, confirm that the sanitization claim, the sysadmin-only rule and the audit log can each be demonstrated with a live test, not only with a configuration screenshot.
How a content pages build moves from plan to live
The sequence moves a ckanext-pages build from a tested staging copy to a live portal with a clear editor policy, a known page inventory and a signed-off test log. Each step produces a record that the next step depends on, so changes stay traceable after launch.
Confirm CKAN version and extension compatibility
The platform lead clones the production configuration into a staging copy running the same CKAN release. Confirm that the CKAN minor version is one the project still supports, since only the latest patch of the current minor and the previous minor receive fixes. Then confirm with the extension's documentation that the planned ckanext-pages version supports that release and your other extensions. Output: a compatibility record listing the CKAN version, extension versions, Python version and database versions.
Decide the editor and HTML policy
The content owner and security lead decide which editor the portal will offer, based on the options your installed version provides. Decide whether raw HTML may be entered at all. Raw HTML is rendered into public pages, so anyone who can write it can place unsafe script on the site. If HTML is allowed, restrict it to a small trusted group. Output: a written policy naming the editor, the HTML rule and who may use each option.
Install and enable the extension
The platform lead installs the extension into the CKAN virtual environment, adds the plugin to the
ckan.pluginssetting in the CKAN configuration file, and runs the setup steps documented by the extension. Restart the web processes and confirm the plugin loads without errors in the logs. Output: a staging instance that starts with the plugin enabled, recorded in the configuration record with the exact file and setting changed.Define menu and page structure
The content owner and a designer map every page the portal needs, including about pages, publisher guidance and news, and decide which sit in the main menu, which sit under a parent section and which appear on organization pages. Assign each page a URL slug and an owner. Output: a page inventory listing titles, slugs, parent sections, menu placement and owners, which becomes the reference for migration and testing.
Migrate existing static content
The content team copies existing static pages into the chosen editor format and checks each one against the inventory. Remove embedded scripts, outdated embeds and unreviewed third-party code during the move. Record the old URL, new slug and owner for every page so that links from other sites and internal documents can be redirected. Output: a migration log mapping every old address to its new page, with a list of pages that were retired or merged.
Set roles and review workflow
The content owner assigns who drafts, who reviews and who publishes pages, and confirms that only trusted sysadmins can use any HTML option. Document the approval steps for news and guidance, including who signs off on changes to menus. Test each role with a real non-administrator account on staging to confirm the permissions behave as written. Output: a role matrix and review workflow document, with the test accounts and results recorded.
Test pages on staging
The QA lead works through the page inventory on staging. Check rendering in the portal theme, menu links, redirects from old addresses, behavior for anonymous and editor accounts, and whether the HTML policy holds. Look for broken links and missing images, and repeat the checks after any theme or extension update. Output: a test log showing each page, the result of each check and the sign-off from the content owner.
Go live and keep the configuration record
The platform lead applies the same configuration, menu settings and page content to production through the portal's normal change process. Verify the live pages, menus and redirects against the test log, and keep a documented rollback path in case a page or setting must be reverted. Store the configuration record, page inventory, migration log and test log together so later upgrades can be checked against them. Output: a live portal and a change record that matches staging.
How a content page moves from editor to visitor
The path starts with a publisher writing a page in the CKAN web application, which stores it through the portal's database layer. A sysadmin review step and the HTML or sanitization policy checkpoint sit on the way out, and both are trust boundaries where unsafe markup must be stopped. The page then appears in the site menu and reaches the visitor's browser. Check each hand-off: who can publish, what the policy allows, and whether the menu entry is what visitors actually see.
Content moves from publisher to visitor through review and markup checkpoints.
What drives content pages effort and how to keep it down
This table lists the main drivers of effort for a ckanext-pages build, what each one changes, and the lever that keeps it under control. Read it before you scope the work so you can ask a partner to price the drivers you actually have. The main takeaway is that a small page model, reused core templates and a fixed editor role set cost far less to build and upgrade than per-page customization.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| Number of page types | Each distinct page model needs its own template, validation and tests, and multiplies upgrade checks. | Start with one generic page model and add types only for proven needs such as news or guidance. |
| Migrating existing static content | Old sites bring inconsistent HTML, broken links, images and redirects that must be cleaned by hand. | Inventory pages first, retire stale ones, and migrate in batches with a link checker after each batch. |
| Custom templates for organization pages | Organization-specific layouts override core templates and must be re-tested after every CKAN minor release. | Reuse core organization templates and limit overrides to blocks or snippets that carry the branding. |
| Translation of pages | Each language needs its own page copy, review and menu labels, and translated pages can drift from the source. | Decide early which languages are published, and use translation fields or a single language until the need is confirmed. |
| Number of editors and roles | More editors mean more training, more review queues and more permission rules to configure and test. | Map editors to a small set of roles and confirm in your own instance which roles can edit or publish pages. |
| Choice of editor (Markdown, WYSIWYG or HTML) | HTML pages need security review and content checks, while WYSIWYG editors need configuration and testing of allowed markup. | Default to the most restricted editor that meets publisher needs and restrict HTML use to trusted administrators. |
| Menus and navigation changes | Menu structure touches the theme and every published page, so reorganizing it late causes rework. | Agree the menu tree and page slugs before content migration begins. |
| Upgrade testing across CKAN minor releases | Minor releases may include backwards-incompatible changes, so page templates and the extension need retesting each time. | Keep the extension small, pin its version to the CKAN release you run, and schedule a test pass for each release you adopt. |
How content pages connect to the rest of the portal
A content page is never isolated. It inherits the portal's templates, permissions, translations, asset pipeline and search and analytics setup, so each of these should be settled before the first page is published. The cards below cover what changes in each area and what your team should confirm with its theme and extensions.
Theme and template overrides
Page output is rendered through the templates your theme provides, so the layout, navigation and page header a visitor sees depend on your theme's overrides. Confirm which template the pages extension uses in your version and whether your theme overrides it. A theme change can alter every content page at once, so test a sample of pages after each theme release.
Organization and sysadmin permissions
Who can create, edit or delete a page depends on the roles configured in CKAN and on the extension's own access checks. Confirm whether publishers should be sysadmins, organization editors or a separate group, and test that a user without rights cannot reach the edit form by URL. Document the decision so it survives staff changes.
Translated interface and page text
Interface strings from the portal are translated through CKAN's own localization files, but the text you type into a page is not translated automatically. Decide early whether each language gets its own page or whether a single page carries multilingual content, and confirm how the menu labels for each language are stored. This choice affects how often editors must update pages.
Webassets for page scripts
Any script or stylesheet a page needs should be registered through the Webassets bundles your theme or extension defines, not added as inline tags in page content. Inline scripts in editable content are hard to review and can conflict with other assets. Confirm the bundle names, load order and whether the debug option is needed during development.
Search and analytics indexing
Decide whether published pages should appear in portal search results, and confirm how your search index treats them. Pages that are not indexed will not be found through the search box, so guidance pages may need a menu link or a link from the home page instead. Check also how your analytics tool records page views, since default tracking may not cover custom page routes.
Upgrade and extension compatibility
Content pages depend on the pages extension version matching your CKAN release, and a CKAN upgrade may change template blocks or route handling. Record which extension version is in use, re-test menus and page rendering after each upgrade, and confirm the extension's support status for your target release before scheduling the move.
Questions teams ask before building content pages
Can our own team add content pages to CKAN without a partner?
Yes, many teams that already run CKAN can do this in-house, because the core work is enabling an extension, configuring its options and adjusting theme templates for navigation and layout. You need a developer who is comfortable with CKAN configuration files and template overrides, and an editorial owner who decides what goes on the pages and who approves changes. A partner is more useful when no one on the team has extended CKAN before, when editor permissions need a formal security review, or when the work must be finished alongside other portal changes. Before you start, confirm that the extension version you plan to use supports your CKAN release, since extension compatibility follows CKAN's minor versions.
What drives the cost of adding content pages to CKAN?
The main cost is the people doing the work, and the size of the scope determines how much of their time is needed. The biggest drivers are the number of page types, the editing experience you choose, how much the menus and organization pages must match your branding, whether pages need translation, and how much review the HTML option requires. Testing in a staging environment that mirrors production also adds effort. Some costs are one-time, such as configuration, theme work and training. Others recur, such as editorial time, content review and applying updates after each CKAN release. When you request a quote, ask for each item to be listed separately, with the work included, the acceptance tests and the handover documentation.
How long does a content pages project usually take?
The duration depends on scope more than on the extension itself. A small set of about pages with one editor group and a standard menu takes far less time than a project that adds custom templates for organization pages, multiple languages, a documented publishing workflow and a review of who can edit what. No standard duration applies to every portal, so ask for a schedule with milestones for configuration, theme changes, content migration, testing and handover. Also check what depends on other work, such as a theme change already in progress or a CKAN upgrade planned for the same period. Fixed-scope work is agreed in writing before it starts, which gives you a baseline to compare against.
What must our team provide before content pages work begins?
Your team needs to supply decisions, access and content before the build can finish. The list usually includes:
- A named business owner who approves the page structure, menu items and publishing rules.
- A list of editors, their roles and the organizations they can publish for.
- Brand assets, existing style guidance and any current theme code.
- Access to a staging CKAN instance on the same version as production, with a copy of the current site configuration.
- The source text or existing pages to migrate, and a decision on which content retires.
- Time from testers who can check pages in each supported browser and language.
Missing any of these usually shows up later as rework, so ask the provider to confirm each dependency in the written scope.
Should CKAN content pages allow raw HTML from editors?
Generally, raw HTML should be limited to a small group of trusted administrators, and most editors should work in Markdown or a WYSIWYG editor. Raw HTML can carry scripts or markup that run in visitors' browsers, so an editor account that is compromised or misused can affect every visitor to the portal. Before you enable the option, confirm how the extension stores and renders HTML, whether it sanitizes input, which roles can use it and whether the setting can be turned off per organization. Record the decision and the reason in your security documentation, because reviewers often ask about it. If you keep the option, add a review step before publication and log who changed each page.
How do CKAN upgrades affect our custom content pages?
Page content usually survives an upgrade, but the extension, the templates that display pages and the menu configuration must be checked each time. CKAN patch releases are designed not to break backwards compatibility, while minor releases may include incompatible changes, so a minor upgrade needs a full test. CKAN supports the latest patch of the current minor version and the previous minor version, and an older patch loses support once a newer one is released. Plan for a staging rehearsal of every upgrade, a check that the extension version matches the new CKAN release and a list of templates you have overridden. The CKAN release policy explains the support rules in more detail.
Can CKAN content pages be translated into several languages?
Yes, but interface translation and page content translation are separate tasks, and each needs its own plan. CKAN's interface strings are translated through the platform's translation support, while the body of each page is stored as content that the extension may or may not handle per language. Common approaches include one page per language, linked by a shared identifier, or a multilingual field for each text entry, such as the one provided by ckanext-fluent. Confirm with the extension documentation how it stores languages, how menus are translated and how a missing translation is displayed. Then ask the provider to estimate translation effort separately, since it depends on the number of pages and languages.
What the portal team should receive at handover
The handover package for a ckanext-pages deployment should let the portal team run content pages without the implementation partner in the room. The first item is a configuration record that states which editor the portal uses (Markdown or WYSIWYG), whether the HTML option is enabled, who may use it, and why. Ask for the exact settings in the deployed configuration file, the list of enabled plugins, and the sanitization or review rules applied to any raw HTML. Confirm the record against the running staging site, not only against the design document.
The second item is a page inventory listing every about, guidance and news page, its URL, its owning team, its editors, and its next review date. The menu map should show where each page appears in the site navigation and which organization pages link to it. Add the role assignments that control who can create, edit and publish pages, and confirm that those roles match the sysadmin and organization permissions the portal already uses. Ask the partner to walk through the map with you and mark any page that lacks an owner.
The third item is the staging test record and an upgrade checklist for the pages. The test record should show which page types were tried, how the editor rendered them, how menus and organization pages behaved, and which role accounts were checked for permitted and denied actions. The upgrade checklist should name the pages, settings and custom templates that must be re-tested after each CKAN patch or minor release, and state who runs those tests. Confirm each item with the implementation partner before you sign off the handover.
How DeployOpen scopes and delivers ckanext-pages work
DeployOpen plans, implements, customizes, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure. For a CKAN content pages engagement, we start from the pages your publishers need, the editor and HTML policy your governance allows, and the CKAN release your portal runs, then agree the work in writing before any build starts.
How we scope
- We confirm which CKAN release and ckanext-pages version the portal runs and which editor modes are allowed.
- The written scope lists page types, menu structure, organization page rules and who may publish each page type.
- We record whether raw HTML is permitted, and if so, which roles may use it and how it is reviewed.
How we build
- We install and configure ckanext-pages in your environment, with the Markdown or WYSIWYG editor set as agreed.
- We build menu entries and organization pages, keeping template changes small so later CKAN upgrades stay manageable.
- We test publishing permissions, draft and public visibility, and how each page renders across your supported browsers.
How we hand over
- You receive the documented configuration, the list of pages and menus, and the publisher permission matrix.
- We deliver a short guide for editors covering page creation, Markdown syntax, image handling and review steps.
- We record any HTML exceptions with their owner and the reason they were approved, so auditors can review them.
How we support
- Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as a retainer.
- Retainers can cover retesting the page editor and HTML settings after each CKAN patch or minor release.
- Confirm with your team which extension versions are supported on your CKAN release before planning any upgrade.

