Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Embed inline view

Objects embedded inside a line of rich text: the embed-inline tag and view mode, its templates, keeping the output inline (no block elements), and typical uses such as small icons, links to files and inline mentions.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/templates/embed-inline-view.md

On this page

Embed inline view

This page is for designers who style objects embedded inside a sentence of rich text, not as a block. The tag embed-inline uses the view mode of the same name.

Contents

  1. Templates
  2. Stay inline
  3. Typical uses

Templates

  • content/datatype/view/ezxmltags/embed-inline.tpl (and embed-inline_node.tpl for nodes) is the tag template.
  • content/view/embed-inline.tpl and node/view/embed-inline.tpl draw the object; override them per class with Source=content/view/embed-inline.tpl.
  • content.ini [embed-inline] holds AvailableViewModes[], AvailableClasses[] and CustomAttributes[] for the editor.

Stay inline

The output goes inside a paragraph, so it must contain only inline elements: <a>, <span>, <img>, <abbr>. A <div> or <figure> would break the paragraph (browsers close it before the block).

{* override/templates/embed-inline/file.tpl *}
<span class="inline-file">{attribute_view_gui attribute=$object.data_map.file}</span>

The shipped content/datatype/view/ezbinaryfile.tpl prints an inline download link with the file name and size (content/download/<object>/<attribute>/version/<version>/file/<name>), so it can be reused here as it is.

Typical uses

  • A small linked name of another article.
  • A file link with its type.
  • A tiny image (an icon or a flag) with alt text.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x