Embed

Embed field for authors to paste OEmbed supporting service resource URL (Youtube, Vimeo, Soundcloud, etc.)

Copy
      "embed" : {
  "type" : "Embed",
  "fieldset" : "OEmbed link",
  "config" : {
    "placeholder" : "Paste a OEmbed supporting service resource URL"
  }
}
    

Reference

type

string

Embed

fieldset

string

a user-friendly field label

config

object

objects listed below

config

placeholder

string

user-friendly placeholder

There is no specific predicate for Embed fields.

Orderings

Embed fields cannot be used to order results.

Copy
      != prismicdoc.get('product.video').asHtml()
    
Copy
      <?= $prismicdoc->get('product.video')->asHtml() ?>
    
Copy
      <div>${prismicdoc.getEmbed("product.video").asHtml()}</div>