November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
When I debug, the DisplayEditUI is set to false, also when cliking the "Save" button.
Could this be a bug, Petter?
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.
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
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
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; } }
With some slight modifications (EPiServer namespaces et.c.) it would be able to get to work for 4.6x, havent done it though...
/johan
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?
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
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.
This link is dead (404)
http://labs.episerver.com//PageFiles/111555/RemoveCategoryTab.cs
Anyone know where I can find this file?
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
JMenziesSmith: check this out:
http://blog.fredrikhaglund.se/blog/2009/06/08/move-built-in-property-to-another-tab-when-editing/
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