Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
umbraco ver is 7.0.2, umbraco.config data like this:
<division> <newsCenter> <news> </news> </newsCenter> <newsCenter> <news> </news> <posting> </posting> </newsCenter> </division>
here is my code:
foreach(var item in division.Descendants().Where("NodeTypeAlias == @0 || NodeTypeAlias == @1","news","posting") { <li>@item.Name</li> }
i want get all news and posting ,but result only has news without posting, very strange, Could anyone point me in the right code,many thanks
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Where() NodeTypeAlias Invalid
umbraco ver is 7.0.2, umbraco.config data like this:
here is my code:
i want get all news and posting ,but result only has news without posting, very strange, Could anyone point me in the right code,many thanks
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.