Copied to clipboard

Flag this post as spam?

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


  • Craig O'Mahony 364 posts 918 karma points
    Apr 19, 2013 @ 15:12
    Craig O'Mahony
    0

    Populate a dropdown from content nodes

    Hi,

    Totally stuck here!! 

    I have some document type called Authors (containing Name, Email, Image, etc.) and another doc type called Posts and what I'd like to be able to do is when someone is creating a Post I'd like them to be able to select an Author based upon the Author Content Nodes.

    Is that even possible? And if so could anybody help!?!?!?

    Thanks,

    Craig

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Apr 19, 2013 @ 15:22
    Hendy Racher
    0

    Hi Craig,

    You could use the XPath DropDownList datatype, configuring it's XPath to be: //Author

    HTH,

    Hendy

  • gary 385 posts 916 karma points
    Apr 19, 2013 @ 15:24
    gary
    0

    Hi Craig

    Yes, possible.

    But, a question - is the author, the person entering the post?

    If so the property already exists as in the username (cant remember if it is author or createdBy!!). You can just call that property in your template.

    If it is an Admin person entering a post on behalf of the author you can create the authors in the user area , then  dropdown box data-type filled with the authors.

    Hope that gives a direction without a lot of explanation.

    Regards

    Gary

     

  • Craig O'Mahony 364 posts 918 karma points
    Apr 19, 2013 @ 15:57
    Craig O'Mahony
    0

    You my friends are a pair of international superstars!

    I've gone for the xPath solution (as hooking into the users section opens up all of the users and only certain ones apply). Now I've got to display certain data from the Author content on the actual page......

Please Sign in or register to post replies

Write your reply to:

Draft