Tom Christian Posted February 12, 2015 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.
Tom Christian Posted February 13, 2015 Author 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?
Mark Posted February 13, 2015 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.
Tom Christian Posted February 13, 2015 Author 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!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.