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.
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.
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
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.
is working on a reply...