Hey guys,
I have a FlowQuery to get subsites of a category site. It works perfectly.
Now I would get an specific NodeType (Content Element) from this subsites.
My specific NodeType named Neos.Shop:Article
Can I do this with FlowQuery?
$workspaceName = "live"; $context = $this->contextFactory->create(array('workspaceName' => $workspaceName)); $node = $context->getNodeByIdentifier($category); $articles = (new FlowQuery(array($node)))->children('[instanceof TYPO3.Neos.NodeTypes:Page]')->context(array('workspaceName' => 'live'))->get(); $this->view->assign('articles', $articles);