Fetches one or more items by ID and renders a template against each of them. It is the core cross-slice lookup: read a field from a known item, or expand a small per-item template, without building a full view. Often paired with the ids command, which returns a dash-separated list of item IDs to feed in.
The content template is expanded in the context of each matched item, so reference the target item fields with that item aliases (such as _#HEADLINE). A plain field-getter inside content reads the surrounding item, not the fetched one.
When several IDs are given, the delimiter is placed between the per-item results. The delimiter also accepts two format modes: json returns a JSON object keyed by item ID, and jsonasoc reads each result as key to value and returns a JSON object. Empty per-item results are dropped before joining.
Only ACTIVE items are searched by default; the bin parameter widens this to HOLDING or TRASH. Tree notation with parentheses (with the top and bottom wrappers) renders nested structures such as breadcrumbs. An empty ID list returns an empty string. Parameters are not trimmed, so spaces in the delimiter are kept. Source: AA_Stringexpand_Item in stringexpand.php.
ids requiredOne or more item IDs in short (16-char) or long (32-char) hex form, joined by dashes. Tree notation with parentheses is also accepted for hierarchical output, for example 3234(3443-3678)-4045. An empty value yields an empty result.
content optionalThe template expanded against each matched item. Reference the target item's fields with its aliases, for example _#HEADLINE - a plain field-getter would read the surrounding item, not the target. Empty content yields empty output per item.
delimiter optionalPlaced between the per-item results when several IDs are given. Two special values change the output format instead: json returns a JSON object keyed by item ID, jsonasoc reads each result as key->value and returns a JSON object.
top optionalUsed only with tree notation. Printed before the children of each nested level (the opening wrapper of a subtree). Ignored for a plain dash-separated ID list.
bottom optionalUsed only with tree notation. Printed after the children of each nested level (the closing wrapper of a subtree). Ignored for a plain dash-separated ID list.
bin optional default ACTIVEWhich item bins to search, dash-separated: ACTIVE, HOLDING, TRASH. Default is ACTIVE only, so holding or trashed items are invisible unless named here. Pending and expired items are not reachable.
{item:5726c2c6b035d7aab450d1794e9e90d7:_#HEADLINE}
{item:5726c2c6b035d7aab450d1794e9e90d7:_#NUMBER__}
{item:4f3362a62847fe1f8c59ba28a92d42c0-5726c2c6b035d7aab450d1794e9e90d7-ae1da231f3e5bc16496834a0711aa042:_#HEADLINE:, }
{item:5726c2c6b035d7aab450d1794e9e90d7:_#HEADLINE = _#NUMBER__}
{item:4f3362a62847fe1f8c59ba28a92d42c0-5726c2c6b035d7aab450d1794e9e90d7-ae1da231f3e5bc16496834a0711aa042:_#HEADLINE:json}
{item:5726c2c6b035d7aab450d1794e9e90d7-4f3362a62847fe1f8c59ba28a92d42c0:_#HEADLINE->_#NUMBER__:jsonasoc}
{item:5726c2c6b035d7aab450d1794e9e90d7(4f3362a62847fe1f8c59ba28a92d42c0-ae1da231f3e5bc16496834a0711aa042):_#HEADLINE:, :[:]}
{item:5726c2c6b035d7aab450d1794e9e90d7:_#HEADLINE::::ACTIVE-HOLDING}