Developer forum

Forum » Templates » Item types in navigation

Item types in navigation

Bo Dudek
Reply

Hi

We are using quite a lot of item types for a client. One of them is setup for the client to use to build mega-dropdown-menus with multiple columns. The idea is, that the client can select to have up to 3 columns in a dropdownmenu instead of a traditional dropdown menu. So we have created an item type and attached this to pages, so each time you edit a page you can enter values in Dropdown Column 1, Dropdown Column 2 and Dropdown Column 3 textareas. However, we need this to be a part of the navigation XML, as all defined megadropdown columns have to be available on all pages. 

As far as I can see the custom item type fields are NOT outputted in the navigation XML.

Suggestions?

Cheers
Bo Dudek
Webdeveloper
Mediegruppen


Replies

 
Morten Bengtson
Reply

You can use item based page properties, which will be available in the navigation XML.

 
Bo Dudek
Reply

This is exactly the setup I've made, but when I then output the XML for navigation using Management Center > Designer > Navigation-XML then the field values are not a part of the generated XML

Cheers
Bo Dudek
Webdeveloper
Mediegruppen

 
Bo Dudek
Reply

.. and be aware - I need to have the values of my fields outputtet for all pages in my menu, as I need it to output multiple mega-dropdowns. It is NOT usable if it's only outputtet in the node PAGEVIEW. I guess I need the values to be attributes down in the PAGE nodes.

Cheers
Bo Dudek
Webdeveloper
Mediegruppen

 
Nicolai Høeg Pedersen
Reply

Hi Bo

They are available in the page nodes, but not if you are using Ecommerce navigation....?

Nicolai

 
Bo Dudek
Reply

Hi Nicolai

I'm not using eCom navigation - just ordinary page navigation. I've triple checked and I can see and edit my fields for each page using propertites in navigation, and the values are saved correctly. If I then preview the XML without attaching a XSLT file using Management Center > Designer > Navigation-XML (on the correct website, yes), then the fields are not shown in the outputted XML. 

Cheers
Bo Dudek
Webdeveloper
Mediegruppen

 
Nicolai Høeg Pedersen
Reply

Hi Bo

Can I ask which version you are using?

Try using savexml=true in your querystring on the page - that will create an XML file next to your XSLT with the data.

Nicolai

 
Bo Dudek
Reply

Hi Nicolai

Have a look at the generated XML here
http://www.abena.com/Files/Templates/Navigation/2014_menu_2014_menu.xml

.. and at a screendump from the DW here
http://cl.ly/image/23440v0y0O0a

.. and the version is Dynamicweb.dll 8.6.0.3

Cheers
Bo Dudek
Webdeveloper
Mediegruppen

 
Jonas Mersholm
Reply

Hi Bo,

Did you find a solution for this? I do not see the item properties outputted in the SaveXml either.

 

Best,

Jonas

 

You must be logged in to post in the forum