Facing error in view, if creating any page its shows some error,it doesn't preview.
Facing error in view, if creating any page its shows some error,it doesn't preview.
Error:'Umbraco.Web.Models.DynamicPublishedContentList' does not contain a definition for 'Any'.
Can you provide some more information about this issue? What exact version of Umbraco 7 are you using and have you installed some kind of starter kit or have you been starting out from scratch? Judging from the screendump above it seems like you have been trying to create a view or macro based on one of the build-in templates in Umbraco from the dropdown in the "Create" dialogue - Perhaps you can post the complete code example so it's easier for others to get the full context of what's going on as well?
Facing error in view, if creating any page its shows some error,it doesn't preview.
Facing error in view, if creating any page its shows some error,it doesn't preview. Error:'Umbraco.Web.Models.DynamicPublishedContentList' does not contain a definition for 'Any'.
Hi Sumathi and welcome to our :)
Can you provide some more information about this issue? What exact version of Umbraco 7 are you using and have you installed some kind of starter kit or have you been starting out from scratch? Judging from the screendump above it seems like you have been trying to create a view or macro based on one of the build-in templates in Umbraco from the dropdown in the "Create" dialogue - Perhaps you can post the complete code example so it's easier for others to get the full context of what's going on as well?
/Jan
Hi sumathi,
The Razor code below should list child pages from the current page, if the page, has some children.
Hope this helps,
/Dennis
is working on a reply...