Copied to clipboard

Flag this post as spam?

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


  • Tobias Morf 80 posts 183 karma points
    Jan 15, 2011 @ 12:41
    Tobias Morf
    0

    Macro Type "contentRandom" in 4.6.1 returns nothing

    After upgrading a umbraco installation from 4.0.2.1 to 4.6.1 --> contentRandom returns a empty string in my xslt

    Any ideas how to solve?

    Thx

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jan 15, 2011 @ 13:04
    Kim Andersen
    0

    Hi Tobias.

    I've actually never used the contentRandom before, so could you tell a little about how it should work?

    I tried it out in my v4.6 as well, and I just got an empty string just like you did. You might want to report it as a bug on Codeplex so it can be fixed in one of the next releases.

    /Kim A

  • Tobias Morf 80 posts 183 karma points
    Jan 16, 2011 @ 20:25
    Tobias Morf
    0

    The contentRandom type returns simply a random subnode of the selected node - if it works :-)

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jan 17, 2011 @ 22:32
    Kim Andersen
    0

    Ahh, maybe I should have known that considering the name of the data type :)

    /Kim A

  • Tobias Morf 80 posts 183 karma points
    Jan 20, 2011 @ 11:07
    Tobias Morf
    0

    Find the solution here: http://our.umbraco.org/forum/developers/xslt/13030-Parent-doesn't-have-childeren-using-contentRandom :-)

Please Sign in or register to post replies

Write your reply to:

Draft