Is there an easy way to list items in the navigation or am I forced to extend the NavigationProvider and implement the navigation with a custom module?
Developer forum
E-mail notifications
List items in navigation

Replies

Paged based on items appear in the navigation just as regular pages, and using the ItemType attribute of the Page elements in the XML navigation you can handle item based pages in a special way if need be:
<Page ID="42" AreaID="1" ... ItemType="CustomPage" ... />
Do you need something else?
Best regards,
Mikkel

Hi Mikkel,
I have an ItemType based Page in navigation and the XML doeas not include the ItemType related fields (ItemType, ItemID, ItemOrder). Do I need to activate them somehow?
I am using 8.4.1.8.
Thanks,
Adrian

I've just tested this on Dynamicweb 8.4.1.8 and I have the ItemType attribute on the Page elements in the navigation xml (it has been there since Dynamicweb 8.3). You don't have to do anything to include it. Do you have a solution we can take a look at to see the issue? (Send me an email if you prefer to not share the url here.)
By the way, only ItemType is included in the xml, i.e. not ItemId and ItemOrder, as the navigation xml is meant for generation menus, and for this you only need the page url (@Href) and can use @ItemType to style item based items depending on item type.
Best regards,
Mikkel

This is a bug (#15335) in the generation of navigation xml. When the navigation tree includes a page with eCom groups attached, some attributes, including but not limited to ItemType, are removed from the navigation xml.
Best regards,
Mikkel
You must be logged in to post in the forum