Fehler: Icon in der Überschrift eines (neuen) Akkordeon-Elements

Steinbam's Avatar

Steinbam

04 Jan, 2025 02:36 PM

Produkt: Oneo Contao
Contao-Version: 5.3.21

Hallo!

In Contao 4.13 konnte man in einem Akkordeon-Einzelelement (jetzt ein "Legacy Element" in Contao 5.3) eine icon-css-Klasse in den Experteneinstellungen angeben, wodurch das entsprechende Icon am Anfang der Überschrift bzw. des Headers des Akkordeon-Elements eingefügt wurde. Mit dem neuen Akkordeon in Contao 5.3 funktioniert das nicht mehr, das Icon wird hier im Inhaltsbereich des Elements eingefügt.

Gibt es weiterhin die Möglichkeit, die Icons in die Überschrift zu bekommen?
Danke schon vorab!

  1. Support Staff 1 Posted by RockSolid Theme... on 09 Jan, 2025 02:28 PM

    RockSolid Themes's Avatar

    Vielen Dank für Ihre Frage.

    Das ist mit dem neuen Akkordeon-Element von Contao nicht mehr direkt möglich. Dafür müssten Sie das Template accordion.html.twig anpassen und die CSS-Klasse zu accordion_header_button_attributes hinzufügen.

    Alternativ können Sie das alte Akkordeon-Element („Legacy elements › Einzelelement“) verwenden.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • alt.png 4.68 KB
  • neu.png 4.65 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac