Per Nergård
Oct 9, 2016
  2308
(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
Optimizely's personalized product recommendations on Product Details Page (PDP) 

With the rise of AI and its integration into online shopping, personalization has become the cornerstone of an enhanced customer experience....

Hetaxi | Sep 20, 2024

keep special characters in URL

When creating a page, the default URL segment validation automatically replaces special characters with their standard equivalents (e.g., "ä" is...

K Khan | Sep 19, 2024

Streamlining Marketing Success: The Benefits for Optimizely One with Perficient

As an Optimizely expert, I eagerly anticipate this time of year due to the exciting Optimizely events happening worldwide. These include Opticon, t...

Alex Harris - Perficient | Sep 17, 2024 | Syndicated blog

Creating an Optimizely Addon - Packaging for NuGet

In   Part One   and   Part Two   of this series; I covered topics from having a great idea, solution structure, extending the menus and adding...

Mark Stott | Sep 16, 2024

Optimizely CMS and weekly updates

Learn how reporting bugs in Optimizely CMS not only helps improve the platform but also benefits you and the entire user community.

Tomas Hensrud Gulla | Sep 12, 2024 | Syndicated blog

Introduce the ablility to select then delete items manually on FIND UI

In FIND 16.3.0 we introduce an ability to select items and delete them manually, it will helps you to delete unexpected items from the UI without a...

Manh Nguyen | Sep 12, 2024