Einride Logo
Einride Logo

Embedment guide

2020.12.23

Embedment guide

News

Here are some guidelines on how to embed content in Contentful to make it work in a good way on the website. Contact Team Website if you have questions!

If it's unclear how things are done, you can also go to this entry in Contentful and explore how these embedments were done.

Links

Insight

Hyperlink -> Link type = Entry -> Choose insight to link to

Link to insight: Insight

Press release

Hyperlink -> Link type = Entry -> Choose press release to link to

Link to press release: Press release

Asset

Hyperlink -> Link type = Asset -> Choose asset to link to

Link to asset: Oatly Simon Broadbent

Important: Do not copy-paste links to insights, press releases or assets. If the URL to what's linked changes, the link will stop working.

Other internal link

Copy URL from page you want to link to -> Hyperlink -> Write link text and paste link URL

Other internal link: Shipper

The link is analysed in the code, and if it seems to be an internal link, the page will open in the same window if clicked.

Important: Keep in mind that internal pages can be removed or the URLs can be changed. In these cases, the link has to be updated manually.

External link

Copy URL from page you want to link to -> Hyperlink -> Write link text and paste link URL

External link: Google

The link is analysed in the code, and if it seems to be an external link, the page will open in a new window if clicked.

Important: Keep in mind that external pages can be removed or the URLs can be changed. In these cases, the link has to be updated manually.

Images

+ Embed -> Asset -> Choose image to embed

Einride x Oatly US no logo

Videos

+ Embed -> Asset -> Choose video to embed

Youtube videos

Link

You can link to a Youtube video in the same way as an external link (see above).

Link to Youtube video: Youtube video

Embed

However, if you rather want to embed the Youtube video in the entry, you have to use the embed URL instead:

If this is the regular URL: https://www.youtube.com/watch?v=_TAbR2q8XwY

Then this is the embed URL: https://www.youtube.com/embed/_TAbR2q8XwY

In other words, "watch?v=" is replaced with "embed/".

When you have the embed URL, just link to it as an external link (see above). The link text doesn't matter as it won't be displayed anywhere. Here is the Youtube video embedded:

Embedded entries

This is almost the same as linking to an entry (i.e. insight or press release, see above). However, in this case the link text will automatically match the title of the entry. If you want the link text to match the article title, this is the way to go since it makes it impossible to misspell the title, and if the title of the entry is updated, the link text will also be updated.

Insight

+ Embed -> Inline entry -> Choose insight to embed

Embedded Insight inline: AI meets God in Jacob Mühlrad’s symphony “Einride”

Press release

+ Embed -> Inline entry -> Choose press release to embed

Embedded Press Release inline: The future of freight is here. 08.10.20

Embedded Media Kit entries

If you want to display a downloadable media kit entry, as in the /press page, you can do it this way:

+ Embed -> Entry -> Choose media kit to embed

Saga

Saga

Download →

If you just want to display an image from the media kit, it should handled as a regular image (see above).

More like this

The future of shipping, now live in the US

The future of shipping, now live in the US

News

2021.11.22

Five years down, many more to go

Five years down, many more to go

News

2021.09.02

Einride named to Fast Company's list of the world's Most Innovative Companies for 2021

Einride named to Fast Company's list of the world's Most Innovative Companies for 2021

News

2021.03.09