I’ve created 3 NodeTypes and 1 documentNode for an upload Page.
On this page the 3 nodes are integrated.
There are the NodeTypes “Document”, “Document Upload” and “Document List”.
The NodeType “Document” contains information about a file.
The NodeType “Document List” is there to read the NodeTypes of the type “Document” on this page.
The NodeType “Document Upload” is used to upload a file using a form.
The form is used to create a “Document”-Node on this documentNode/pageNode.
Is there a way how I can create the Node?
The file upload works well but I’m not able to create the Nodes and I don’t found any help for my problem.
I think I need the identifier of the Page but I don’t know how to create the Node with the form-finisher using PHP.
Does the $fileList already exist? I think, this is the node that should be created, isn’t it?
$fileList already exist. Thats the Collection where the Files are saved
I wanted to create Nodes (with PHP) of the File-NodeType (which has to saved in $fileList)
To your code: I will test it and then report again, if it worked