Breadcrumbs
This page is for designers who show "where am I" above the content. The path is already in $module_result.path;
the breadcrumb template turns it into links.

Contents
Markup
A labeled navigation landmark with an ordered list; the current page last, marked with aria-current and not linked:
<nav class="breadcrumbs" aria-label="Breadcrumb">
<ol>
<li><a href="/">Home</a></li>
<li><a href="/news">News</a></li>
<li aria-current="page">An article</li>
</ol>
</nav>Separators come from CSS (li + li::before), so screen readers do not read them.
The template
{* pagelayout/breadcrumbs.tpl *}
if and( is_array( $module_result.path ), $module_result.path|count|gt( 1 ) )
<nav class="breadcrumbs" aria-label="'Breadcrumb'|i18n( 'design/mytheme' )">
<ol>
foreach $module_result.path as $step
if $step.url
<li><a href=first_set( $step.url_alias, $step.url )|ezurl>$step.text|wash</a></li>
else
<li aria-current="page">$step.text|wash</li>
/if
/foreach
</ol>
</nav>
/ifurl_alias gives the readable address; url is the system URL (/content/view/full/<id>) and the fallback.
Skipping the root
The first entry of a content path is the top of the tree. The media design leaves out the shared root (depth 1) and
builds its own path_array of text/url pairs in the pagelayout; with the starter design, the large-header classes
(the front page) show no breadcrumb at all. Choose what suits the site: usually "Home" first, linked to '/'|ezurl.
In the shipped designs
- media:
pagelayout/breadcrumbs.tpl, fed by the$path_arraythe pagelayout builds. - starter:
pagelayout/breadcrumbs.tpl, drawn as a template block in its chrome layout. - ezwebin:
page_toppath.tpl. - admin4: an
ol.a4-crumbswitharia-current="page"inside the#pathnavigation landmark.
Related pages
- Module result and content info
- Landmarks and headings
- 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.