Per Nergård (MVP)
Sep 17, 2010
  4450
(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
Optimizely CMS 13 (Pre-release) Visual Builder

This post captures a proof of concept built on an Alloy MVC site upgraded to Optimizely CMS 13 pre-release, focused on Visual Builder, how to model...

Francisco Quintanilla | Feb 11, 2026 |

Personalized User Journeys with Optimizely CMS

Daniel Copping | Feb 10, 2026 |

Optimizely CMS 12 behaving strangely after upgrading from CMS 11

After upgrading from Optimizely CMS 11 to CMS 12, content type changes stopped working due to an assembly version mismatch. This post explains the...

Henning Sjørbotten | Feb 10, 2026 |

Episode 2 of the OMVP Strategy Roundtable is out

AI is everywhere right now. Strategy decks are full of it. Roadmaps promise it. Tools are shipping faster than teams can keep up. But when it comes...

Satata Satez | Feb 10, 2026