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.

Custom HTML/PHP Code in Erfolgstext / Ergebnis Mail

More
1 year 7 months ago - 1 year 7 months ago #8346 by tornado
Hallo Aicha,

Betr. PDFs dynamischer gestalten:
Ich weiss, Visforms bietet schon sehr viele Möglichkeiten, Formulare flexibel und dynamisch zu gestalten. Speziell mit den "Custom Events" hat man viel eigenen Gestaltungsraum. 
Nun, bei Erfolgstext / Mails kann ich dank der Custom Events z.B. eigene Variablen definieren und diese in Ergebnistext / Mails verwenden. Oder ich kann abhängig vom Inhalt eines Feldes, Erfolgstext/Mail leicht anders gestalten. 
Wäre cool, wenn das beim PDF auch möglich ist, dass ich via Custom Event den "pdf->Body" dynamisch gestalten kann.

Betr. Dateinamen dynamisch gestalten:
Ich kann mit der aktuellen Situation leben. Wäre einfach schön, wenn die Filenamen für PDF-Anhänge und File-Uploads flexibler wären.

Spricht etwas dagegen, dass ich versuche das per overwrite selber zu realisieren? Ich nehme an, die Filenamen für die Attachment werden im Plugin vfmailattachments gesetzt...?

Herzlichen Dank
Felix 
Last edit: 1 year 7 months ago by tornado.

More
1 year 7 months ago #8347 by Administrator AV
Replied by Administrator AV on topic Custom HTML/PHP Code in Erfolgstext / Ergebnis Mail
Hallo Felix,
ja, die Namen werden letztlich im Plugin vfmailattachments gesetzt und zwar in der Zeile 149 bzw. 184.in der plugins/visforms/vfmailattachments/vfmailattachments.php

Leider kannst du für diese Datei kein echtes, updatesicheres Override erstellen.
D.h. du kannst nur direkt den Code ändern und dann wird dir das bei jedem Update überschrieben.

Und das Plugin zu duplizieren, neu zu benennen und dann das duplizierte Plugin zu verwenden ist auch nicht ganz einfach, weil diese Plugin ziemlich komplex ist und bei einer Namensänderung musst du ziemlich viel Code nachbearbieten. Da ist viel Logik über Namen geregel, z.B. auch, dass es sowohl den Mail Attachment als auch den Edit Mail Attachment Reiter in Visforms erzeugt und immer die richtigen Einstellungen verwendet, je nachdem, ob du ein Formular neu verschickst oder Daten editierst....

Gruß,
Aicha

: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 :-).

More
1 year 7 months ago - 1 year 7 months ago #8386 by Administrator IV
Replied by Administrator IV on topic Custom HTML/PHP Code in Erfolgstext / Ergebnis Mail
Hallo Felix,

die beiden Feature sind nun in der Entwicklungs-Liste drin:

Issue - VF-437: Forum: PDF: PDF file name configurable using placeholders
Issue - VF-438: Forum: PDF: Throw a new Visforms Event to have email related PDF template (e.g. the "pdf->body") dynamic via custom plugin code

Es ist leider schon recht viel Arbeit und einiges zu berücksichtigen auch hinsichtlich dem Datei-System.

Danke und Gruß, 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: 1 year 7 months ago by Administrator IV.

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum