Try our conversational search powered by Generative AI!

Per Nergård
Oct 9, 2016
  2251
(1 votes)

Special editor toolbuttons for administrators

In one recent project I had the need to give the administrators some extra editor toolbuttons over the default set setup for the general editor. I googled a bit but didn't find exactly what I was looking for.

Finally I found an exaample in the documentation on how to create a global editor settings from code with the possiblity to add buttons for administrators. 

Ok so this seems to do the trick except that I wanted the SuperAdmins to be able to configure this from admin mode instead of having everything created from code.

So I solved this by defining two global settings via admin mode. On "Ordinary" for the general editor and one "ExtraOrdinary" for the admin editors and combining those in the global setting.

Code over at my gist

This is how it looks in admin mode:

1. Settings

Image Profiles_overview.jpg

2. Ordinary toolbars

Image Ordinary_buttons.jpg

3. ExtraOrdinary toolbars

Here the last toolbar contains a duplicate that already exists in the Ordinary setting.

Image extra_buttons.jpg

4. The result when looking in the code created profile logged in as an administrator.

Note that the duplicate link-button has been removed. If duplicates isn't removed the code doesn't work.

Image standard_result.jpg

Code over at my gist

Oct 09, 2016

Comments

Please login to comment.
Latest blogs
Solving the mystery of high memory usage

Sometimes, my work is easy, the problem could be resolved with one look (when I’m lucky enough to look at where it needs to be looked, just like th...

Quan Mai | Apr 22, 2024 | Syndicated blog

Search & Navigation reporting improvements

From version 16.1.0 there are some updates on the statistics pages: Add pagination to search phrase list Allows choosing a custom date range to get...

Phong | Apr 22, 2024

Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog