0
votes

This is my typoscript code :

lib.test.renderObj = COA
lib.test.renderObj.10 = TEXT
lib.test.renderObj.10.stdWrap.field = header
lib.test.renderObj.10.stdWrap.case = lower
lib.test.renderObj.10.stdWrap.trim = 1
lib.test.renderObj.10.stdWrap.wrap = <div class="element">|</div>

The header field is well received, letters have been lowercased and the field is well wrapped by a element. The only problem is that i can't make the TRIM properties effective. I also tried to use the search/replace properties -> no success.

Any clue ? :)

1
Maybe due to the forgotten .? ;) - Thomas Löffler
:) @ThomasLöffler Sorry, my copy/paste was false : the missing point isn't in my live typoscript. Problem is still ongoing - Paolito75
Any idea ? I can't understand what's wrong ... - Paolito75
Your TypoScript works fine in my test case. What exactly is the content of your header field where it is not working? (my test case was " aEOu " which became "<div class="element">aeou</div>") - Susi
The field header = "MY CUSTOM APP", I'd like to get "mycustomapp". With the code above this i what I got : "my custom app"... maybe I would try to use an alternative like .replace ? How to do ? - Paolito75

1 Answers

1
votes

You can search and replace since 4.6. The documentation you can find here: https://docs.typo3.org/typo3cms/TyposcriptReference/6.2/Functions/Replacement/

lib.test.renderObj.10.stdWrap.replacement {
    10 {
        search = # #
        replace = 
        useRegExp = 1
    }
}

Don't know if the replace is really working, can't test it.