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
Hi guys,
i've insert this inline razor macro in my template:
@foreach(var news in Model.Descendants.Where("NodeTypeAlias == @0", "PrestiNews"))
and not working.If try to output count of collection return me 0.
Everyone can help me?
Thanks,
Fabio
Hi Fabio,
I think you missed the '()' after Descendants. Btw, that sentence could also be written like this:
@foreach(var news in Model.Descendants("PrestiNews"))
J
Thanks Jorge!
I was going to write it now :) However how can i submit the correction in the documentation of our? Because i've studied this from it!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Descendants not work in 4.7.2
Hi guys,
i've insert this inline razor macro in my template:
@foreach(var news in Model.Descendants.Where("NodeTypeAlias == @0", "PrestiNews"))
and not working.
If try to output count of collection return me 0.
Everyone can help me?
Thanks,
Fabio
Hi Fabio,
I think you missed the '()' after Descendants. Btw, that sentence could also be written like this:
J
Thanks Jorge!
I was going to write it now :) However how can i submit the correction in the documentation of our? Because i've studied this from it!
Fabio
is working on a reply...