-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation and Breadcrumb #1
Comments
Can you elaborate on how you would like to determine what the "main" Component of a Page exactly is? Please note that currently these is no such concept in DXA. For so called localizable navigation, it currently looks for a configured field and uses the first available Component on the Page that has this information. See http://docs.sdl.com/LiveContent/content/en-US/SDL%20DXA-v2/GUID-1C757CEB-3773-4DAC-8A3F-68D8B2F02097 |
Hello Bart, |
Good find @luca, and you described this issue in great detail! I agree the Top Navigation should be component based. To add some more (technical) info to your descirption: All DXA navigation comes from the sitemap, published with the "_Navigation" page. The top navigation and a couple of nodes from the breadcrumb are coming from the structure group (SG) level in this navigation. The last node in the breadcrumb, the left navigation and page title are coming from the page level in the navigation. See this example navigation data used by DXA. https://gist.github.com/jhorsman/60dc0b13ca5ba8f5c51b The Title for the page level in the navigation is coming from the component fields. For example the "Cras vel justo semp" page (tcm:7-594-64). The difference between page and SG level is that for the SG the component fields are one level further away. For a page it is obvious which components are on the page, for a SG there needs to be a lookup of the index page, and fallback logic in case there is no index page. |
TSI-1950 (internal issue ID for tracking purposes) |
Top Navigation is currently built based on Structure Group Name:
• If a SG has the number it will be displayed in the Top Navigation
• Value displayed is the Name of the SG.
• Index pages do not require number (“000”) in order to be displayed in the Top Navigation; they are identified by using “index” as File Name.
This implies that
In the attached example:
Breadcrumb is built based on both Structure Group Name and Heading field of the component in the Page.
In the attached example:
Suggested updates:
This would make the logic to manage all Navigational items very consistent and easier for the editors and it would avoid Structure Group localization for translation purpose.
The text was updated successfully, but these errors were encountered: