Typo3 9.5 Powermail 使用德语的“umlaut”进行CASE操作

huangapple go评论55阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年5月10日 22:14:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/76219482.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定