Skip to content
shopdepot.dev

Reference

link

One link of a menu, with its submenu and an optional mega-menu panel.

View as Markdown

Generated from the platform code - always matches what the theme engine allows.

One link of a menu, with its submenu and an optional mega-menu panel.

Available on: settings that point at it.

Properties

Property Type Description
link.title string Link text.
link.url string Link address.
link.type string What the link points at - home, page, post, blog, product, category or url.
link.newTab boolean True when the merchant wants the link to open in a new tab.
link.active boolean True when the link is the current page.
link.childActive boolean True when the link or anything below it is the current page - highlight the top-level item.
link.links list of link The next level of the menu.
link.levels number How many link levels the panel holds - 1 is a plain dropdown, 2 or more are columns.
link.hasPanel boolean True when the link opens a panel on hover.
link.panel string Panel mode - links, html_links or html.
link.panelHtml string The merchant's own HTML for the panel, sanitised.
link.featured product or null An offer the merchant pinned to the panel.
link.category category or null The category of a category link.
link.hasChildren boolean True when there are subcategories, loaded or still to load.
link.childrenUrl string or null JSON with the next level (see the menu API).