Open cweiske opened 2 weeks ago
Fun fact: it is already documented here: https://github.com/TYPO3/Fluid/blob/3510df3031d978f3fb8128f973a9d70eddb99df8/examples/Resources/Private/Singles/Variables.html
So if you could open a PR to copy the necessary info to the officially rendered docs, that would be wonderful. :-)
Yes, there are certainly some blind spots in the documentation we need to address. We will gladly accept PRs in this area.
The "fluid syntax" documentation at https://docs.typo3.org/other/typo3fluid/fluid/main/en-us/Usage/Syntax.html does not talk about how to access array and object properties.
It should show the following cases, preferably with syntactically equivalent PHP code:
myarrayvar.23
(php:$myarrayvar[23]
)myobject.myproperty
(php:$myobject->myproperty
)$myarrayvar[$mykeyname]
)$myobject->$myvarname
)myobject.foo
(php:$myobject->getFoo()
)