Page 1 of 2
ALT-Attribute
Posted: 09 Aug 2019, 18:17
by KarEm
Hi,
gibt es eine Möglichkeit die Bildnamen oder alternativ den Category-Name (ohne ID) als Wert(e) für das ALT-Attribut bei den Thumbs die in der Categories-View im masonry-Modus genutzt werden einzusetzen?
Derzeit wird das ALT-Attribut nicht gesetzt und ich habe keine Möglichkeit gefunden, dies einzustellen.
Beispiel:
Quelle:
https://www.phoca.cz/joomla3demo/
Regards
KarEm
Re: ALT-Attribute
Posted: 09 Aug 2019, 22:19
by christine
Hallo KarEm,
hmm. Bei der Quelle, das ist ja Category Übersicht. Wenn Du zu Cities gehst, sehe ich z.B.:
Code: Select all
<img src="/joomla3demo/images/phocagallery/Cities/thumbs/phoca_thumb_m_Amsterdam.jpg" alt="Amsterdam" class="pg-image img img-responsive" itemprop="thumbnail">
Probier hier mal:
https://www.reisefotografien.eu/phoca-b ... 5-optionen bei Allgemeine Einstellungen.
Liebe Grüße
Christine
Re: ALT-Attribute
Posted: 09 Aug 2019, 23:15
by KarEm
Hi Christine,
danke für's Ansehen.
Bei Einzelbilder in der Category View und auch bei der Übergabe / Aufruf der Detail-View (hier Highslide JS (nur Bilder)) wird offensichtlich das ALT-Attribut belegt. Meine Frage bezog sich auf die masonry-Darstellung, also wenn mehrere Bilder für die jeweilige Category-View in einer Box zusammengesetzt werden (wie z.B. bei Cities).
Mit der Option ALT hatte ich schon experimentiert, jedoch ohne Erfolg.
Regards
KarEm
P.S. Ist es irgendwie möglich per Copy&Paste einen Screenshot hier reinzukopieren?
Re: ALT-Attribute
Posted: 10 Aug 2019, 00:00
by christine
Hallo KarEm,
Bilder raufladen kannst Du damit machen:
https://www.phoca.cz/documents/50-phoca ... forum-post
ich glaube aber, ich weiß was Du meinst, deswegen hier ein Bild

Also von der Masonry-Darstellung, wenn man drüber hovert:
glaube nicht, dass das dort geht, eben weil diese in einer Box sind, wie Du schreibst. Da werde ich Jan fragen.
Für heute: Gute Nacht,
Christine
Re: ALT-Attribute
Posted: 10 Aug 2019, 07:38
by KarEm
Hi Christine,
besten Dank für die späte Antwort.
Ich habe auch nichts gegen eine individuelle Code-Anpassung.
Regards
KarEm
Re: ALT-Attribute
Posted: 10 Aug 2019, 17:26
by Jan
Hallo, kannst du den Screenshot hier eingeben, ich verstehe genau nicht, wo es darstellen soll?
Jan
Re: ALT-Attribute
Posted: 11 Aug 2019, 09:57
by KarEm
Hi Jan,
thanks for responding.
Let's take an example from your demo page:
https://www.phoca.cz/joomla3demo/
As in this example, I also use the masonry effect in the Categories view.
If you look at the code, you notice that the ALT attribute is not set (marked with the red rectangles).
My question is, is there a possibility to set the image names or alternatively the category name (without ID), in this case "Cities" as value (s) for the ALT attribute?
Regards
KarEm
Re: ALT-Attribute
Posted: 11 Aug 2019, 11:54
by Jan
Hi, now I undestand, I was confused, because in "categories view" there is no "masonry" effect but "mosaic" effect
(masonry - this effect is done by javascript library callled masonry and the javascript just order the images
mosaic - this effect is only done per html/css so there are five images displayed in one box)
Yes, there is no such option yet, but I have modified the fields, please test:
1) Download this file:
https://www.phoca.cz/forumfiles/imagefront.zip
2) Unzip it to folder: administrator\components\com_phocagallery\libraries\phocagallery\image so the imagefront.php file will be overwritten
(backup the file: administrator\components\com_phocagallery\libraries\phocagallery\image\imagefront.php first)
3) Now you should be able to display values set by Alt Value parameter (title, or description or metadescription)
Please let me know, so I can add it to next version.
Jan
Re: ALT-Attribute
Posted: 11 Aug 2019, 12:29
by KarEm
Hi Jan,
thanks again.
mosaic, masonry, sorry I mixed it up.
I will do what you have suggested and let you know afterwards.
Regards
KarEm
Re: ALT-Attribute
Posted: 11 Aug 2019, 12:59
by KarEm
Hi Jan,
It works as desired.
Thank you for this quick and excellent support!!
Regards
KarEm