3

I am using DXA Web Application in java I have internal pages that are published and accessible via links on the home page. They are not published as part of the Navigation model. Is there a way to use the existing Navigation Action to resolve breadcrumb links for these pages. If not, I have created a custom Navigation Controller and resolving the links in handleGetNavigation().

2

All pages in the CMS are published as part of the navigation JSON, even if they are not 'visible' in the main navigation (prefixed with a number). As such it should be possible to build a breadcrumb for them (this is how it works in the .NET version at least), if not it sounds like a bug.

UPDATE: As you point out in the comment, an underscore can be added to prevent the item from being in the navigation JSON - I forgot about that. This prefix is really intended for system pages which are not displayed to the site visitor, so its not really intended for content pages, as you use it.

| improve this answer | |
  • The structure group or pages that I use as link have "_" prefixed to its name and so I guess they are not included in the Navigation model – Rache Nov 5 '15 at 8:53
  • Can you not just remove the _? – Will Price Nov 5 '15 at 9:16
  • No these pages should not appear in the navigation menu. – Rache Nov 5 '15 at 9:55
  • I have followed the below statement for displaying pages on navigation.So even though my page has no numbers prefixed and no '' prefixed, these were shown in navigation structure. "A naming convention is used to hide or display Pages in the navigation: sections that use a numeric prefix consisting of 3 numbers, for example 010 Articles, are displayed, sections that omit the prefix are displayed only in the breadcrumb, and sections prefixed with a underscore () are not visible in the navigation structure. " – Rache Nov 5 '15 at 11:45
  • Right, but isnt that exactly what you want, it to display in the breadcrumb but not the navigation? That is what a non numeric, non-underscore prefix will do... If its still showing in the navigation without the numeric prefix - its a bug – Will Price Nov 5 '15 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.