Copied to clipboard

Flag this post as spam?

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

  • Sander van de Pas 62 posts 122 karma points
    Mar 07, 2014 @ 10:19
    Sander van de Pas

    How to found the datatype of a property item programmatically?

    I need to found out the datatypes of each property item programmatically.
    In the XML it will not be displayed...only a propertyid...

      <item id="1">
        <footerDisclaimerTitle propertyid="1">Disclamimer</footerDisclaimerTitle>
        <footerDisclaimerLink propertyid="2">1119</footerDisclaimerLink>

    So when I've chosen 2 properties on an item (e.g. a textstring and a content picker) I need to find the content picker type, so I can change the nodeid.

    Hopefully someone has an answer.



  • Matt Brailsford 2406 posts 11687 karma points MVP 6x c-trib
    Mar 07, 2014 @ 10:31
    Matt Brailsford

    Hi Sander,

    Maybe try outputting the raw saved value to a textarea and see if that tells you anything about the properties. Failing that, you could also try fetching the prevalue for the data type and see what is in there (I would imagine that would hold what you need, you might just have to map it to the returned value ids).

    Not much in the way of code examples, but should point you in the right direction.



Please Sign in or register to post replies

Write your reply to: