Joomla 5 Notice

We are pleased to announce that as of October 14, 2025, all of our Joomla extensions are compatible with Joomla 6.

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

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

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.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Kalender Links können nicht gecrawlt werden

More
2 years 1 month 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
2 years 1 month ago - 2 years 1 month 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 5:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 4.
Please only ask 1 question per topic :-).

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

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum