stdWrap is one of the most powerful and at the same time obscure TYPO3 functions. In these series of articles I am going to make this function more clear for both TypoScript and extension developers.
A most simple example of stdWrap is:
temp.test = TEXT
temp.test {
value = Hello, world!
wrap = The boring phrase: "|"
}
This will produce the "Hello, world" prepended by "The boring phrase".
I am sure you used it wrap property a lot but have you realized that you actually used stdWrap?
What is stdWrap?
stdWrap is a TYPO3 function that can alter data or replace it with completely another data if developer wishes so. stdWrap is incredibly powerful. It can do many transformations, check conditions, use content objects and many more. If there is no transformation that developer needs, it is always possible to extend stdWrap with a custom function.A most simple example of stdWrap is:
temp.test = TEXT
temp.test {
value = Hello, world!
wrap = The boring phrase: "|"
}
This will produce the "Hello, world" prepended by "The boring phrase".
I am sure you used it wrap property a lot but have you realized that you actually used stdWrap?