Aller au contenu principal
Jahia Store
FR

AddStuff

community
Télécharger 3.0.4

Informations

Identifiant du module
addstuff
Identifiant de groupe
org.jahia.modules
Statut
community
Catégorie
Developer tools
Auteur
pvollenweider@jahia.com
Site web du développeur
http://www.jahia.com
Nécessite Jahia
8.2.0.0
Mis à jour
2026-07-09
Source
scm:git:git@github.com:jahia/addStuff.git
Étiquettes
  • javascript
  • styles
  • html
  • template

AddStuff lets you insert arbitrary HTML (scripts, stylesheets, etc.) at four precise locations in every rendered page. It works as a render filter: no template change, no redeployment, no developer required.

Captures d'écran

Versions

What's new

Accessibility — WCAG 2.1 AA (admin settings panel)

  • CodeMirror 6 migration — replaced CM5 with CM6 across the site settings panel
  • ARIA labels wired correctly — aria-labelledby and aria-describedby now target view.contentDOM (the actual contenteditable), not the outer scroll wrapper; labels were previously invisible to screen readers
  • Label click-to-focus — clicking a field label now moves keyboard focus into the corresponding code editor
  • Split live regions — save errors use role="alert" aria-live="assertive" for immediate announcement; success messages remain role="status" polite
  • Named action bar — the Save/Cancel toolbar gets role="group" with an accessible label so programmatic focus after save is announced meaningfully
  • i18n — saveError and actionBar keys added to all 6 locales (EN, FR, DE, IT, ES, PT)
Nécessite Jahia 8.2.0.0Mis à jour 2026-05-20

Bug fixes

  • Fix CodeMirror blank display in Content Editor — when `jmix:addStuff` is applied to a page and the "Options" tab is opened in the Content Editor, the CodeMirror fields now render immediately without requiring a click. The editor was measuring 0px while the tab was hidden; a `ResizeObserver` now triggers `cm.refresh()` as soon as the tab becomes visible.

Improvements

  • Site settings panel fully migrated to React/Moonstone — removed Spring Webflow (`flow.xml`, `addStuffSettings.jsp`, `AddStuffSiteSettingsFlowHandler`). The settings panel now uses Moonstone `Button`, `Typography`, and `Loader` components, with inline save feedback replacing the custom toast. `mvn clean install` now compiles JavaScript automatically via the `frontend-maven-plugin`.

Tests

  • UI smoke tests for the settings panel — new Cypress spec verifying the React component mounts correctly (4 CodeMirror editors, Save/Cancel buttons), that values set via the CodeMirror API are saved and appear on the live page, and that Cancel reverts the editor to the last saved value.
  • Home page injection test — new spec verifying that `jmix:addStuff` works when applied directly to a `jnt:page` node (the home page), confirming the mixin is correctly scoped and does not bleed into sub-pages.

Full changelog: addstuff-3.0.2...addstuff-3.0.3

Nécessite Jahia 8.2.0.0Mis à jour 2026-05-13

Bug fixes

  • Fixed CodeMirror display issues in jContent content editor: line numbers overlapping code, missing height, missing fold gutter icons (#5)
  • Added explicit `type: STRING` to GraphQL save mutations

Refactoring

  • Removed dead server-side save path (Webflow); settings are saved via GraphQL
  • Minor code quality fixes

Full changelog: addstuff-3.0.1...addstuff-3.0.2

Nécessite Jahia 8.2.0.0Mis à jour 2026-04-15

Fix script tags stripped on save in site settings panel (#4)

The site settings panel now saves via a direct GraphQL call (Content-Type: application/json) instead of a WebFlow form POST, bypassing Jahia's XSS servlet filter that was silently stripping <script> tags from form parameters.

Nécessite Jahia 8.2.0.0Mis à jour 2026-04-15

Dedicated site administration panel

A new Add Stuff panel is available under Administration → Sites → [site] → Add Stuff. It provides four syntax-highlighted code editors (one per injection point) and saves without any publication workflow.

Access is controlled by the new siteAdminAddStuff permission, included in the built-in Site Administrator role. A custom site role can be created to grant access without full Site Administrator rights.

CodeMirror editor in Content Editor

When editing page properties, the four AddStuff fields now use a CodeMirror editor with HTML syntax highlighting, line numbers, bracket matching and code folding.

Translations

UI labels are now available in English, French, German, Italian, Portuguese and Spanish.

Requires Jahia 8.2+

The minimum required Jahia version is raised from 8.0 to 8.2.

Internal improvements

  • Render filter migrated from Spring XML bean declaration to OSGi Declarative Services (@Component / @Activate)
  • siteSettings added as a module dependency
  • jmix:addStuff fieldset hidden when editing site node properties in Content Editor (use the dedicated panel instead)
Nécessite Jahia 8.2.0.0Mis à jour 2026-03-20

Remove unused dependency to templates-system

Nécessite Jahia 8.0.0.0Mis à jour 2021-11-16

Allow adding stuff also on page level

Nécessite Jahia 8.0.0.0Mis à jour 2021-10-13

Fix if only addStuffHeadTop has been set

Update for Jahia 8

Nécessite Jahia 8.0.0.0Mis à jour 2020-05-18
2.0brouillonTélécharger

Fix if only addStuffHeadTop has been set

Update for Jahia 8

Nécessite Jahia 8.0.0.0Mis à jour 2020-05-18

Remove unused dependency to templates-system

Nécessite Jahia 7.1.2.0Mis à jour 2021-11-16

Allow adding stuff also on page level

Nécessite Jahia 7.1.2.0Mis à jour 2021-10-13

Fix if only addStuffHeadTop has been set

Nécessite Jahia 7.1.2.0Mis à jour 2020-05-18

Improvements: 
Add new properties to be able to add stuff on the beginning of the head and the body element.
Change the filter priority so we ensure that the end of the head tag is at the end of the head (and not before the static assets) 

 

 

 
 
Nécessite Jahia 7.1.2.0Mis à jour 2018-01-24
Change default filter priority to 20
Nécessite Jahia 7.0.0.0Mis à jour 2017-05-30
This version is 7.0.0.0 compliant.
Nécessite Jahia 7.0.0.0Mis à jour 2017-05-30
1.0brouillonTélécharger
Nécessite Jahia 7.0.0.1Mis à jour 2017-05-30