OpenWGA 7.10 - WebTML reference

WebTML tags » range

<tml:range imagederivates ="derivate query">

Purpose:

Predefines a derivate query to use on all images that are published in this range by default

Description:

This attribute is used to ensure that images inside this range, that are published via various functionalities, use a derivate of the specified characteristics instead of the original (unless explicitly prevented).

The image publishing functionalities that react to this predefinition are precisely:

  • <tml:image>
  • <tml:url type="file"> if it addresses a file of MIME type "Image/*"
  • Images embedded to richttext fields
  • Images published by CM modules
  • The scriptlet {@!imgurl@}
For details see Predefining derivate queries for ranges

Value(s):

A valid derivate query

Examples:

This range ensures that images inside it closely match the maximum width of 1024 pixels which is the width of the contained <div>:

<tml:range imagederivates="width~1024">

  <div style="max-width:1024">

    ... custom code here ...

  <div>

</tml:range>