Bilder ausschließen per Klasse oder wenn alt vorhanden aber leer

1 year 2 months ago #16818 by webman
Hallo Viktor,

ich nutze dein Plugin, um das Alt Attribut bei Bildern hinzuzufügen.
Jetzt bin ich gerade dabei, die Barrierefreiheit zu verbessern. Da ist die Vorgabe, dass wenn ein Bild verlinkt ist und es in dem Link zusätzlichen Text gibt, dann sollte das Bild als dekorativ markiert werden, also das Alt-Attribute ist zwar vorhanden, aber bleibt leer. Joomla rendert das dann so: <img src="xyz" alt class="eine-klasse">

Jetzt ersetzt dein Plugin dann das Alt mit dem Dateinamen. Könntest du es vielleicht so anpassen, dass wenn ein Alt vorhanden ist, auch wenn er leer ist, das nicht überschrieben wird? Vielleicht mit einem zusätzlichen Schalter in den Optionen.
Oder alternativ: Klassen ausschließen, für die das nicht gemacht werden soll. 

Option 1 wäre mir ehrlich gesagt lieber, damit man nicht vergisst, was einzutragen.
Was meinst du dazu?

LG Tanja
The topic has been locked.
1 year 2 months ago - 1 year 2 months ago #16819 by Viktor
Please log in to see the response. Attention: You need a valid subscription to activate an account.
The topic has been locked.
1 year 2 months ago #16820 by webman
Please log in to see the response. Attention: You need a valid subscription to activate an account.
The topic has been locked.
1 year 2 months ago - 1 year 2 months ago #16822 by Viktor
Please log in to see the response. Attention: You need a valid subscription to activate an account.
The topic has been locked.
1 year 2 months ago #16824 by webman
Please log in to see the response. Attention: You need a valid subscription to activate an account.
The topic has been locked.
1 year 2 months ago #16826 by Viktor
Please log in to see the response. Attention: You need a valid subscription to activate an account.
The topic has been locked.
Time to create page: 0.148 seconds