英文:
Typo3 9.5 Powermail CASE with german "umlaut"
问题
I found a nice TypoScript code snippet to use different Text based on which option choosed in a webform:
lib.salutation = CASE
lib.salutation {
key.field = 0
Herr = TEXT
Herr.value = Sehr geehrter Herr
Herr.noTrimWrap = || |
Frau = TEXT
Frau.value = Sehr geehrte Frau
Frau.noTrimWrap = || |
}
But i need to use an option called "Daten ändern". But this will obiously not work:
Daten ändern = TEXT
Daten ändern.value = Daten ändern bla bla
Daten ändern.noTrimWrap = || |
How can i use "Daten ändern" with the code above?
Thank you!
英文:
I found a nice TypoScript code snippet to use different Text based on which option choosed in a webform:
https://www.typo3.net/forum/thematik/zeige/thema/111899/
lib.salutation = CASE
lib.salutation {
key.field = 0
Herr = TEXT
Herr.value = Sehr geehrter Herr
Herr.noTrimWrap = || |
Frau = TEXT
Frau.value = Sehr geehrte Frau
Frau.noTrimWrap = || |
}
But i need to use an option called "Daten ändern". But this will obiously not work:
Daten ändern = TEXT
Daten ändern.value = Daten ändern bla bla
Daten ändern.noTrimWrap = || |
How can i use "Daten ändern" with the code above?
Thank you!
答案1
得分: 2
I could edit my code to:
key.stdWrap.replacement {
10 {
search.char = 32
replace = _
}
20 {
search = ä
replace = ae
}
}
Daten_aendern = TEXT
Daten_aendern.value = Daten ändern bla bla
Daten_aendern.noTrimWrap = || |
Wich works fine
英文:
With the hint from Anu Bhuvanendran Nair
I could edit my code to:
key.stdWrap.replacement {
10 {
search.char = 32
replace = _
}
20 {
search = ä
replace = ae
}
Daten_aendern = TEXT
Daten_aendern.value = Daten ändern bla bla
Daten_aendern.noTrimWrap = || |
Wich works fine
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论