Jump to content

togglesOn / togglesOff with Theme Settings


Tom Christian

Recommended Posts

Posted

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.

 

Posted

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? :)

Posted

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.

Posted

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! :)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...