Issue Feature Rejected

#23762Typoscript issue on values using "internal chars" in string-sequence

Gabriel Kaufmann 12/30/10, 23:37 updated 01/18/15, 13:16

Description

I noticed that TYPO3 seems to have problems on using internal-chars within dataWrap’ped typoscript-values.

Internal-Chars are f.e.:
the pipe “|“
curls like ( ) { }

The only “hack” figured out by myself is to use a LOAD_REGISTER where ever possible to avoid using the chars them-self within Typoscript values/wraps.

There should be a more programmer friendly way to solve this!

My recommendation: Make Typoscript handle “escapes” like they work in RegEXP (escape-sequences f.e. “\”).

f.e. output curls: \{ \( <— THESE WILL BE HANDLED AS TEXT IN TS!

Example:

DOES NOT WORK:

— TS-Setup —
10 = TEXT
10.dataWrap = {THIS SHOULD BE SHOWN AS TEXT WITH CURL}

20 = TEXT
20.dataWrap (
<script language="text/javascript"><br /> // Curls may be very annoing using Javascript with InsertData/Registers in Typoscript!!!<br /> // example:<br /> function test() {<br /> // THIS WILL NOT RENDER CORRECTLY WITH CURLS!<br /> }</p> <p>

// another example:
var JSON={value:test} // CRASH: DOES NOT RENDER OUT AS SHOWN HERE!
</script>
)
</p> <p>DOES WORK<br />10 = COA<br />10.1 = LOAD_REGISTER<br />10.1.openCurl = {<br />10.1.closeCurl = }</p> <p>10.10 = TEXT<br />10.10.dataWrap = {register:openCurl}THIS SHOULD BE SHOWN AS TEXT WITH CURL{register:closeCurl}</p> <p>20.20 = TEXT<br />20.20.dataWrap (<br /> <script language="text/javascript"><br /> // Curls may be very annoing using Javascript with InsertData/Registers in Typoscript!!!<br /> // example:<br /> function test() {register:openCurl}<br /> // THIS HACK WILL WORK! {register:closeCurl}</p> <p>
// another example:
var JSON={register:openCurl}value:test{register:closeCurl}
</script>
)
</p> <p>I hope this Hack will work for anybody having the issue like me.<br />(issue imported from #M16881)</p></script>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.