Piranha.core: How to create dropdown menu?

Created on 19 Sep 2019  路  3Comments  路  Source: PiranhaCMS/piranha.core

Hi I new piranha . I want to create dropdown menu. I have create multiple page under abroad study
and structure as shown in screenshot. When I hover over abroad study i want drop-down menu to be opened.At present abroad study is only appearing in navbar . Please let me know do is it supported or i have to customize code?
image

question

Most helpful comment

Hi ! A few days ago I had the same need as you.
I'm working on an example.
I hope this helps you!

piranhacmsMultiLevelMenu

Bests regards

All 3 comments

Hi there! I鈥檓 assuming that you鈥檝e started your project with one of the templates available as they only render the first level in the sitemap.

First off, Piranha is a headless CMS, meaning that the code you get from the template is just an example, just like when you create a new MVC application in Visual Studio.

Secondly, the sitemap used to render the menu in the template is a recursive structure. Each item has an Items property that holds the children and can be used to render a dropdown menu.

I鈥檒l try to provide an example for you 馃榿

Regards

Hi ! A few days ago I had the same need as you.
I'm working on an example.
I hope this helps you!

piranhacmsMultiLevelMenu

Bests regards

Thanks @mrccarvalho , it was very helpful to me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aneff-official picture aneff-official  路  3Comments

codesoroush picture codesoroush  路  6Comments

peppelorum picture peppelorum  路  3Comments

OmidID picture OmidID  路  3Comments

rengert picture rengert  路  3Comments