OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

Taxonomy links incorrectly injecting menus #4942

Open orchardbot opened 9 years ago

orchardbot commented 9 years ago

mbendary created: https://orchard.codeplex.com/workitem/21113

Hello,

I am using release 1.8.1. I created two taxonomies: Products and Services. Each has two items as child nodes. After creating a taxonomy link from each taxonomy, running the application renders items of both Products and Services under the Products menu with nothing under the Services menu.

The problem is that both Products and Services menu items have their Position data member set to 2 (1 is the HomePage). What should happen for the hierarchy to be built correctly is for Products to be at Position 2 and Services to be at Position 3.

It is not clear to me where in the code the content item used to generate the menu items is getting its position set. By the time DefaultMenuProider.GetMenu(IContent, NavigationBuilder) is called, a Query to the _contentManager returns menuParts with their positions already set.

Any hints to help fix this issue are appreciated.

Best Regards, Mohamed

orchardbot commented 9 years ago

mbendary commented:

This was a user error. Please disregard. I was missing a Save All.

Best Regards, Mohamed