Did CMS 7 disable the EPiServer.UI.Edit.EditPanel.LoadedPage event?


I am attempting to hook into the EPiServer.UI.Edit.EditPanel.LoadedPage event to conditionally hide tabgroups as described by these two posts: http://labs.episerver.com/en/Blogs/Mari-Jorgensen/Dates/112298/112299/112384/, and http://world.episerver.com/Code/David-Knipe/Code-snippet-to-hide-the-Categories-tab-in-edit-mode/

Unfortunately, as far as I can tell the event is never fired. The only other reference to this issue can be found at http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=62435, and that question has no answers.

Thank you for your time.

Apr 30, 2013 20:38

Looking for the same documentation, any luck?

Jun 28, 2013 13:29

For that kind of functionality you need to create editordescriptors I guess.

Unfortunately I don't have a good answer how to hide an entire tabgroup but maybe you'll find some inspiration in Joel Abrahamssons blog: http://joelabrahamsson.com/hiding-episervers-standard-category-property/

Jun 28, 2013 14:02

I had a similar problem where the pagename should not be editable, and ended up with something like this.


[EditorDescriptorRegistration(TargetType = typeof(string))]
public class HidePageNameOnThatPageClass : EditorDescriptor
public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
base.ModifyMetadata(metadata, attributes);

dynamic mayQuack = metadata;
var ownerContent = mayQuack.OwnerContent;
if (ownerContent is ThatPageClass && metadata.PropertyName == "icontent_name")
metadata.IsReadOnly = true;

Also after viewing joels post.. The documentation for episerver is really. really bad.

Jun 28, 2013 14:20
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.