Field Types / Embed field
Note: You are currently reading the documentation for Bolt 4.0. Looking for the documentation for Bolt 5.2 instead?
A generic built-in embed client, to facilitate embedding from different sources like YouTube, Vimeo, SoundCloud, Twitter, Issuu or any other kind of media provider that supports the OEmbed standard.
Basic Configuration:¶
Example usage in templates:¶
To insert the HTML for the embed:
Additionally, the following properties are available:
Default value¶
The embed field can contain a default value, which you can set using the
default:
option like so:
Responsive options¶
An embed field can be set to responsive, thereby ignoring the width
and height
options. Bolt provides two responsive options.
Responsive by class¶
The example above will render the embedded iframe
wrapped around a container parent as follows:
You can use this class to apply the responsive styling in css as you see fit.
Responsive by inline styles¶
Alternatively, the responsive_inline
value can be used to render a responsive embedded field, without any custom CSS required.
will render the following:
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.