Search code examples
orchardcmsorchardcms-1.6

Displaying one content item at two different URLs


Our navigation looks like this:

Item1    Item2    Item3
-Sub1    -Sub3    -Sub4
-Sub2    -Sub2    -Sub5

As you can see, Sub2 is repeated under Item1 and Item2.

On each page (Sub*), we have side navigation (added using Widget Layer Rules) that shows the entire navigation under the main-menu item. So, if you're on Sub1, you would see Sub1 and Sub2 on the side nav.

The problem is that we want to show the right side nav for Sub2 based on the menu item through which the user accesses the page. We could create a new Widget Layer based on the URL, but we would still need to be able to display the page at two different URLs. We don't want to replicate the page, since that wouldn't scale very well for maintaining these pages. Is there a way to display one content item at two URLs, or is this something that needs to be built custom?


Solution

  • If you go to the Modules page and enable the Alias UI feature, you can add aliases for routes within your application. This is probably what you are looking for.