VirtusLab-Open-Source / strapi-plugin-navigation

A plugin for Strapi Headless CMS that provides navigation / menu builder feature with their possibility to control the audience and different output structure renderers like (flat, tree and RFR - ready for handling by Redux First Router)
MIT License
318 stars 58 forks source link

Question - Why No Duplicate Menu Items #391

Open marcodeluca opened 1 year ago

marcodeluca commented 1 year ago

I need to add menu items for the same internal content entry and the component does not allow this. I'm assuming this is intentional? I do not see any setting to enable duplicate menu items.

Is there a reason why you are enforcing this? There are multiple business use cases that this is necessary. A work around would be allowing custom links without enforcing the http, for example allowing /my-path/my-page but this is not possible either.

Am i missing an option to allow this?

Adaphath commented 12 months ago

+1 I don't understand the necessity either. Is it needed for internal functionality?

CodeVoyager commented 12 months ago

Hi @marcodeluca and @Adaphath

Current one entity limit per navigation is a left-over from previous Strapi version. There was relation persistence issue when the same entity was used in multiple navigation items.

There's a plan to remove this limitation in near future. At the moment I cannot say for sure when this will happen.

xmak commented 5 months ago

We have several clients that have a complex navigation tree and need to have different navigation items linking to the same page, for organizational and marketing reasons.

This is a much-needed feature, which for now we have circumvented by creating a new content type "Nav Item" that has a Realation field to choose a page, then in the navigation we link to this content type instead of to the page directly. It works, but it's cumbersome and bad practice to have a content type just to circumvent the lack of this feature.

Please allow linking to the same page from different navigation items it's truly needed in real-life situations.

olivierneo commented 4 months ago

Same problem here, a non user friendly solution : use the external url.

fernandezremi commented 3 months ago

Do you have any news about this feature request? We need to link different menu items to the same page without bypassing the problem!

cyp3rius commented 3 months ago

As for now the only solution is as @olivierneo provided. Because of heavy refactoring for v5, we're no longer working on feature requests to v4 as per release notes for 2.5.0

Badlapje commented 1 day ago

Personally i use the wrapper item and then enter the url manually