Hi there,
Is there any way of keeping navigation references (menu context) when adding Existing Pages to the navigation?
Here is my scenario / what I am trying to accomplish:
My site has the following structure:
> Company > > About Us > > History > > Contacts > Business Unit A > > About Us (existing Company > About Us) > > Services > Business Unit B > > About Us (existing Company > About Us) > > Services > > Some other page
Now, in the layout I have always 2 menus: Top - with First Level Navigation (Company | Business Unit A | Business Unit B) - DDR [*,0,0] Context - DDR for the pages 2nd and 3rd Level - DDR [+0,0,2]
So, the top navigation works as expected and the context navigation shows structure as desired.
My issue is that when I click on any of the Business Area's "About Us", I get redirected to the About Us page below the Company Menu. So, this way I am losing the navigation context.
The behaviour I am looking for is to keep the user in the page as if it really existed instead of being redirected. My goal is to reuse some of the pages in the site (the real structure is much more complex) throughout its structure but keeping the navigation context somehow coherent with what is defined in the menu structure.
Does anyone have any clue if this is possible? Help is really appreciated.
Thanks!
There seems to be something "wrong" with the links in the "Context" menu. Please check the Urls of the pages and how they are created in the menu.
Another way to accomplish this could be a module that displays the subpages of a given page (defined in the module settings) - afair the old DNN.Links module should do that, or the Console module that is delivered with DNN, or Ventrian Child-Links.
Happy DNNing! Michael
Michael TobischDNN★MVP
Hi Michael, thanks for the reply.
After digging a little deeper, I think that what I am trying to do is not possible in DNN. Even when I add a static (html) link to the Page (link) – “/Business Area B/About Us” - I am always redirected (301) to “/Company/About Us”. Because this is what the system is programmed to do.
So after being redirected we lose the context that I was trying to keep – I am no longer on some child page below Business Area A, where we saw and clicked on “About Us”.
I guess we will have to live with this, or replicate each page that we want to appear in multiple parts of the site and keep the context menus coherent.
What I first thought would be interesting, was if by clicking on a tab that is a link to another existing tab, that the system, behind the scenes, would handle this correctly showing the context and modules as if the selected tab was the linked one.
Anyway, if someone has any alternative approach to what I am trying to accomplish here, I would appreciate it!
Thanks! Miguel
Posted By Miguel Vaz on 01 Jun 2021 05:56 AM Hi there, Is there any way of keeping navigation references (menu context) when adding Existing Pages to the navigation? Here is my scenario / what I am trying to accomplish: My site has the following structure: > Company > > About Us > > History > > Contacts > Business Unit A > > About Us (existing Company > About Us) > > Services > Business Unit B > > About Us (existing Company > About Us) > > Services > > Some other page Now, in the layout I have always 2 menus: Top - with First Level Navigation (Company | Business Unit A | Business Unit B) - DDR [*,0,0] Context - DDR for the pages 2nd and 3rd Level - DDR [+0,0,2] So, the top navigation works as expected and the context navigation shows structure as desired. My issue is that when I click on any of the Business Area's "About Us", I get redirected to the About Us page below the Company Menu. So, this way I am losing the navigation context. The behaviour I am looking for is to keep the user in the page as if it really existed instead of being redirected. My goal is to reuse some of the pages in the site (the real structure is much more complex) throughout its structure but keeping the navigation context somehow coherent with what is defined in the menu structure. Does anyone have any clue if this is possible? Help is really appreciated. Thanks!
So If I inderstand correctly you want the "Company > About Us" page top be the same as the "Businessunit A > About Us" page, but keep the navigation on Businessunit A ? In that case you canoot use a redirect as that will always take you a "the other part of the site" (which is what a redirect is made for). I think are better off placing the same modules on both "About Us" pages by using place exising module with [ ] Copy unchecked. In that case editing a module on Page A will also reflect on Page B.
Thanks Sebastian and Timo,
I will use your solution of creating new pages and reusing the existing modules / content.
Cheers! Miguel
PS: Thanks to you all that keep this forums and community alive and spare the time to answer our dummy questions :) I see that most of the topics are answered the same guys! Really appreciate your efforts!
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.