Bug #14503
closedNegative PID when creating new content in page module
0%
Description
I use the hook in TCEmain (function processDatamap_postProcessFieldArray($status, $table, $id, &$fieldArray, &$reference)) for getting information on new pages and new content created.
But when i use the 'new content' button in top of the 'page'-module and put in new content there is a negative PID in the array '$reference->checkValue_currentRecord'
section from this array
...
[sectionIndex] => 1
[pid] => -385
[sorting] => 896
...
When i create the content from the list-module the PID is ok.
(issue imported from #M702)
Updated by Wolfgang Klinger almost 20 years ago
That's ok, negative PID values help in inserting the new content at the right position, take a look at the method "resolvePid" of t3lib_TCEmain (t3lib/class.t3lib_tcemain.php)
Is it ok to close this bug?
Updated by old_AndiB almost 20 years ago
Thank you, i didn´t know the method 'resolvePid'. It was just a little bit confusing that a pageID is negative.
I think it´s ok to close this bug.