Joomla 6 Notice

We are pleased to announce that all our Joomla extensions have been compatible with Joomla 6 since October 14th, 2025.

For those currently upgrading from Joomla 3 to 4: Instructions for Joomla 4 migration can be found here:

There are standalone documentations Visforms Joomla 4, Visforms Joomla 5 and Visforms Joomla 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?

Modul lädt Formular nicht

More
9 years 11 months ago - 9 years 11 months ago #2802 by tomtom69
Modul lädt Formular nicht was created by tomtom69
Hallo zusammen,

ein etwas "spezielles" Anliegen: und zwar lade ich in einem Template-Override mit diesem Code:
Code:
jimport( 'joomla.application.module.helper' ); $module = JModuleHelper::getModule( 'mod_visforms', 'testform_keine_PRaxis_gefunden' ); $attribs['style'] = 'xhtml'; echo JModuleHelper::renderModule( $module, $attribs );
ein Formular - zumindest möchte ich das ;-)

Ziel ist es, bei einer Such-Ergebnis-Seite - wenn es kein Ergebnis gibt, ein Formular einzublenden, welches dem Besucher die Möglichkeit gibt, entsprechende Daten zu hinterlassen.

Das Formular ist existent und das visform-modul eingerichtet. Allerdings bekomme ich eine Fehlermeldung, dass das "Formular nicht existiert". Das zeigt mir zumindest, dass das laden des Moduls klappt, allerdings das Modul das Formular nicht findet?!?!? Zumindest hört es sich so an.

Zu sehen unter: discovering-hands.de/de/die-idee/teilneh...e-praxen-finden.html
(ihr müsst die Umkreissuche betätigen; etwas eingeben was nicht gefunden wird).

Bin für jede Anregung dankbar.

Sonnige Grüße,

Tom

P.S. habe grad mit dem Login-Modul getestet - das funzt einwandfrei. Nur so zur Fehlereingrenzung ;-)
Last edit: 9 years 11 months ago by tomtom69.

More
9 years 11 months ago #2805 by Administrator AV
Replied by Administrator AV on topic Modul lädt Formular nicht
Hallo,

hast du denn im Modul auch das Formular ausgewählt?

Gruß,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/en/docs/
Please ask only 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/docs/
Bitte immer nur 1 Frage pro Thema stellen :-).

More
9 years 11 months ago #2808 by tomtom69
Replied by tomtom69 on topic Modul lädt Formular nicht
Si :-)

Grüße, Tom

More
9 years 11 months ago #2809 by Administrator AV
Replied by Administrator AV on topic Modul lädt Formular nicht
Hallo Tom,

offfensichtlich kommt der Parameter der die Formularauswahl im Modul, also die Formularid, enthält in deinem Konstrukt nicht richtig an. Warum das so ist, weiß ich im Moment auch nicht.
Warum bindest du das Modul im Template nicht ganz normal über jdoc:include type=module name=positionxy etc. ein, und nimmst eine spezielle Modulposition für das Visforms Modul und packst das alles in eine if then else Schleife, die sicherstellt, dass das Modul nur angezeigt wird, wenn du es willst?

Gruß,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/en/docs/
Please ask only 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/docs/
Bitte immer nur 1 Frage pro Thema stellen :-).

More
9 years 11 months ago #2811 by tomtom69
Replied by tomtom69 on topic Modul lädt Formular nicht
Hola,

evtl. habe ich ein Detail nicht explizit genannt: es handelt sich um ein Tempate-Override der Komponente (Filialfinder), daher scheint das mit dem jdoc:include nicht zu funktionieren.

Aber mit jimport bin ich schon auf der richtigen Spur. Mit jedem anderen Modul funktioniert das auch. Ich hab folgenden Code in die betreffende Anweisung geschrieben:
Code:
$module = JModuleHelper::getModule( 'mod_visforms', 'testform_keine_PRaxis_gefunden' ); echo '<pre>'; print_r( $module ); echo '</pre>';

Ausgabe ist:

stdClass Object
(
[id] => 0
[title] =>
[module] => mod_visforms
[position] =>
[content] =>
[showtitle] => 0
[control] =>
[params] =>
)


Lt. joomla.org Doku ist das der Fall, wenn ein Modul nicht existent ist (siehe: docs.joomla.org/JModuleHelper/getModule ).

Das komische ist aber auch, dass ich die Fehlermeldung bekomme, dass das Formular nicht existiert (siehe Post vorher).
Mysteriös … noch eine Idee?

Sonnige Grüße,

Tom

More
9 years 11 months ago - 9 years 11 months ago #2815 by Administrator AV
Replied by Administrator AV on topic Modul lädt Formular nicht
Hallo Tom,

das params dürfte meines Erachtens nicht leer sein, sondern müsste zwei Parameter enthalten "catid" (das ist die Formularid) und "show_title". Wenn diese Werte Fehlen kann Visforms das Forumlar nicht laden und gibt die entsprechende Meldung, dass das Formular fehlt zurück.

Du müsstest dir das halt mal in einer php IDE ansehen. Dort könntest du debuggen, warum die Werte fehlen.

Gruß,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/en/docs/
Please ask only 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/docs/
Bitte immer nur 1 Frage pro Thema stellen :-).
Last edit: 9 years 11 months ago by Administrator AV.

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum