Developer forum

Forum » CMS - Standard features » breadcrumb xslt dwnavigation missing showinlegend items in xml

breadcrumb xslt dwnavigation missing showinlegend items in xml

Remi Muller
Reply

I am having trouble rendering a proper breadcrumb.

In the site there pages which are hidden from the menu but should be visible in the breadcrumb. I am using the dwnavigation settings expandmode pathonly.

From the attribute @ShowInLegend i can determine if it should be visible. But when a page element is hidden from the menu the element is removed from the xml but i need it for my breadcrumb.

Is it possible to have the menu items in the xml when hide from menu is used? An attribute ShowInMenu on the page element would solve this.

 


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Remi

 

If you have a VERY new Dynamicweb 8.2.2 you can use a setting called "sitemapmode:true" on your navigation - that should solve your issue.

 

BR Nicolai

Votes for this answer: 1
 
Remi Muller
Reply

Ok thanks. I can work with that.

I think a breadcrumbmode could also be needed. The sitemap can differ from the breadcrumb. Maybe not likely but possible.

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Try this setting:

includemode:all

 

It includes all nodes no matter if they are not marked for Include, ShowInLegend and ShowInSitemap.

Also very new, and not documented yet (in beta)

 

BR Nicolai

Votes for this answer: 1
 
Remi Muller
Reply

Cool that would solve all variations :)

 
Remi Muller
Reply

Am i correct that you ment that includemode:all (adds all attributes) works in addition to sitemapmode:true?

Then a breadcrumbmode or legendmode would still be prefered.

For now i will be using the sitemapmode + expandmode=pathonly to generate a legend. The page has to be in the sitemap then.

 

 
Jacob Storgaard Jensen
Reply

I doesn't seem to include all nodes... I've got this cookies page, which I don't want in the menu and in the sitemap - But I would like it in my legend...

I've checked "Hide in menu", "Show in breadcrumb trail" - "Show in sitemap" is not checked.

I use these settings: includemode:all;startlevel:1;expandmode:all;template:breadcrumb.xslt;

 

But when running ?savexml=true the cookies page is nowhere to be found...

(Running 8.3.1.7)

 

 
Mikkel Ricky
Reply

You need to add "sitemapmode:true" to the settings as well (cf. http://developer.dynamicweb-cms.com/releases/all-new-features-in-8-x.aspx#item11524).

 

 

You must be logged in to post in the forum