Embedding Decidim processes and meetings in your website

Decidim's embed code puts a process, assembly, conference, initiative or meeting card on your main website. This page covers what to embed, how to set it up safely, and what to confirm for your Decidim version.

On this page

How to embed Decidim processes and meetings in your main website

If your city, government body or organization runs participation on Decidim but publishes news and services on a separate main website, visitors need a clear path from one to the other. Decidim's embed code answers that need: it lets you place a card for a live process, assembly, conference, initiative or meeting on the main site, so the card links back into the participatory space. A card shows the space's title and a short summary, and it sends visitors to the Decidim page where they can read, comment or take part. The embed code is a Decidim admin feature, so the exact fields, card contents and styling depend on the version you run. Confirm the behavior for your installed version in the Decidim documentation before you plan the web team's work.

Embedding makes sense when the main website is the front door for residents or members, and the participatory space is the place where action happens. A plain link works for a single announcement, but a card stays current as the space changes, which helps when a process moves through phases or a conference program is updated. Teams should decide which spaces appear, who approves them on the main site, and whether unpublished or private spaces are ever exposed. Spaces restricted to a closed group or still under review through a share token should not be embedded as public cards, because the card may reveal more than the restricted audience should see. Ask your Decidim administrators to test a card on a staging copy of the main site first.

How a visitor's browser loads an embedded Decidim card

The flow starts when a visitor opens a page on the main website that contains the embed snippet. The browser then requests the card from the Decidim host, which is infrastructure you control and sits across the trust boundary from your website domain. Decidim reads the public fields of the space and returns the card, so the card can only show what the space already exposes publicly. Before launch, check that the space's visibility matches your intent and that the snippet points to the host your team operates.

The embed crosses a trust boundary, and the card shows only public space data.

Which spaces and meetings fit a website card

This table compares the five kinds of Decidim item that can be shown as a card on a main website, the question each one answers for a visitor, and whether it must be public first. Read it to decide which items are worth embedding and which should stay inside Decidim. Confirm with your Decidim version which types the embed code supports before you plan the page layout.

Item typeQuestion it answers for a visitorMust be published and public firstNotes for the website decision
ProcessCan I take part in this consultation or policy phase now?YesBest fit for a live consultation with a clear timeline. Phase changes in Decidim affect what the card should promise, so review the card when phases move.
AssemblyWho sits on this standing council or commission, and what does it decide?YesSuits an ongoing body. Check whether the card should show members or only the purpose, since member details may be visible to the public.
ConferenceWhat is the program, and how do I register or attend?YesSuits an event program with several sessions. Registration pages and the program are usually the visitor's next step, so confirm the link targets.
InitiativeHow can I support or follow this citizen initiative?YesConfirm with your version and configuration whether initiatives can be embedded and how signature status is shown on an external page.
Single public meetingWhen and where is this one session, and how do I join?Yes, the meeting and its parent spaceUseful for one event. A meeting card depends on its parent space being visible, so check the parent before embedding.
Private spaceShould a general audience see this at all?Not applicable for a public cardPrivate spaces need a separate decision about who may see names, dates and links. Do not embed them until the access rules are reviewed.
Unpublished or previewed spaceCan reviewers see this before launch?Not for a public cardShare links for reviewers are not a public publication. Keep unpublished spaces off the main website until they go live.

How to set up an embedded Decidim card, step by step

This sequence takes a Decidim process, assembly, conference, initiative or meeting from a published, correctly configured space to a verified card on your main website. Each step closes with a check you can repeat before the card reaches public visitors.

  1. Confirm the Decidim version and its documentation

    Identify the exact Decidim version your platform runs, then open the documentation for that version rather than the develop branch. Embed behavior and admin screens can differ between minor versions, so the team should read the notes for its own release. Check the version against the supported lines in the Decidim security policy, since unsupported versions will not receive security updates. You are done when the team can state the version in writing and has bookmarked the matching documentation.

  2. Publish and verify the target space

    Choose the process, assembly, conference, initiative or meeting to feature and make sure it is published in the organization's public area. Review its title, description, language versions and visibility settings, and confirm whether it is open to anonymous visitors or restricted to members. A private or unpublished space will not render a public card, so confirm this before copying any code. You are done when you can open the space in a private browser window and see it exactly as a visitor would.

  3. Copy the embed code from the admin area

    In the Decidim admin panel, locate the embed option for the chosen space and copy the generated snippet without editing it. Record which space the snippet belongs to, since a copied code for one process will display that process wherever it is pasted. Store the snippet in your change ticket so the reviewer can match it to the space later. You are done when the snippet is saved with the space name and date beside it.

  4. Place the snippet on a staging copy

    Paste the snippet into a staging copy of the main website, in the page or content block where the card should appear. Do not edit the markup on production first. Your web team should confirm that the website's content system or template allows this kind of embedded markup, and that its security policy permits content loaded from the Decidim domain. You are done when the staging page loads without console errors and the card appears in the expected location.

  5. Check title, language and link

    Compare the rendered card with the space as it appears on the Decidim platform. Confirm that the title, summary and language match, and that the link opens the correct space on the platform. Switch the website to each language it offers and check whether the card follows the locale. If the card shows the wrong language or a broken link, fix the space settings or the snippet, then repeat this check. You are done when every field matches the source space and every link resolves to the right page.

  6. Test in a second browser

    Open the staging page in a browser the team did not use for setup, ideally one with a clean cache and no logged-in Decidim session. Confirm that the card displays for a signed-out visitor and that the link leads to a page that visitor is allowed to see. Note any differences in layout, fonts or blocked content caused by browser privacy settings. You are done when the card renders and behaves the same way in both browsers, or the differences are documented with a decision on each.

  7. Test at mobile width and publish

    Resize the staging page to a mobile viewport, or use a device emulator, and check that the card wraps, stays readable and keeps its link tappable. Repeat the title, language and link check at this width. Once every check passes, have a second person approve the change and publish the snippet to the production page. You are done when the production card has been viewed at mobile width and matches the staging result.

What changes across Decidim versions and URL formats

Embedded cards depend on the URLs Decidim generates, and those URLs can change between versions. Decidim v0.32.0 was released on July 6, 2026 with Ruby on Rails 8.1 and locale-prefixed URLs, and v0.32.1 followed on July 30, 2026. The 0.31 branch received v0.31.7 on September 3, 2026. If your organization runs 0.31 and plans to move to 0.32, the path structure of the pages your cards link to may differ after the upgrade, even though the process, assembly or meeting itself has not changed. Treat the version you run as part of the embed's configuration, not a fixed fact.

Locale-prefixed URLs matter because a snippet pasted into your main website, or a link stored in a CMS block, may point to a path that includes or omits a language segment. A card that resolves on one branch can return a broken link or redirect on another, and visitors will see the error on your site, not on Decidim. Check the rendered card and its link on each version you run, in each language you publish, and again after every upgrade and before you change the Decidim domain or locale settings. Keep a short test list of one process, one assembly, one conference and one meeting so the checks are repeatable.

Before you upgrade, confirm in the release notes for your target version whether the embed snippet itself changed, not only the URLs it points to. Ask your Decidim implementation partner or internal platform owner to record the snippet version alongside the Decidim version in your change log. If the snippet changed, update your website template and test it in staging first. The Decidim releases page is the place to start, and the Updating Decidim guide sets out the one-minor-version-at-a-time path to follow.

What the embed exposes and how to keep it safe

The embed is a small public surface, but it still joins your main website to your Decidim host and depends on templates your team maintains. The cards below cover what data appears, what the browser loads, what must stay out of public pages, and how the host and its changes stay under review.

Confirm the fields on public cards

The card should show only data from spaces that are already public, such as a title, summary, dates and a link. Before you publish, open the card for a public process and for a private assembly, then compare what appears with what a non-member can see on the Decidim host. If a field shows something you did not expect, change the source space or your template before launch. Record the result so the check can be repeated after upgrades.

Review the cross-origin dependency

Each embedded card makes your visitors' browsers load content from the Decidim host, which is a new origin for your main site. Your content security policy may need to allow that origin for the images, scripts or frames the card uses, and it should allow no more than that. Ask the team that owns the website to review the policy changes and to confirm that the host name is the one you intend to trust.

Keep credentials and tokens out of pages

Never paste an admin login, API credential or preview share token into a public page, a template comment or a shared snippet. A share token that works for an unpublished process gives anyone with the link access to content meant for reviewers, and it stays valid until it expires or is revoked. Keep embed code limited to the public space reference, and store any secret your website needs in its own secret manager.

Stay within the support window

Decidim supports only its last two minor versions with security updates until version 1.0, which currently means 0.32.x and 0.31.x. A host on an older branch no longer receives security fixes, so an embed on that host inherits the exposure. Confirm which branch your host runs, plan upgrades one minor version at a time, and check the patch level after each update.

Report vulnerabilities through the right channel

If you find a flaw in Decidim, send it to security@decidim.org or use GitHub Security Advisories rather than a public issue or social post. Decidim's policy gives implementers a grace period to apply patches before details are disclosed, so early reporting protects your deployment and other organizations running the same code. Name a contact on your team who can receive the report and trigger an emergency patch.

Decidim security policy

Log and review template changes

The embed lives in a template or content block on your main website, and a later edit there can expose a different space, remove a card or add a credential by mistake. Keep the embed code under version control or change logging, require a second reviewer for changes, and record who changed which space reference and when. Review the list of embedded spaces each quarter and after any Decidim upgrade.

Questions buyers ask before embedding Decidim spaces

What does it cost to embed Decidim spaces on our main website?

Cost depends on how many spaces you show, which platform runs the main website, how much design work the cards need, and whether you want a staging copy to test on first. Your own team pays for internal time, while a partner is paid under a fixed-scope written plan that lists each card type, the template work and the testing. Ask for a quote that separates one-time setup from any recurring upkeep, and ask what happens if the number of spaces grows later. DeployOpen does not publish a price list, so the quote follows from the written scope.

Can our own team embed Decidim cards without outside help?

Yes, for simple cards, provided two conditions hold. Your website team must be able to edit the templates or content blocks where the embed code goes, and someone on the Decidim admin side must have access to copy the embed code for each space. Problems usually start with custom layouts, cross-domain styling, or content that must stay in sync across two systems. If any of those apply, scope them before you start so the work is not discovered halfway through.

How long does an embedding project take?

The timeline depends on the scope: the number of spaces and meetings, the card designs, the number of website platforms involved, and how many review rounds your communications team needs. There is no fixed duration that applies to every organization, so ask for a timeline in the written plan and check that it names the staging review and the go-live step. Treat any figure given before the scope is agreed as provisional.

What do we need to provide for the embedding work?

Plan to provide admin access to the Decidim platform with rights to copy embed codes, edit access to the main website templates or a developer who has it, and a staging site that mirrors the production website. You will also need brand assets such as logos, fonts, colors and approved card text, plus a named owner on the main website side who can approve changes. Confirm these items in the written scope so that access requests and approvals are not left to the end of the project.

Which Decidim settings affect whether an embedded space is visible?

A space appears on your website only if it is published and its visibility settings allow public display. Spaces that are private, unpublished or limited to a closed group should not be embedded on a public page, and share tokens for previews must not be pasted into public templates. Check the visibility of each space in the Decidim admin before generating an embed code, and retest after changes, because a card that worked yesterday may show different content once a space moves to another phase.

What should we recheck after a Decidim upgrade?

Upgrades can change how embedded content is generated, the URLs it links to, and the markup or styling it depends on. After each minor version upgrade, which Decidim requires you to perform one step at a time, reload every embedded card on staging, check links, images, language versions and phase labels, and confirm that the embed code still works. Also confirm that your main website's security settings still allow the embedded content. Keep a short checklist with each card type so the retest is repeatable.

Does embedding Decidim content create security or privacy risks?

The main risks are exposing unpublished or private spaces, leaking share tokens, and loading third-party scripts on public pages without a privacy review. Limit the embed to published public spaces, review what data each card displays, and check any cookie or script behavior with your privacy team before go-live. Keep Decidim itself patched, since only the two most recent minor versions receive security updates before version 1.0, and report any suspected vulnerability to the Decidim security contact.

Limits to confirm in your Decidim version and environment

The embed card depends on what your installed Decidim version supports, how it treats spaces that are not public, and how your website and hosting handle the markup. Confirm each limit below in the Decidim documentation for your exact version, then prove it in a staging test before the main website owner commits to a launch date.

Supported space and component types

Confirm which participatory spaces (processes, assemblies, conferences, initiatives) and which components (meetings in particular) the embed code supports in your installed version. Support can differ between minor releases, and a card that works for processes may not render for meetings or conferences. Build a short test list that names each space and component type your communications team plans to show, and check each one against the docs for your version.

Decidim installation docs

Unpublished and private space behavior

Confirm what the card shows for a space that is unpublished, previewed through a share token, or restricted to a private group. A card that exposes a title, description or date for a space meant to stay closed is a privacy issue, not a cosmetic one. Test with a logged-out visitor and with a non-member account, and record exactly which fields appear in each case.

Styling and translation of the card

Confirm whether the card can be restyled to match the main website's design system, and which text fields are translated into the locales your organization publishes. Ask whether labels such as dates, calls to action and status text follow the visitor's locale. Note any text that is fixed in the platform, because changing it later may require a template override and a repeated upgrade check.

Caching and CDN behavior

Confirm how Decidim's own page caching and your website's CDN treat the card. A cached card can keep showing a withdrawn space, an old date or a closed registration. Ask whether the card markup is cacheable, what time-to-live the CDN applies, and how a change in Decidim is purged from the CDN. Test an update to a space title in staging and time how long it takes to appear on the main website.

Manual Rails or Docker deployment model

Confirm that the embed works in the deployment model you chose. A manual Rails installation and a Docker setup differ in how assets, host names and cross-origin requests are served, and an embed that loads from one host may fail when the platform sits behind a different domain or proxy. Check the installation docs for your version and test the embed in the same topology as production.

Manual installation docs

Version support and upgrade impact

Confirm that the embed behavior is still supported on the version you plan to run next. Decidim supports only the last two minor versions with security updates until version 1.0, so an embed built on an older branch may need rework when the platform moves forward. Record the embed configuration as part of your upgrade checklist and retest it after each minor-version step.

Current supported branch
0.31.x
Updating Decidim docs

How DeployOpen scopes and delivers Decidim embedding

DeployOpen treats embedding Decidim processes and meetings in your website as a defined piece of work inside the platform you run. We agree which spaces and meetings appear, where the cards sit on your main site, and who maintains them after launch, then build and document that setup in your infrastructure.

How we scope

  • Inventory the processes, assemblies, conferences, initiatives and meetings you want shown on the main website.
  • Confirm which fields each card displays and which spaces stay private or unpublished before embedding.
  • Agree the written scope, deliverables and timeline before work starts, since most engagements are fixed-scope.

How we build

  • Configure the Decidim embed code for each chosen space and meeting in your own Decidim environment.
  • Check card rendering, links and language versions on your main website across the browsers you support.
  • Test that embedded cards show only the content and visibility rules you approved, and document any gaps found.

How we hand over

  • Deliver a written record of embedded items, source URLs, configuration and the steps to add or remove a card.
  • Walk your web and administration teams through the embed workflow and how to confirm a card after a change.
  • Record open questions, such as caching or hosting dependencies, so your team can confirm them with their own environment.

How we support

  • Offer ongoing support, upgrades and continuous testing for embedded cards as a retainer where your team needs it.
  • Review embedded cards again after Decidim upgrades, since template or URL changes can affect what visitors see.
  • Keep a change log of embed updates so each new process or meeting follows the same agreed steps.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.