← API Index · How to use components
path component #oo-path
This component shows the path of the currently selected level or item within the shop's menu tree (breadcrumb). It re-renders whenever the shop component changes its navigation level; each path element leads back to that level.
How components are mounted, how switch values are resolved and how debug output is enabled is described in the use-js-components skill.
<div id="oo-path" data-oo-shop-page="shop.html"></div>
...
<div id="oo-shop"></div>
component switches
| Switch | Default | Description |
|---|---|---|
oo-shop-page |
– | Page hosting the main shop component. Clicks lead to it; if not provided, the current page is not left. |
oo-path-omit-group |
false |
true: a click on a path element jumps directly to the first subgroup of that level (if any exist). Useful when a left column navigation is used. |
oo-qpnav |
true |
false appends the navigation level to the URL path of the rendered links instead of using a query parameter (needs a rewrite setup). Formerly oo-hashurls. |
debug options
Debug scope path (enable with data-oo-debug="true" on the element or debug:path:all+, see the skill):
| Term | Description |
|---|---|
path:all |
Resolved switches, incoming shop changes and the rendered path. |
Design tips
- Each path element carries a class
oo-path-tpl-<n>withn= 0..7 representing the navigation depth. - Most tips of the last component apply here too, as both are very similar.