Copied to clipboard

Flag this post as spam?

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


  • Thejeshwarrao 4 posts 85 karma points
    Mar 13, 2017 @ 12:40
    Thejeshwarrao
    0

    Get macro item of one page to another page

    I have a list of article items in a main article node. now I want to show any 3 random article items in another node. Can you suggest me any idea

  • pat 124 posts 346 karma points
    Mar 13, 2017 @ 14:21
    pat
    0

    you might be able set main article node id in macro and then pick three from children nodes ...

    I am not sure how to make it random pick though...

    may be something like this ... count number of articles and then generate three random numbers below the count and in loop through children nodes pick article come up on each random number you generated

  • Thejeshwarrao 4 posts 85 karma points
    Mar 13, 2017 @ 14:24
    Thejeshwarrao
    0

    Your solution was very helpful. But, Please, can you specify how to get node I'd and specific​ syntax to get the macro details. I'm very new to Umbraco....

  • pat 124 posts 346 karma points
    Mar 13, 2017 @ 14:34
    pat
    100

    node Id in properties tab on your main article page for example on my start kit download it has blog node

    If you are new to umbraco best thing is install a start kit option and see how a basic site set up...

    enter image description here

  • Thejeshwarrao 4 posts 85 karma points
    Mar 14, 2017 @ 05:41
    Thejeshwarrao
    0

    Is there any option to load the macro using document type name instead of nodeId. To the load the macro dynamically in other page templates

Please Sign in or register to post replies

Write your reply to:

Draft