November Happy Hour will be moved to Thursday December 5th.

Per Nergård
Oct 9, 2016
  2335
(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 SaaS CMS + Coveo Search Page

Short on time but need a listing feature with filters, pagination, and sorting? Create a fully functional Coveo-powered search page driven by data...

Damian Smutek | Nov 21, 2024 | Syndicated blog

Optimizely SaaS CMS DAM Picker (Interim)

Simplify your Optimizely SaaS CMS workflow with the Interim DAM Picker Chrome extension. Seamlessly integrate your DAM system, streamlining asset...

Andy Blyth | Nov 21, 2024 | Syndicated blog

Optimizely CMS Roadmap

Explore Optimizely CMS's latest roadmap, packed with developer-focused updates. From SaaS speed to Visual Builder enhancements, developer tooling...

Andy Blyth | Nov 21, 2024 | Syndicated blog

Set Default Culture in Optimizely CMS 12

Take control over culture-specific operations like date and time formatting.

Tomas Hensrud Gulla | Nov 15, 2024 | Syndicated blog

I'm running Optimizely CMS on .NET 9!

It works 🎉

Tomas Hensrud Gulla | Nov 12, 2024 | Syndicated blog

Recraft's image generation with AI-Assistant for Optimizely

Recraft V3 model is outperforming all other models in the image generation space and we are happy to share: Recraft's new model is now available fo...

Luc Gosso (MVP) | Nov 8, 2024 | Syndicated blog