Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Kalender Links können nicht gecrawlt werden

More
6 months 3 weeks ago #9740 by iitr
Liebes Forum,

wir benutzen das Kalendar-Feld in einem unserer Formulare. Der Google PageSpeed kreidet hier 4 Links an, die nicht gecrawlt werden können. Dabei handelt es sich um die vor/zurück Links bei der Jahres- und Monatsauswahl, zB : <a class="js-btn btn-prev-year">

Gibt es die Möglichkeit, dass in einen <button> umzuwandeln, statt ein <a>-Tag zu benutzen?
Ich habe leider die Stelle nicht gefunden, wo das HTML für den Kalender generiert wird, um ein Override zu erstellen.

Beste Grüße,
Franziska
 
Attachments:

More
6 months 3 weeks ago - 6 months 3 weeks ago #9749 by Administrator IV
Replied by Administrator IV on topic Kalender Links können nicht gecrawlt werden
Hallo Franziska,

das Calendar-Control wird nicht von Visforms gerendert; es kommt von Joomla.
Für Visforms ist daher kein Override möglich.

Es gibt die Möglichkeit, dass in einen <button> umzuwandeln, statt ein <a>-Tag zu benutzen.

Am besten verwendest du einfach JavaScript im Rahmen der Visforms Frontend Webassets.

Frontend Webassets:
docs.joomla-4.visforms.vi-solutions.de/d...-frontend-webassets/
Alle Einstellungen werden im Formular vorgenommen:
docs.joomla-4.visforms.vi-solutions.de/d...formular-vorgenommen

Mit dem folgenden JavaScript werden in einem Beispiel-Formular in beiden Calendar-Controls die betroffenen a-Elemente gegen button-Elemente ersetzt.
Code:
jQuery(document).ready(function() {     console.log('script loaded');     jQuery('a.js-btn').each(function () {         let cls = jQuery(this).attr('class');         jQuery(this).replaceWith(jQuery(`<button class="${cls}">` + this.innerHTML + '</button>'));     }); });


Das manipulierte Calendar-Control im Formular (die kleinen grauen Buttons sind zu sehen):
vi-solutions.de/forum-uploads/joomla-cal...-anchor-elements.png

Liebe Grüße, Ingmar

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).
Last edit: 6 months 3 weeks ago by Administrator IV.

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum