Copied to clipboard

Flag this post as spam?

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


  • Edward Dudley 80 posts 121 karma points
    Sep 22, 2009 @ 10:43
    Edward Dudley
    0

    Sortable data-type

    Hi,

    I need a datatype that not only allows users to select any number of pre-defined options, but it also must allow them to select the order of these options.

    I guess it would be something like a sortable list - does such a thing exist?

    I know I could do it in the backend with child nodes (which can be sorted) but this seems a bit clunky!

    Any ideas?

    Thanks!

  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    Sep 22, 2009 @ 11:47
    Warren Buckley
    0

    Edward,
    Not sure i entirely follow you what are you exactly after doing?

    Warren :)

  • Edward Dudley 80 posts 121 karma points
    Sep 22, 2009 @ 11:52
    Edward Dudley
    0

    Thanks for the reply!

    I have a list of options and I need a datatype that not only allows the user (in the back end) to select which options they want but also allows them to select the order.

    So, a checkbox list would allow options to be selected but the user could not change the order.

    I plan on iterating through the nodes in XSLT so the order is important!

    Does that make sense?  Thanks!

  • Josh Townson 67 posts 162 karma points
    Sep 22, 2009 @ 12:04
    Josh Townson
    0

    Edward,

    I can't hink of a way to do it out of the box, other than adding child nodes, which you say seems clunky. The related links data type does support sorting of the links, but its designed to work with links, rather than simply text.

    You could achieve it using the related links, using just the caption property, and ignoring the URL, but the best solution would be to make a new data type which did exactly what you wanted.

    Personally I would stick with child nodes unless there is going to be a whole lot of them!

    Josh

  • Edward Dudley 80 posts 121 karma points
    Sep 22, 2009 @ 12:11
    Edward Dudley
    0

    Thanks Josh, I suspected that child nodes might be the way to go.

    I'll take a look at the related links too though.

Please Sign in or register to post replies

Write your reply to:

Draft