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

Removing Category Tab from the edit tab

Vote:
 

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?

Regards

KPK 

 

#21596
Jul 02, 2008 12:47
Vote:
 

Hello Kannan,

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

/Petter

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

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

Could this be a bug, Petter? 

#21630
Jul 03, 2008 8:22
Vote:
 

Hi

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.

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

Hi

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

Regards

Per Gunsafs
EPiServer CMS development team

#25841
Nov 07, 2008 10:40
Vote:
 

Well, you can of course workaround that with a small hack, see http://labs.episerver.com//PageFiles/111555/RemoveCategoryTab.cs

Include in your solution and compile should do the trick

Regards,
johan

#25843
Nov 07, 2008 12:46
Vote:
 

"small" hack?

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

/Steve

#25857
Nov 09, 2008 20:30
Vote:
 

Its just one file though ;-)

/johan

#25860
Nov 10, 2008 9:09
Vote:
 

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; } }
#25870
Nov 10, 2008 16:22
Vote:
 

Good point Jørgen!!

/johan

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

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

/johan

#26213
Nov 25, 2008 21:01
Vote:
 

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?

#26220
Edited, Nov 26, 2008 9:48
Vote:
 

Are you running Asp.Net 1.1?

/johan

#26224
Nov 26, 2008 11:36
Vote:
 

uhm, .Net 1.1 ...

is there any specific reason to not step up to asp.net 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...

/johan

#26229
Nov 26, 2008 13:30
Vote:
 

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.

#26232
Edited, Nov 26, 2008 13:56
Vote:
 

This link is dead (404)
http://labs.episerver.com//PageFiles/111555/RemoveCategoryTab.cs

Anyone know where I can find this file?

#31993
Aug 19, 2009 13:13
Vote:
 

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.

 

Thanks

#66567
Mar 05, 2013 12:47
Vote:
 

JMenziesSmith: check this out:

 

http://blog.fredrikhaglund.se/blog/2009/06/08/move-built-in-property-to-another-tab-when-editing/

#66575
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.