# Linklist

Linklist objects are called "menus" on the navigation page of the shop admin.

Linklist objects are called "menus" on the navigation page of the shop admin.

The `linklist` object has the following attributes:

## linklist.handle

Returns the [handle](https://developer.versacommerce.de/articles/liquid-basics-handle) of the linklist.

## linklist.levels

Returns the number of nested levels a linklist contains.

Take this main menu structure:

```text
Main menu
  └ Home
  └ About us
    └ Locations
      └ Luebeck
      └ Hannover
```

This Liquid code:

```liquid
{% assign menu = linklists.main-menu %}
{{ menu.title }}: {{ menu.levels }}
```

returns this output:

```text
Main menu: 3
```

## linklist.links

Returns an array of the [links](https://developer.versacommerce.de/articles/liquid-objects-link) in the linklist.

```liquid
{% for link in linklists.main-menu.links %}
  {{ link.url }}
{% endfor %}
```

```html
/
/collections/all
/blogs/news
/pages/about-us
```

## linklist.title

Returns the title of the linklist.
