verbb / navigation

A Craft CMS plugin to create navigation menus for your site.
Other
90 stars 23 forks source link

Configure custom URL presets #353

Open robinbisping opened 1 year ago

robinbisping commented 1 year ago

What are you trying to do?

If a site contains custom routes that are not represented as elements, one can currently only add them to a navigation as custom URLs. This works, of course, but sometimes users are unaware of what custom routes exist. Hence, it would be helpful to be able to add them as selectable nodes.

What's your proposed solution?

I propose adding a custom URL presets configuration for each navigation. The configured custom URLs can then be selected within the node selection GUI.

Additional context

No response

engram-design commented 1 year ago

An interesting idea! I'll consider whether this should be bundled with the Custom URL node type (as presets), or it's own, separate node type.

robinbisping commented 1 year ago

Good point. Adding a seperate "routes" node type might be cleaner.

engram-design commented 1 year ago

I may not call it "routes" just to ensure people don't think it refers to automatically pulling in Craft's routes (Settings > Routes), but good idea nonetheless.