Zum Inhalt springen

URL-Parameter in TS verwenden

Erstellt am 14. Juli 2005 · 6 Antworten · letzte Antwort am 7. März 2006

Tags: Frage

namtscho ·

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

maxhb ·

Hi!

plugin.tx_thmailformplus_pi1.markers.test = TEXT
plugin.tx_thmailformplus_pi1.markers.test.data = GPVar:test

Wie immer ungetestet 😉

CU
maxhb

namtscho ·

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.

namtscho ·

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?

mondrak ·

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