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 74 posts 147 karma points
    Mar 07, 2014 @ 10:19
    Sander van de Pas
    0

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

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

    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.

    Thanks,

    Sander

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Mar 07, 2014 @ 10:31
    Matt Brailsford
    0

    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.

    Cheers

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft