doublesecretagency / craft-cpbodyclasses Goto Github PK
View Code? Open in Web Editor NEWControl Panel Body Classes plugin for Craft CMS
License: MIT License
Control Panel Body Classes plugin for Craft CMS
License: MIT License
First off, I just wanted to say how much I appreciate this plugin!
I've noticed that since upgrading to Craft 3.2.3, the following body class is no longer applied when creating a new un-saved entry:
.currentpage-entries-myexamplesection-new
I'm guessing the reason for this is because in Craft 3.2.3 the URL segments have changed. When you create a new entry it's immediately saved as a draft?
If .currentpage-entries-myexamplesection-new
isn't possible because of the Craft 3.2 updates, how about checking if the URL contains any parameters, such as ?draftId
?
It would be great to have this class added back in somehow. I have a set of checkboxes that don't need to be displayed until the entry is saved, so the .currentpage-entries-myexamplesection-new
class was a perfect fit for this!
Craft: 3.2.3
Control Panel Body Classes: 2.1.0
Would you consider adding a draft
and revision
class like you did for new
for entries here 9225cad ? I've got this working on local dev and find it very useful !
As a feature request, would it be possible to add the User ID for the logged in user as a body class? This can be useful for hiding entries on a per user and per entry basis.
If the user switches between sites when editing an entry, the body class should adjust accordingly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.