Content External Links

Want to link to your app or preview page from a specific entry?

Engineering avatar
Written by Engineering
Updated over a week ago

Since Flamelink is a headless CMS that focuses on managing your data without dictating the presentation of it, it can sometimes be hard for content editors to visualise how the content changes look in an app or website. For this reason, Flamelink gives you a way to add a URL for each content entry so that you can quickly link through to this page.

Setup

From within the Schema builder, navigate to the Schema Details section to find the External Link field.

This external link can take variables that will be dynamically replaced by properties on each entry. In the example above, the link contains a variable postSlug that will be replaced by whatever the value of the "Post Slug" field is for the particular entry.

These variables work on nested data structures as well, so if you had a Field Group called "Group" with an "ID" field inside, you could add a variable {group.id} and Flamelink would replace the value of the ID field inside the URL.

Pro tip: To access metadata like the locale or environment the entry belongs to, you can add a variable for {__meta__.locale}  or {__meta__.env}  respectively. [Those are two underscores before and after meta ]
​ 

Usage

Once you've set up the external link for your schema you can navigate to an entry for that schema.

If an entry has an external link set up, there will now be a new icon in the entry's metadata box that you can click. Clicking this icon will open a new browser tab to the URL you specified.

Note: The icon will not show before the entry has been saved.

Did this answer your question?