Hallo zusammen,
nachdem ich nun hier lange gesucht und nix gefunden habe meine Frage:
ich möchte in einem Link Werte an ein E-Mail-Formular(mailformplus) übergeben.
Beispiel-Link:
Http://www.xyz.de/index.php?id=211&test=12345
Die Seite (id=211) enthält das E-Mail-Formular.
Der statische Marker funktioniert, die URL-Übergabe bislang leider nicht. 😢
Template der Seite 211:
#statischer Wert für Formular
#plugin.tx_thmailformplus_pi1.markers.test = TEXT
#plugin.tx_thmailformplus_pi1.markers.test.value = hallo
#Wert mit URL übergeben
plugin.tx_thmailformplus_pi1.markers.test = GP:test
Wie muss ich da nun abfragen?
Grüße
Namtscho
Hm, das schein ja schwierig zu sein... 😢
Hi!
plugin.tx_thmailformplus_pi1.markers.test = TEXT
plugin.tx_thmailformplus_pi1.markers.test.data = GPVar:test
Wie immer ungetestet 😉
CU
maxhb
Danke für die Info, aber es geht leider nicht. 😢
Anstatt dem Inhalt wird TEXT ausgegeben.
Die einfache Ausgabe eines Parameters habe ich nun hinbekommen.
Ohne TS, einfach im HTML-Template den Marker ###value_test### verwenden.
Nun brauche ich den Wert aber auch noch in TS...
plugin.tx_thmailformplus_pi1.default.email_subject < GPVar:test
Das geht leider auch nicht.
Hm, im TS-Ref https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Conditions/Index.html#condition-function-getenv
steht:
Examples:
This will match with a url like "...&print=1"
[globalVar = GP:print > 0]
Nun kapier ich nix mehr. #angry#
Es geht aber auch so nicht...
Danke an maxhb. Das Einlesen in den Marker funktioniert wirklich so.
plugin.tx_thmailformplus_pi1.markers.subject = TEXT
plugin.tx_thmailformplus_pi1.markers.subject.data = GPvar:test
Wenn ich jedoch diesen Marker nun als E-Mail-Subject verwenden möchte geht das leider nicht.
#dies funktioniert
plugin.tx_thmailformplus_pi1.default.email_subject = Das neue Subjekt ;-)
#dies leider nicht
plugin.tx_thmailformplus_pi1.default.email_subject = plugin.tx_thmailformplus_pi1.markers.subject
Es wird dann als Subject TEXT angezeigt. Hm, anscheinend ist das email_subject ein anderer Typ oder wie kann ich diesen Marker nun kopieren?
geht recht einfach:
temp.readget = TEXT
temp.readget.data = GPvar:artikel
#mailformplus config begin
plugin.tx_thmailformplus_pi1 {
markers.exp_produkt < temp.readget
}
#mailformplus config ende