12 May 2008
14 May 2009
Link to this post
Thanks for the post. Yes this does work! Thank you! Thank you.
However, i don't know if it was a type O or may be not, but for the method: MenuItemDataBound, is "ICmsUrlContext urlContext = CmsUrlContext.Current" supposed to be:
CmsUrlContext without the 'I'. Also, I had to comment out the 'if' condition and the above piece of code for the Menu to work because it gave me this error:
error CS0246: The type or namespace name 'CmsUrlContext' could not be found (are you missing a using directive or an assembly reference?)
It's a namespace error. If you would be kind enough to please send me what namcespace to use.
One more thing I should mention is that if anyone wants to use the standard .net Menu adaptor instead of the rad controls that sitefinity comes with, the menu adaptor has to be used as a user control and upload that user control in sitefinity for it to work. Otherwise, if the standard asp menu is coded into the masterpage, it will work just fine except when you have to edit the content of the website in edit mode of the sitefinity. There, it will not find the "SitemapDataSource1" and throw an error "SitemapDataSource1" cannot be found, something like that.