<p>Javascript 'hack' in browser console:</p>

<pre><code>$lightswitches.each(function(){
    var lightswitch = $(this).data('lightswitch');
    lightswitch.turnOff();
});
</code></pre>

CC BY-SA 4.0
2019-05-10T13:46:51.003Z
2019-05-10T13:46:51.003Z
Richard
<p>When creating sections, I need a way to toggle all of them off or on. I have 188 sites and you can imagine how big of a pain it is to untoggle one by one.</p>

<p>Am I able to do this somehow? Create a module?</p>

<p>Edit: I've been told creating this many sites isn't a good idea, so perhaps this is a foolish question</p>

<p><a href="https://i.sstatic.net/vsHWd.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/vsHWd.jpg" alt="enter image description here"></a></p>

CC BY-SA 4.0
2019-05-08T15:22:03.737Z
Quantity of sites aside, I can see this as being a useful feature! The best thing to do is submit a feature request to the team. You can do that by [creating an issue](https://github.com/craftcms/cms/issues), and the Dev team will pick up on it.
Jamie Wade
CC BY-SA 4.0
2019-05-08T17:07:39.897Z
@JamieWade, I'll do that!
Cat Named Dog
<sections>
Edit the create new section page
# Edit the create new section page

(Asked by: username_0 on 2019-05-07)

When creating sections, I need a way to toggle all of them off or on. I have 188 sites and you can imagine how big of a pain it is to untoggle one by one.

Am I able to do this somehow? Create a module?

Edit: I've been told creating this many sites isn't a good idea, so perhaps this is a foolish question

[![enter image description here](https://i.sstatic.net/vsHWd.jpg)](https://i.sstatic.net/vsHWd.jpg)

**Tags:** sections
> **Comments:**
> **username_1**: Quantity of sites aside, I can see this as being a useful feature! The best thing to do is submit a feature request to the team. You can do that by [creating an issue](https://github.com/craftcms/cms/issues), and the Dev team will pick up on it.  
> **username_0**: @JamieWade, I'll do that!  

---

## 1 answers

### Answer by username_2 on 2019-05-10. Score: 0

Javascript 'hack' in browser console:
$lightswitches.each(function(){
    var lightswitch = $(this).data('lightswitch');
    lightswitch.turnOff();
});


---

