Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Navigation attribute InPath is always false on catalog pages.

Navigation attribute InPath is always false on catalog pages.

Simon Nordahl
Simon Nordahl
Reply

Hi 

I've been having issues with rendering the breadcrumb when standing in an ecom catalog.

The root of the problem seems to be that Inpath attribute is not correctly sat on productgroups.

For instance, my current url is http://localhost:26248/shop/kameraer/canon, where "kameraer" and "canon" are productgroups, but my inpath is still false for kameraer and canon.:

<Page SmallImage="" LargeImage="" Icon="" GroupNumber="5000" ProductCount="0" MenuText="Kameraer" MouseOver="" Image="/Files/Images/Ecom/default.jpg" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;GroupID=5000-at-SHOP1" FriendlyHref="/shop/kameraer" Title="Shop" RelativeLevel="2" Sort="1" LastInLevel="True" ChildCount="4" class="L2" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="2" Type="group">
<Page SmallImage="" LargeImage="" Icon="" GroupNumber="5100" ProductCount="0" MenuText="Canon" MouseOver="" Image="/Files/Images/Ecom/default.jpg" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;GroupID=5100-at-SHOP1" FriendlyHref="/shop/kameraer/canon" Title="Shop" RelativeLevel="3" Sort="1" LastInLevel="True" ChildCount="0" class="L3" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="3" Type="group"/>
<Page SmallImage="" LargeImage="" Icon="" GroupNumber="5200" ProductCount="0" MenuText="Nikon" MouseOver="" Image="/Files/Images/Ecom/default.jpg" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;GroupID=5200-at-SHOP1" FriendlyHref="/shop/kameraer/nikon" Title="Shop" RelativeLevel="3" Sort="1" LastInLevel="True" ChildCount="0" class="L3" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="3" Type="group"/>
<Page SmallImage="" LargeImage="" Icon="" GroupNumber="5300" ProductCount="0" MenuText="Fuji" MouseOver="" Image="/Files/Images/Ecom/default.jpg" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;GroupID=5300-at-SHOP1" FriendlyHref="/shop/kameraer/fuji" Title="Shop" RelativeLevel="3" Sort="1" LastInLevel="True" ChildCount="0" class="L3" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="3" Type="group"/>
<Page SmallImage="" LargeImage="" Icon="" GroupNumber="5400" ProductCount="0" MenuText="Leica" MouseOver="" Image="/Files/Images/Ecom/default.jpg" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;GroupID=5400-at-SHOP1" FriendlyHref="/shop/kameraer/leica" Title="Shop" RelativeLevel="3" Sort="1" LastInLevel="True" ChildCount="0" class="L3" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="3" Type="group"/>
</Page>

I've attached the full navigation xml.

Looking farward to hear from you.

 

 

 


Replies

 
Morten Buhl Dynamicweb Employee
Morten Buhl
Reply

Hi Simon

Inpath is only set to true if you have a product catalog on the page and no display page has been selected in page properties ecom navigation

/Morten Buhl, DW

 
Simon Nordahl
Simon Nordahl
Reply

Please elaborate, there is a product catalog on the page and there is no display page sat.

 
Simon Nordahl
Simon Nordahl
Reply

*Bumps for attention*

 
Nicolai Pedersen
Reply

Hi Simon

I get it set (see my attachment for settings and output).

I think you are missing the page where the products should be shown - otherwise the navigation cannot figure out if they are inpath or not... Since you could publish the same navigation items many times. (So Morten is missing a not in his sentence)

BR Nicolai

Capture.PNG Capture1.PNG
 
Simon Nordahl
Simon Nordahl
Reply

The thing is the inpath are working fine when you are standing on a product detail page.

However when you are standing on a productlist and navigated to a group it does not work.

The url shows that we are under shop/kameraer/nikon, however that is not reflected in the breadcrumb all because inpath is false.

Here's a produktpage from the Nikon group. 

We're still on shop/kameraer/nikon, however now we're on a product page, so now inpath is working just fine.

 

 

I've matched the settings from our 8.9 solutions where it works just fine, but I can't get it to work on 9.2.8

 

 
Simon Nordahl
Simon Nordahl
Reply

This issue is still not resolved...

 
Nicolai Pedersen
Reply

Did you get any further with this?

I cannot reproduce it, so I would have to see the solution...

BR Nicolai

 
Simon Nordahl
Simon Nordahl
Reply

Sadly no, the solution is available here:  http://dw9.accelerator.norriq.com/

To recap: 

When I'm visisting the page: http://dw9.accelerator.norriq.com/shop/objektiver/canon am I expecting Inpath to be equals true for "/shop/objektiver/canon", however thats not the case:

 

<Page SmallImage="" LargeImage="" Icon="" GroupNumber="1100" ProductCount="0" MenuText="Canon" MouseOver="" Image="/Files/Images/Ecom/default.jpg" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;GroupID=1100-at-SHOP1" FriendlyHref="/shop/objektiver/canon" Title="Shop" RelativeLevel="3" Sort="1" LastInLevel="True" ChildCount="9" class="L3" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="3" Type="group">
<Page MenuText="CANON EF 8-15 MM NY 4.0L FISHEYE USM" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="False" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;ProductID=1100-at-SHOP1" FriendlyHref="/shop/canon-ef-8-15-mm-ny-4-0l-fisheye-usm" Title="Shop" RelativeLevel="4" Sort="1" LastInLevel="True" ChildCount="0" class="L4" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="4" Type="product"/>
<Page MenuText="CANON EF 11-24 MM 4,0L USM" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="False" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;ProductID=1101-at-SHOP1" FriendlyHref="/shop/canon-ef-11-24-mm-4-0l-usm" Title="Shop" RelativeLevel="4" Sort="1" LastInLevel="True" ChildCount="0" class="L4" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="4" Type="product"/>
<Page MenuText="CANON EF 14 MM/2.8L II USM" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="False" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;ProductID=1102-at-SHOP1" FriendlyHref="/shop/canon-ef-14-mm-2-8l-ii-usm" Title="Shop" RelativeLevel="4" Sort="1" LastInLevel="True" ChildCount="0" class="L4" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="4" Type="product"/>
<Page MenuText="CANON EF 16-35 MM 4.0L IS USM Ø77" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="False" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;ProductID=1103-at-SHOP1" FriendlyHref="/shop/canon-ef-16-35-mm-4-0l-is-usm-oe77" Title="Shop" RelativeLevel="4" Sort="1" LastInLevel="True" ChildCount="0" class="L4" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="4" Type="product"/>
<Page MenuText="CANON EF 16-35 MM II 2.8L USM Ø82 " MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="False" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;ProductID=1104-at-SHOP1" FriendlyHref="/shop/canon-ef-16-35-mm-ii-2-8l-usm-oe82" Title="Shop" RelativeLevel="4" Sort="1" LastInLevel="True" ChildCount="0" class="L4" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="4" Type="product"/>
<Page MenuText="CANON EF 17-40 MM 4,0 L USM Ø77" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="False" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;ProductID=1105-at-SHOP1" FriendlyHref="/shop/canon-ef-17-40-mm-4-0-l-usm-oe77" Title="Shop" RelativeLevel="4" Sort="1" LastInLevel="True" ChildCount="0" class="L4" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="4" Type="product"/>
<Page MenuText="CANON EF 24 MM 1.4 L II USM Ø77 " MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="False" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;ProductID=1106-at-SHOP1" FriendlyHref="/shop/canon-ef-24-mm-1-4-l-ii-usm-oe77" Title="Shop" RelativeLevel="4" Sort="1" LastInLevel="True" ChildCount="0" class="L4" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="4" Type="product"/>
<Page MenuText="CANON EF 24-70 MM 2.8L II USM Ø82 " MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="False" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;ProductID=1107-at-SHOP1" FriendlyHref="/shop/canon-ef-24-70-mm-2-8l-ii-usm-oe82" Title="Shop" RelativeLevel="4" Sort="1" LastInLevel="True" ChildCount="0" class="L4" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="4" Type="product"/>
<Page MenuText="CANON EF 28 MM. 2.8 IS USM Ø58" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="False" ShowInSitemap="True" ShowInLegend="False" Href="Default.aspx?ID=2&amp;ProductID=1108-at-SHOP1" FriendlyHref="/shop/canon-ef-28-mm-2-8-is-usm-oe58" Title="Shop" RelativeLevel="4" Sort="1" LastInLevel="True" ChildCount="0" class="L4" NavigationTag="" ID="2" AreaID="1" InPath="False" Active="False" AbsoluteLevel="4" Type="product"/>
</Page>

 

 

 

 

 
Heine Virenfeldt Kristensen
Heine Virenfeldt Kristensen
Reply

The problem with InPath on Ecom groups, comes when we are using the new viewmodels.

RazorTemplateModel.png ViewModelTemplate.png
 
Heine Virenfeldt Kristensen
Heine Virenfeldt Kristensen
Reply

Hi Nicolai

It fails when using templates with your new viewmodels

 

You must be logged in to post in the forum