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

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

Vote:
 

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.

#70811
Apr 30, 2013 20:38
Vote:
 

Looking for the same documentation, any luck?

#72776
Jun 28, 2013 13:29
Vote:
 

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/

#72778
Jun 28, 2013 14:02
Vote:
 

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.

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