items


itemsArray<Item>

Sets or gets breadcrumbs items.

Setting the items property sets the items for a breadcrumbs element.

Set items to an empty array ([]) to remove all breadcrumbs items.

Getting the items property returns breadcrumbs items that have been set using code. If no items have been set using code, your site generates a default items array based on your home page, the site visitor's location, and the organization of your site's pages including any menu folders you have added to your site.

Properties that don't have a value are omitted from the returned array.

You can't modify the items array in-place. To add, change, or remove individual breadcrumbs items:

  1. Store the value of the items property in a variable.
  2. Make changes to the variable's array of items.
  3. Reset the items property with the variable's modified array.
Was this helpful?
Yes
No