These are not included features and would require hand edits to get working. I would be interested in researching this requirement more with you if you have the time.
Do you have a sample of what the resulting menu might look like with a url so I can see. If not maybe you could send me an email directly and we could set up a phone conversation. I'd like to research whether we might want to consider tackling these scenarios in a future version if they are hard to add now. Really I'm not sure that I fully understand, so I'd appreciate if we could go through some examples to demonstrate what it is you need.