A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
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/
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.
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.