Try our conversational search powered by Generative AI!

Removing Category Tab from the edit tab


We want to permanently remove the Category Tab from Edit Mode as it is not required for our site.  We checked Admin Mode tabs and it is not allowing us to delete.  Is there a way where we can change the code and make this happen?




Jul 02, 2008 12:47

Hello Kannan,

Mari did a blog post about this on labs. Does this help?


Jul 02, 2008 13:15
Thanks. Is there any way to solve the issues mentioned in the blog?
Jul 03, 2008 7:48

When I debug, the DisplayEditUI is set to false, also when cliking the "Save" button.

Could this be a bug, Petter? 

Jul 03, 2008 8:22


I haven't tried anything out, but it sounds like a bug to me.

Something you could try if DisplayEditUI doesn't work is to set OwnerTab = -1 for the PageCategory property in the loaded page event. That will put that property on a non-existing tab, which will cause the category tab to not have any properties on it. And if a tab doesn't have any properties on it, it will dissapear.

Jul 03, 2008 11:51
Tried, but didn't solve it.
Jul 03, 2008 12:38
Per, did you file this as a bug? I just tried the same code in R2, with the same result.
Nov 06, 2008 21:37


No, sorry, I didn't. I have now though.

Bug #16001: Setting DisplayEditUI=false in EditPanel.LoadedPage to hide a property is forgotten when pressing save


Per Gunsafs
EPiServer CMS development team

Nov 07, 2008 10:40

Well, you can of course workaround that with a small hack, see

Include in your solution and compile should do the trick


Nov 07, 2008 12:46

"small" hack?

In lines of code, that is a pretty big hack. :-)


Nov 09, 2008 20:30

Its just one file though ;-)


Nov 10, 2008 9:09

Thanks for the hack, Johan :)

 If it is to work for languages other than english though, the code must be modified as follows:

foreach (Tab tab in propertyDataFormTabStrip.Controls) { if (tab.Text == categoriesTab.LocalizedName) {  tab.Visible = false; break; } }
Nov 10, 2008 16:22

Good point Jørgen!!


Nov 10, 2008 20:14
Does Johans sample code work in 4.62 or is it only in cms 5?
Nov 25, 2008 17:07

With some slight modifications (EPiServer namespaces et.c.) it would be able to get to work for 4.6x, havent done it though...


Nov 25, 2008 21:01

I've got it to compile but it seems that the editpanel doesn't have the LoadComplete event. I changed it to Load but that doesn't seem to work. The event fires to soon and the check for tab.PluginID == 0 will be true (on "Visa" tab) and will return and do nothing.

Im running a 4.62 sit with net 1.1. Is there a workaround to get this to work?

Edited, Nov 26, 2008 9:48

Are you running Asp.Net 1.1?


Nov 26, 2008 11:36

uhm, .Net 1.1 ...

is there any specific reason to not step up to 2.0 ??

The module uses some generics as well as some events introduced in .net 2.0, so rewriting for 1.1 would require some more work...


Nov 26, 2008 13:30

To much work to make the switch to 2.0. It must be done at somepoint but that is unfortunately not right now.

 Is there more events then the LoadComplete event that's in 2.0. I just made two versions of the Findcontrol method specific to each control to look after to replace the generic one.

Edited, Nov 26, 2008 13:56

This link is dead (404)

Anyone know where I can find this file?

Aug 19, 2009 13:13

Works well for me. How about if i just wanted to change which tab the category appears on. At the moment it always shows in the content tab, not even in a categories tab. I would like to move it to the settings tab.



Mar 05, 2013 12:47

JMenziesSmith: check this out:

Mar 05, 2013 13:45
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.