[Neos] Re: Get Neos Site persistence_object_identifier in Flow Plugin
Patric Eckhart
mail at patriceckhart.com
Sat Apr 11 14:18:19 CEST 2015
Ok, I have do this with the following code in the indexAction and it works.
Thank you.
$blogDocumentNode = $this->request->getInternalArgument('__documentNode');
$this->view->assign('postsNode', $blogDocumentNode);
$classname = '\MyCompany\MyProjekt\Domain\Model\Comment';
$query = $this->persistenceManager->createQueryForType($classname);
$node = $query->matching($query->equals('node', $blogDocumentNode))->execute();
$this->view->assign('comments', $node);
More information about the Neos
mailing list