Menu position rules allow my to create a new rule that is triggered by path, for example /node/7 and /node/8

But what if I would like to allow the content editor to make this choice - to provide the list of possible rules as a field, like creating entity reference between node/etc. and a menu position rule. Is this possible with any existing combination of modules?

What I was thinking is to create a new rule, not add any conditions it, just select the menu item it should trigger. Then create a custom field of some sort and populate all rules here. Then add that field to an entity and let the user select the rule they want. Field could be labeled as for example "Parent menu item".
When that entity is viewed, I would check if there's a rule selected in the entity and trigger that one.

How can I trigger the rule?

Comments

tormu created an issue.