Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Per Nergård
Sep 17, 2010
  4066
(0 votes)

Defaulting the editor to the favourites tab in edit mode

I have customers that have expressed a wish that when a editor enters edit mode the favourites tab should be the default instead of showing the page tree.

I found a post by Allan Thraen which added an extra row to the context menu with using a PagePlugIn but I didn’t get it to work.

So I ended up with adding some code to the onload method in my own pagetemplate class which inherits from TemplatePage, modyfying the url for the editmode option.

 

   1: if (ContextMenu.IsMenuEnabled)
   2:       {
   3:           RightClickMenuItem item = null;
   4:  
   5:           item = EPiServer.Web.PageExtensions.ContextMenu.Current.Menu.Items["EditMode"];
   6:           if (item != null)
   7:           {
   8:  
   9:               item.Url += "%26tabid=1";
  10:           }
  11:       }
Sep 17, 2010

Comments

Deane Barker
Deane Barker Sep 21, 2010 10:33 AM

So many times, I've thought I should try this. Nicely done.

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

Azure AI Language – Abstractive Summarisation in Optimizely CMS

In this article, I show how the abstraction summarisation feature provided by the Azure AI Language platform, can be used within Optimizely CMS to...

Anil Patel | Apr 18, 2024 | Syndicated blog

Fix your Search & Navigation (Find) indexing job, please

Once upon a time, a colleague asked me to look into a customer database with weird spikes in database log usage. (You might start to wonder why I a...

Quan Mai | Apr 17, 2024 | Syndicated blog