Developer forum

Forum » Swift » Swift Navigation

Swift Navigation

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have set up a standard Swift installation and I am trying to use the Navigation column in the Header.

Although there is no specific filtering of the number of levels in the settings:

navigationSettings.StartLevel = 1;
    navigationSettings.StopLevel = 10;

It looks like the Navigation.cshtml template stops after the second level. There is no condition to display more than the first 2 levels of navigation.

Is this by design? If I need a navigation menu with a dropdown spanning across multiple levels (more than 2),  I will have to create a custom one?

Thank you,

Adrian


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Yes, this is by design.

Top navigation comes in 3 flavors

  1. Regular 1-level top navigation
  2. Dropdown in 2-level - one in top, second level in dropdown
  3. Megamenu in 3-level navigation.

UX wise we are not fan of dropdown in 3-levels as they perform badly from a user perpective and they have lots of problems on different device resolutions.

But it is easy for you to create one if you need it.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,
Thank you for the reply.

I know I can extend it myself, I just wanted to make sure that I don't have an outdated template.

The navigation setting for StopLevel level confused me. Now I know what I have to do

Thank you,
Adrian

 

You must be logged in to post in the forum