Test your website performance for free
Test your website performance

Scrivito.ImageTag

Renders an editable CMS content image.

Renders an img tag with the src URL of the referenced CMS image object.

Props

  • attribute (String) – the name of the reference or binary attribute for the image. Default: blob
  • content (Binary, Obj, Widget) – the image resource itself, or a page or widget holding a reference or binary attribute for the image.

Remarks

  • Other props are rendered as attributes of the resulting img tag.
  • If the type of the attribute is reference, the image reference can be changed by editors.
Examples

Using browser-level lazy-loading: