Wasn't aware that the Razor engine stripped the dashes. Work has been done on creating proper models for uComponents data-types in Razor, take a look at the source on CodePlex: http://razordatatypemodels.codeplex.com/ We have made a start to package it up (run the BuildPackage.cmd in the Build folder) - or build the source and drop the DLL into your /bin folder (note, this will only work with Umbraco v4.7.1+)
MultiUrlPickerState.Deserialize returns count of 0
Hi, I run the code below and I get no items, am I doing something wrong?
Hi Murray,
Are you manually building the XML? As the node/element names are incorrect for Multi-UrlPicker, see the documentation for an example: http://ucomponents.codeplex.com/wikipage?title=MultiUrlPicker&referringTitle=Documentation
Cheers, Lee.
Doh, that's it, no I'm not building it manually, it's because razor has decided to remove the dashes.
Hi Murray,
Wasn't aware that the Razor engine stripped the dashes. Work has been done on creating proper models for uComponents data-types in Razor, take a look at the source on CodePlex: http://razordatatypemodels.codeplex.com/ We have made a start to package it up (run the BuildPackage.cmd in the Build folder) - or build the source and drop the DLL into your /bin folder (note, this will only work with Umbraco v4.7.1+)
Cheers, Lee.
is working on a reply...