Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fabio Blardone 79 posts 98 karma points
    Aug 08, 2012 @ 11:02
    Fabio Blardone
    0

    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

  • J 150 posts 489 karma points
    Aug 08, 2012 @ 11:16
    J
    0

    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

  • Fabio Blardone 79 posts 98 karma points
    Aug 08, 2012 @ 11:34
    Fabio Blardone
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft