Skip to content

Einheitliche Bildtitel beim Mouseover

Die Informationen, die beim Bewegen des Mauszeigers über ein Bild erscheinen, wurden vereinheitlicht. Dabei sind weiterhin die Anforderungen an Barrierefreiheit und die notwendige Anzeige von Copyright-Angaben erfüllt.

Für ein Bild können in OpenCms ein Titel und eine Beschreibung hinterlegt werden. Beide Angaben erfüllen unterschiedliche Aufgaben. Die Beschreibung wird vorrangig als Alternativtext verwendet, damit beispielsweise Screenreader den Inhalt des Bildes vermitteln können. Ist keine Beschreibung vorhanden, wird stattdessen der Bildtitel verwendet.

Bei rein dekorativen Bildern bleibt der Alternativtext leer. Dadurch erkennen Screenreader, dass das Bild keine inhaltlich relevante Information enthält.

Neonlicht mit dem Schriftzug 'Pop' in Rot-Gelb auf einer bunten Glasscheibe. Neonlicht mit dem Schriftzug 'Pop' in Rot-Gelb auf einer bunten Glasscheibe.

An image can display text when the mouse pointer is moved over it. This so-called tooltip was previously not generated consistently across all content types. In some cases, the image title appeared, while in other elements the alternative image description was shown.

Mercury now prefers the image title stored in OpenCms for this tooltip. If no image title is available, the description continues to be used. This ensures that the expected title of the image is displayed uniformly during mouseover.

If a copyright is stored, it is displayed either directly on the image or in the tooltip. This is particularly relevant when the element setting "Show image copyright" suppresses the visible output on the page. In this case, the copyright notice is appended to the tooltip, unless its output has been explicitly disabled.

Note: If the alt text and tooltip are identical, the additional tooltip is omitted. This avoids unnecessary repetitions.

Porträt eines Mannes mittleren Alters mit kurzen grauen Haaren, schwarzer Brille und kleinem Kinnbart vor hellgrauem Hintergrund. Porträt eines Mannes mittleren Alters mit kurzen grauen Haaren, schwarzer Brille und kleinem Kinnbart vor hellgrauem Hintergrund.

Dr. Max Mitte Mustermann Sen.

Head of Support Department
OpenCms Support
An der Wachsfabrik 13
Building Krämer 2nd floor
50996 Köln
NRW DE
Beispiel für eine Person, ausgegeben mit dem Formatter "Person Detailansicht".