Data at Your Fingertips: Explore Our New Reporting and Statistical Capabilities By Ryan Ashbrook 20 hours ago
Tom Christian Posted February 12, 2015 Share Posted February 12, 2015 Is it possible to use the togglesOn & togglesOff array options with the "other" theme setting type along with a YesNo form helper for example? I can't see how I would target a specific setting as presumably the ID's are dependant on their position? Or am I wrong?Thanks. Link to comment Share on other sites More sharing options...
Tom Christian Posted February 13, 2015 Author Share Posted February 13, 2015 Is it possible to use the togglesOn & togglesOff array options with the "other" theme setting type along with a YesNo form helper for example? I can't see how I would target a specific setting as presumably the ID's are dependant on their position? Or am I wrong? Thanks. @Mark, maybe you know? Link to comment Share on other sites More sharing options...
Mark Posted February 13, 2015 Share Posted February 13, 2015 You'd have to use the "Other / Manual" option for both the setting which toggles and the one that gets toggled. The last parameter you can provide when creating a form element object is the HTML id to use. Link to comment Share on other sites More sharing options...
Tom Christian Posted February 13, 2015 Author Share Posted February 13, 2015 You'd have to use the "Other / Manual" option for both the setting which toggles and the one that gets toggled. The last parameter you can provide when creating a form element object is the HTML id to use. I saw that the last value in the example had a pre-defined " 'theme_setting_' . $row['sc_key'] " value so for some reason assumed I couldn't change it. Works great now, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.