Project

Contents

Issue #00005363

Use primary file if <tml:image> has no file attribute
Feature/Improvement

Currently either attribute "file" or attribute "item" is mandatory for <tml:image>.

We changed this and render the primary file of the current content or the first attachment of the content if no file is specified (via file or item).

<tml:image/>

This renders the primary file (or first file) if present or nothing if not.


In addition we fixed an issue when <tml:image wrap="..."> is used with (deprecated) body content (for <img> element attributes) together with tml wrap attribute.