Jump to content

current user-role in the classes from body tag


Martijn Geerts
 Share

Recommended Posts

@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. 

  • Like 1
Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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