Copied to clipboard

Flag this post as spam?

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


  • Jan Vermeerbergen 79 posts 112 karma points
    Jul 13, 2012 @ 10:17
    Jan Vermeerbergen
    0

    Feature request: 3-step Togglebox

    Hi guys, just a suggestion (that would help me in a huge way, would it exist today):

    At some point, will the Togglebox be adjustable that it will not only be able to switch between 'on' or 'off', but have the option to have more than 2 'states'. 

    For a project I'm working on, I need to set if a page is visible in site A, site B, or both. A 3-step switch would do just that.

    :-)

    thanks

    Jan

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jul 13, 2012 @ 11:25
    Lee Kelleher
    0

    Hi Jan,

    Thanks for your suggestion.

    The underlying functionality of the ToggleBox is actually a checkbox - so any extension to that would be a complete rewrite. I don't agree that ToggleBox should support this scenario.

    An alternative approach would be to use a checkbox list - either a static/hardcoded list or one using an XPath CheckBoxList data-type? then the options would be "site A" and/or "site B"

    Using the XPath CheckBoxList, you can specify the XPath query to select the root homepage node for each website.  That way if you ever add a "site C", the XPath would automatically take that into account and add the extra checkbox.

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft