Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doublesecretagency/craft-cpbodyclasses
Control Panel Body Classes plugin for Craft CMS
https://github.com/doublesecretagency/craft-cpbodyclasses
control-panel craft craftcms css javascript
Last synced: about 12 hours ago
JSON representation
Control Panel Body Classes plugin for Craft CMS
- Host: GitHub
- URL: https://github.com/doublesecretagency/craft-cpbodyclasses
- Owner: doublesecretagency
- License: mit
- Created: 2016-06-22T17:35:40.000Z (over 8 years ago)
- Default Branch: v3-dev
- Last Pushed: 2024-02-21T03:12:38.000Z (9 months ago)
- Last Synced: 2024-10-30T12:12:36.596Z (16 days ago)
- Topics: control-panel, craft, craftcms, css, javascript
- Language: PHP
- Size: 578 KB
- Stars: 24
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Control Panel Body Classes plugin for Craft CMS
**Add special classes to the Control Panel's `` tag.**
---
**Pairs perfectly with the [Control Panel CSS](https://github.com/doublesecretagency/craft-cpcss) and [Control Panel JS](https://github.com/doublesecretagency/craft-cpjs) plugins!**
After you've installed the plugin, go to:
- **Settings > Plugins > Control Panel Body Classes**
From the settings page, you can select which classes you want to use:
![](src/resources/img/example-settings.png)
These special classes will now be included in the `` tag of the CP. You can use these classes to manipulate the CSS & JavaScript of the Control Panel however you choose.
---
## But why?
Because there are a million things that you may want to do in your control panel, and many of them are conditional. Perhaps you want your CSS (or JS) to only take effect for a certain user group, or only on a specific page. Use these special classes to hone in on your targets with precision!
This plugin is designed to work in tandem with [Control Panel CSS](https://github.com/doublesecretagency/craft-cpcss) and/or [Control Panel JS](https://github.com/doublesecretagency/craft-cpjs).
---
## Disclaimer
>It's important to note that showing/hiding fields via CSS and JavaScript is **purely cosmetic**. Those fields may remain accessible to a savvy user, so don't rely on this plugin to guarantee access/denial of any DOM elements. **We accept no liability for any security issues arising from the use of this plugin.**
---
## Anything else?
We've got other plugins too!
Check out the full catalog at [doublesecretagency.com/plugins](https://www.doublesecretagency.com/plugins)