Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[6.x]: Element editor sidebar Nodes can't include links, buttons or inline SVG

Chiusa
#19,909 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

Start from the metaFieldsNodes() method on element types and follow how its returned nodes reach the element editor sidebar, including the TemplateContent node that the issue says is sanitized and rendered inert. The open question is whether sidebar nodes should allow links, buttons and inline SVG, which is a sanitization and security decision the maintainers need to make before any code changes. Done would mean an agreed rule for what sidebar content is allowed, plus a test showing a permitted element survives rendering.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug repo:cms
What happened?

Element types add sidebar content via metaFieldsNodes(). For read-only rich content the only option is TemplateContent, which is sanitized (inline SVG, buttons and inputs are dropped) and rendered inert, so even links can't be clicked.

My case: a custom Element sidebar would like to show a supporting URL, inline SVG, and a "Download SVG" button. Today, as a workaround, I render the URL as plain text, the inline SVG as an , and moved the download to the action menu.

Previously, I believe we used to be able to render any HTML as additional content in the sidebar. It would be nice to have more flexibility in the sidebar nodes again.

Craft CMS version

6.0.0-alpha.20

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions
Lingua principale
PHP
Stelle
3.6k
Fork
706
Merge medio
12h 54m
PR unite (30g)
274

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di craftcms/cms

Tutte le issue di craftcms/cms

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.