Copied to clipboard

Flag this post as spam?

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


  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Mar 15, 2010 @ 12:09
    Matt Brailsford
    0

    Relation vs Member Picker Property

    Hi Guys,

    I'm developing an app where users register, and they get a personal page created. My question is, given that this page will only ever belong to 1 person, would it be best to use the Relation API or just have a Member Picker property on the page itself?

    Many thanks

    Matt

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Mar 16, 2010 @ 09:54
    Ismail Mayat
    1

    Matt,

    The relation api works 2 ways so you can from member get the page and from page get the associated member.  With using member picker you can from the page get the member but to get from member to page you would have to trawl through whole site till you found the member value set in a page.  I only found that out the other day from Niels when i asked difference between relating nodes through api using relations and relating nodes through pickers.

    One other thing out of box you do not have a relations manager in the backend so you would have to write your own if in future you wanted to break a relation.

    Regards

     

    Ismail

  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Mar 16, 2010 @ 10:42
    Matt Brailsford
    0

    Thanks Ismail, I was thinking for the link back to the page, it could just be a property on the users profile? Granted you will have to manage it from 2 ends, but it least it's managable via the back end. The lack of a manger is the main reason I'm wondering if there is any huge benefit when it is a fixed 1 to 1 mapping.

  • 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.

Please Sign in or register to post replies