InterviewSolution
| 1. |
Explain Stdwrap(standard Wrap) Function? |
|
Answer» The stdWrap function is one of the most powerful and most widely used of all TypoScript. Most properties actually support stdWrap. This function is often added as a property to VALUES in TypoScript. Heed the order: The single most important thing to know about stdWrap is that all properties are parsed/executed exactly in the order in which they appear in the TypoScript Reference, no matter in which order you have set them in your TypoScript TEMPLATE. Modify the order: There is a way around this ordering restriction. stdWrap has a property called orderedStdWrap in which SEVERAL stdWrap properties can be called in numerical order. The data type: While writing TypoScript, it is crucial to know what kind of data type you are handling. cObject: The stdWrap property “cObject” can be used to replace the content with a TypoScript object. This can be a COA, a plugin or a text like in this example:
The stdWrap function is one of the most powerful and most widely used of all TypoScript. Most properties actually support stdWrap. This function is often added as a property to values in TypoScript. Heed the order: The single most important thing to know about stdWrap is that all properties are parsed/executed exactly in the order in which they appear in the TypoScript Reference, no matter in which order you have set them in your TypoScript template. Modify the order: There is a way around this ordering restriction. stdWrap has a property called orderedStdWrap in which several stdWrap properties can be called in numerical order. The data type: While writing TypoScript, it is crucial to know what kind of data type you are handling. cObject: The stdWrap property “cObject” can be used to replace the content with a TypoScript object. This can be a COA, a plugin or a text like in this example: |
|