Navigation: menu subitems from container?

Topics: Customizing Orchard, General
Developer
Jul 23, 2012 at 1:26 PM

I'd like to have the following or some similar navigation:

  • A menu item is a content item that has ContainerPart
  • The subitems under this menu item should be links to the content items contained by the top item

Is this possible with built-in features? I can't seem to find a way to query on the container id of content items (CommonPart.Container.Id) anyway, there can't bindings added to it, so no luck with query links.

Thanks in advance.

Coordinator
Jul 23, 2012 at 7:39 PM

If you have a projection filter that filters on container, then yes, that will work. Otherwise, you could go the custom way (see David Hayden's recent post on dynamic menu items).

Developer
Jul 23, 2012 at 10:25 PM

Thanks! It seems there's no built-in way to filter for container. I've implemented a Projector filter for this in the latest Helpful Libraries changeset.