I have an object defined in TypoScript
page.10 {
variables {
myObject = COA
myObject{
1 = TEXT
1.value = yome Text
2 = TEXT
2.value = 42
}
}
}
and I need the data of the myObject in a partial
<f:render partial="myPartial" arguments="{content:myObject}" />
that looks like
<section id="myPartial">
<h2>{content.1}</h2>
<p>{content.2}</p>
</section>
Although the content is there ( because {content} will display all the properties) I cannot access it and h2 and p will be empty…
What should I do to fill h2 and p with the content of myObject?
That is not possible.
TypoScriptonly returns text strings at the moment, not arrays. Thus the variablemyObjectcontains the whole concatenated string of theCOA, thusyome Text42.Note that
COAmeansContent Object Array, but the wholeCOAis one single object that is returned as one string.