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
Templates
content/datatype/view/ezxmltags/embed-inline.tpl(andembed-inline_node.tplfor nodes) is the tag template.content/view/embed-inline.tplandnode/view/embed-inline.tpldraw the object; override them per class withSource=content/view/embed-inline.tpl.content.ini [embed-inline]holdsAvailableViewModes[],AvailableClasses[]andCustomAttributes[]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
alttext.
Related pages
- Embed view
- Rich text templates
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
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.