That is not what I’m looking for but thank you
I’ve created a PHP-Script which creates a Node in the first ChildNode of the DocumentNode.
‘$toIdentifier’ is the Identifier of the DocumentNode
‘$title’ the title which was entered in the form
$contextConfiguration = ['workspaceName' => 'live', 'invisibleContentShown' => true]; $context = $this->contextFactory->create($contextConfiguration); $parentNode = $context->getNodeByIdentifier($toIdentifier); $contentCollection = $parentNode->getPrimaryChildNode(); // Main-Collection $fileList = $contentCollection->getPrimaryChildNode(); // File-List $nodeTemplate = new \Neos\ContentRepository\Domain\Model\NodeTemplate(); $nodeTemplate->setNodeType($this->nodeTypeManager->getNodeType('Vendor.Documents:Content.File')); $nodeTemplate->setProperty('title',$title); $fileList->createNodeFromTemplate($nodeTemplate, $title);
But ‘getPrimaryChildNode()’ is depricated