Questions tagged [navigation]

141 questions
9
votes
4 answers

Custom or complex nav tag

Is it possible to build something like this with a structure and the {% nav %} tag?
6
votes
3 answers

Automatic in-page navigation plugin?

I'm writing some pretty huge articles consisting of multiple (80+) Matrix blocks of various types. They're so long they'd benefit from in-article navigation for skip-links. WordPress has a plugin called autogen_menu which creates linked navigation…
Matt Wilcox
  • 3,199
  • 1
  • 14
  • 28
3
votes
1 answer

Explanation of how to link to a structure from a structure

I've searched these boards and haven't been able to find the answer to my specific question. I'm working on building my navigation, and I want to build it in a structure. It will be a multi-level navigation, which is why it makes sense for a…
misteroptimist
  • 287
  • 2
  • 10
2
votes
2 answers

Question about breadcrumb links

I am using Craft only for the blog section of my HTML site. I have integrated my existing breadcrumbs to the blog, but there is a problem. When I am on the home page of the blog, the word "Blog" in the breadcrumb is linked, and I would rather it not…
Steve VH
  • 31
  • 3
2
votes
1 answer

Orderby writing sequence

I have this supersimple navigation:
    {% for entry in craft.entries.section('homepage, arbeiten, info, kontakt, shop') %}
  • {{ entry.title }}
  • {% endfor %}
Is it possible…
KSPR
  • 3,786
  • 2
  • 29
  • 52
2
votes
2 answers

Easy Nav Question

What I'm trying to do is to display child pages of a parent page. So far so good. {% if entry.parent %}

Mark H.
  • 391
  • 2
  • 15

2
votes
1 answer

Is it possible to filter with hasDescendants?

I'm building a navigation menu with 2 levels. I have a contact page with a subpage thank you, which is hidden. I hide pages from the menu using a lightswitch option and filter these pages out in my entries call. However I check if a page has…
Sean Delaney
  • 720
  • 6
  • 15
2
votes
2 answers

Get Level 1 entry on a section as Nav

I have a template which I want to use for different sections. In my template I have this code: {% set pages = craft.entries.section('catering').level(1) %}
    {% for page in pages %}
  • {{ page.getLink() }}
  • {% endfor %}
But I…
The Frog
  • 119
  • 11
1
vote
1 answer

Adding Navigation Menu

I am new to Craft.. I created the Entries but didn't understood how to setup them to display as a menu. Seen the documentation, templating references.. But not get any idea about how to add navigation menu for the entries type. I am using the…
D.M. Vamsi
  • 33
  • 1
  • 4
1
vote
1 answer

Dynamic navigation using a global

Hi guys does anyone know how I might go about creating a dynamic navigation using a global with the navigation items as fields, is this even possible?
Steve
  • 93
  • 9
1
vote
1 answer

Best way to provide navigation similar to wordpress

What is the recommended way to setup navigation, in a similar way to Wordpress? So that certain pages or channels can be added, and some may be excluded from the navigation. Also, what if I want to add a sub-navigation menu on a page to show the…
Adam
  • 135
  • 5
1
vote
1 answer

Migrating from Navee (Craft 2) to Verbb Navigation (Craft 3), updating templates

I am migrating a Craft 2 site to Craft 3 and as part of that need to migrate from the Navee plugin to the Verb Navigation plugin. The navigation data import worked fine (Thank you Verbb plugin!), but I am running into issues getting the navigation…
gstewart
  • 13
  • 2
1
vote
1 answer

Conditional statement for nav tag when no children

On the menu below I need to change the class on the li from dropdown-submenu to dropdown-item for those entries that don't have children. Any ideas? Thanks {% set pages = craft.entries.section('services') %} {% nav page in…
fodney
  • 193
  • 7
1
vote
1 answer

How to exclude a page from the navigation tree

I am looking for a way to exclude certain pages from the navigation. I know it must be quite easy, but nothing seems to work for me at the moment. So I've setup a lightswitch field "exclude from navigation" (cf_hideFromNav) Problem is that I want…
outline4
  • 595
  • 3
  • 14
1
vote
1 answer

a&m nav - activeNodeId

I have the following menu structure: as you can see, the Item "Clients" points to the same Url as its Child "Client Portfolio" does. Unfortunately this is not working for my submenu that should consist of the active menuitems childs: {% set…
Jan
  • 196
  • 9
1
2