Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Classes/Fusion/PropertiesImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,24 @@ protected function convertPropertyValue(mixed $propertyValue, Int $depth): mixed
$mappedProperties = $this->mapProperties($referencedNode, $depth + 1);

if ($referencedNode->getNodeType()->isOfType('Neos.Neos:Document')) {
try {
$mappedProperties['_identifier'] = $referencedNode->getIdentifier();
} catch (\Exception $exception) {
$this->logger->error(
printf('Identifier of referenced node could not be resolved: Node ContextPath: %s, Exception: %s', $referencedNode->getContextPath(), $exception)
);
return '';
}

try {
$mappedProperties['_nodeType'] = $referencedNode->getNodeType()->getName();
} catch (\Exception $exception) {
$this->logger->error(
printf('NodeType of referenced node could not be resolved: Node ContextPath: %s, Exception: %s', $referencedNode->getContextPath(), $exception)
);
return '';
}

// use Implementation from Neos.Neos:NodeUri
$controllerContext = $this->runtime->getControllerContext();

Expand Down