We recently had to retrieve a node in alternate dimension, spent a long time attempting to do so, and figured someone else could face the same problem.
The following code retrieves the en version of our node.
@override.englishContext = TYPO3.TypoScript:RawArray {
dimensions = ${{language: ['en']}}
targetDimensions = ${{language: 'en'}}
}
nodeLink = TYPO3.Neos:NodeUri {
node = ${q(node).context(englishContext).get(0)}
}
1 Like
sebastian
(Sebastian Kurfuerst)
June 25, 2015, 1:02pm
2
Hey Patrick,
thanks for your post I moved it to the FAQ category!
All the best,
Sebastian
bwaidelich
(Bastian Waidelich)
August 5, 2019, 9:27am
3
Little update to this one:
With today’s current versions of Neos this could look like:
@context.englishContext = Neos.Fusion:DataStructure {
dimensions = ${{language: ['en']}}
targetDimensions = ${{language: 'en'}}
}
nodeLink = Neos.Neos:NodeUri {
node = ${q(node).context(englishContext).get(0)}
}