Removing/Customizing visibility of panels based on a user's role

I have an interesting request from my manager, a non-developer, who would like to present a more “friendly” and simpler interface for Editors and Authors.

I have searched for an existing solution, but I don’t believe one has been mentioned to date.

My manager would like me to take out all the “advanced” and confusing parts of a Section/Row/Column and similarly with the individual elements so they don’t distract from its core functionality.

Here is an annotated screenshot that illustrates this well:

And, for an image, this is a lot to handle for a non-technical user:

If there is nothing available, then I have a different request:

How can I enqueue a style sheet into the Cornerstone page editor itself? This way, I can create rules (albeit complicated rules) that can identify and hide panels. The user ID is set (tco-user-X) within the class; not a role, but it’s something. Ideally, you would add something to identify the user’s role either in the HTML or BODY tags.

Thank you,

Noah

There’s parameters but that takes a bit of time setting up for everything. That would still not be role based though. It would be nice to have this capability in Pro.

Thanks @JvP!

I didn’t think this was possible as it is now. However, if there is a role identifer (e.g. tco-role-editor), then I can insert custom CSS to perform the same function (in fact, it may be easier than the long-winded settings).

I would also need a way to add/enqueue CSS to the editor itself. I don’t want to modify the core code, rather having a function to add my own CSS (similar to the front-end and Dashboard in WordPress proper).

Hey Noah,

Regretfully, there is no option to disable element options based on user-role yet so I’m going to list this as a feature request. Please stay tuned for future updates to if this will get added.

For now, the only option would be to use ACF Pro and Dynamic Content so you let your Editors and Authors enter and/or edit data in the ACF Fields you’ll set up. You’ll then disable Cornerstone for Editors and Authors using the Permission Manager.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.