Answer the question
In order to leave comments, you need to log in
How to make a different menu for pages?
In the sidebar on each page there is almost a different menu.. In the category menu gallery of this gallery, on the blog page, there are blog pages.. Also, the top menu is hierarchical and it just contains items from the sidebar menu. There was an idea to pull the menu for the sidebar from the top menu, but something still does not like this idea. So if you make a separate menu for the sidebar, you will also have to duplicate these items in the top menu. How do you generate these menus please tell me!
Answer the question
In order to leave comments, you need to log in
There should be just 1 data source that you can read from anywhere, from the sidebar or the main menu. Something like (JS example):
getBlogMenuItems() {
return [
{title: 'Bla1', link: '...'},
{title: 'Bla2', link: '...'},
];
}
And you will only have markup, but the data will be in one place
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question