Developer forum

Forum » Feature requests » ItemType Properties in Navigation XML

ItemType Properties in Navigation XML

Adrian Ursu
Reply

Hi,

 

It would be nice to have properties of the ItemTypes available in Navigation XML. Maybe activated by a property similar with expandmode:all.

includeitemtypeproperties:true.

It extends a lot the functionality of the Navigation XML.

 

Thanks,
Adrian


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi Adrian,

The item type data is already available in the navigation XML. That is, if you have an item that extends a page, its data will show up.

Cheers,

Imar

 
Adrian Ursu
Reply

Thanks a lot for the info.

I could not see the data in GetNavigationXML.aspx.

Is there any way I can view the XML structure?

I don't know If I should call the properties with @ or just the name.

Just to be clear, I need to see all properties. Not just the MenuText, URL and other navigation related info.

For example, I have property called Speaker_List. Is this available in the XML? Should I access it with Page/@Speaker_list or Page/Speaker_List ?

Thanks,


Adrian

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

If you have an item type that extends a page (e.g. one that has "Enable item type for" set to "Website- and page properties", then the data shows up in the menu. You can see the data by appending ?savexml=true to the query string. You'll then find a sample XML file in your Navigation folder.

 

Hope this helps,

Imar

 
Adrian Ursu
Reply

Oh, I see.

That's not my case. I have an ItemType that has been enabled for Pages.

I actually have Pages based on ItemType "Conferinta".

If I also check the "Extend properties for Website and Page properties" I assume the fields will be visible to all pages and I'd like to avoid that.