Retrieving a node in a different dimension

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

Hey Patrick,

thanks for your post :slight_smile: I moved it to the FAQ category!

All the best,
Sebastian

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)}
}