- Write
- Reference
- Resolve
- Reuse
A related-content block stores story references, not copied text. Updating a note changes every page that references it.
Resolve references on the server
The page keeps UUIDs in Storyblok. Next.js loads the referenced stories in the same language and publication version.
const uuids = relatedUuids(data.story.content);
if (uuids.length) {
const stories = await fetchRelatedStories(uuids, language, version);
data.story.content = attachRelatedNotes(data.story.content, stories, language);
}