verbb / navigation

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

Entries Subsets (Selectable Entries Condition) #390

Open smockensturm opened 4 months ago

smockensturm commented 4 months ago

What are you trying to do?

I would like to see expanded criteria in the entries selection field. a la

https://github.com/nfourtythree/entriessubset/blob/main/README.md

or Craft 4 "Selectable Entries Condition" rules

What's your proposed solution?

I would look at the Entries Subset code (or Craft 4?) and try to integrate it into your Navigation entries field critreria.

Additional context

If you cannot do this, perhaps point me to where I can do this myself on a fork. Thanks

engram-design commented 4 months ago

We're not going to add support for the Entries Subset plugin for picking an Entry element for navigation - sorry to say. I've not actually used that plugin, but from the looks of things, that's superseded by conditions.

You could certainly make your own custom Node type to allow this (and remove our default Entry node one) by changing the criteria of the element select field which controls what you can pick.

But otherwise, the Craft.createElementSelectorModal JS function isn't configurable, and maybe it should be.