Martijn Geerts Posted February 12, 2014 Posted February 12, 2014 I wished the role of the current logged in user was in the class: <body class="id-3 template-admin superuser">
pwired Posted February 12, 2014 Posted February 12, 2014 I wished the role of the current logged in user was in the class: <body class="id-3 template-admin superuser"> Are you a member of the elite-coders club
Martijn Geerts Posted February 12, 2014 Author Posted February 12, 2014 @pwired: Thats sounds cool. But if you google me on older posts you'll see that I have basic PHP questions on the forum. So i'm not that experienced. I'm just addicted to read/watch everything about web-design & the last year it was mainly ProcessWire. I read all processWire forum posts, and read allmost all source code of ProcessWire. ( loads of it I don't understand yet) I will read all the source code a second time (or some multiple times). So my understanding of the code will be a little bit better step by step. 1
ryan Posted February 16, 2014 Posted February 16, 2014 I wished the role of the current logged in user was in the class:<body class="id-3 template-admin superuser"> Sounds like a good idea. What is the use case? Wondering if would be better provided as a data attribute or something along those lines.
Martijn Geerts Posted February 16, 2014 Author Posted February 16, 2014 Use case could be styling / javascript etc depending on role. I think you're right about the data attribute. it's more flexible & better extendable. With dropped support of old IE, I don't see any issue not using the that attribute.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now