Copied to clipboard

Flag this post as spam?

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


  • TaoistTotty 246 posts 314 karma points
    Feb 16, 2010 @ 01:55
    TaoistTotty
    0

    Custom Data Type 'reading'

    I have created a custom data type (of a checkbox) with about 20 options.

    My question is, is there a way in XSLT to read what all of these options are, and then count which ones (and how many of each) have been chosen in when the pages are created.

    I may be able to the second part, but do not know a way of 'reading' the data type list.

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Feb 16, 2010 @ 08:50
    Thomas Höhler
    0

    First question is why did you implement a custom data type? You can use the build in CheckBoxList for that. Or do I misunderstand you? If you have used the checkboxlist for a new datatype with the prevalueeditor then you get the prevalues by umbraco.library:GetPreValues(DATATYPE_ID) as a XPathNodeIterator you can use in xslt. Just use xsl:copy-of to output the complete xml which you can see then in the html source.

    hth, Thomas

  • 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