Closed johannessteu closed 8 years ago
Comment created by aertmann:
[~sorenmalling]: Hey thanks for reporting. I've noticed a similar issue lately where processors weren't unset
@if.notEmpty >
Comment created by sorenmalling:
I can confirm that this issue stil exists in 2.2.3
Simple TS2 to test
page = Page {
body >
body = TYPO3.TypoScript:Array {
content {
// The default content section
main = PrimaryContent {
nodePath = 'main'
}
}
}
will ouput the "_toString" part of the node. What part of the rendering/TS parsing should this be debugged in? I will happily start, as I'm not using the default Page object and will have this issue forever, if I dont get it fixed :-)
Comment created by aertmann:
not sure, maybe [sebastian] or [christopher] can help?
Comment created by christopher:
Hi [~sorenmalling],
if you could provide a test case like the ones in Packages/Neos/TYPO3.TypoScript/Tests/Functional/TypoScriptObjects it would be easier to test the expected behavior.
The problem itself should be somewhere in the Parser class since that one builds the prototype hierarchy. If you dump the object tree (around Packages/Neos/TYPO3.TypoScript/Classes/TYPO3/TypoScript/Core/Parser.php:284) it should be visible that an unwanted definition is left on the page
path.
Comment created by sorenmalling:
[~christopher]
Thanks, I created a simple PR with the similar concept as above
I think I will have to create a more advance example in the TYPO3.Neos package, to be able to use the "Page" prototype. Will look into that later this weekend.
I will debug the parser afterwards
Jira issue originally created by user sorenmalling:
Case Trying to implement my own way of rendering the
/page
path, I get the**toString
printed in the top of the page of the assigned ${node} and ${site} from the origin Page.ts file, located in the TYPO3.Neos package even when resetting thebody
How to reproduce
The above prints the node and site (with **toString) - expected, as Array renders all assigned properties.
Adding "body >" to remove the original assigned object (Template) from TYPO3.Neos Page.ts document - expected was that all assigned properties was removed. Reality is, that node and site is still present and being printed.
The expected typoscript, that should remove the printed node and site is the following
Not untill I add ex "node >" to the body part, the node and site is rendered