Skip to main content
deleted 3 characters in body
Source Link

Thanks @Marek, your suggestion got worked out.

check DeviceEditor control (sitecore\shell\Applications\Layouts\DeviceEditor\DeviceEditor.xml)

change CodeBeside to your custom class inheriting from the original Sitecore. Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm overwrite OnLoad method to hide PlaceholdersTab from the DeviceEditor.xml.

  • Check DeviceEditor control (sitecore\shell\Applications\Layouts\DeviceEditor\DeviceEditor.xml)
  • Change CodeBeside to your custom class inheriting from the original Sitecore.(Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm)
  • Overwrite OnLoad method to hide PlaceholdersTab from the DeviceEditor.xml

Here is the custom logic to restrict the access to specific role:

public class DeviceEditorForm : Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm
{
    protected override void OnLoad(EventArgs e)
    {
        Assert.ArgumentNotNull(e, "e");
        base.OnLoad(e);
        if (!Context.ClientPage.IsEvent && Sitecore.Context.User.IsInRole(ContentAuthor))
        {
            Layout.Visible = false;
            Placeholders.Visible = false;
        }
    }
}

Thanks @Marek, your suggestion got worked out.

check DeviceEditor control (sitecore\shell\Applications\Layouts\DeviceEditor\DeviceEditor.xml)

change CodeBeside to your custom class inheriting from the original Sitecore. Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm overwrite OnLoad method to hide PlaceholdersTab from the DeviceEditor.xml.

Here is the custom logic to restrict the access to specific role:

public class DeviceEditorForm : Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm
{
    protected override void OnLoad(EventArgs e)
    {
        Assert.ArgumentNotNull(e, "e");
        base.OnLoad(e);
        if (!Context.ClientPage.IsEvent && Sitecore.Context.User.IsInRole(ContentAuthor))
        {
            Layout.Visible = false;
            Placeholders.Visible = false;
        }
    }
}

Thanks @Marek, your suggestion got worked out.

  • Check DeviceEditor control (sitecore\shell\Applications\Layouts\DeviceEditor\DeviceEditor.xml)
  • Change CodeBeside to your custom class inheriting from the original Sitecore.(Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm)
  • Overwrite OnLoad method to hide PlaceholdersTab from the DeviceEditor.xml

Here is the custom logic to restrict the access to specific role:

public class DeviceEditorForm : Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm
{
    protected override void OnLoad(EventArgs e)
    {
        Assert.ArgumentNotNull(e, "e");
        base.OnLoad(e);
        if (!Context.ClientPage.IsEvent && Sitecore.Context.User.IsInRole(ContentAuthor))
        {
            Placeholders.Visible = false;
        }
    }
}
added 2 characters in body
Source Link
Marek Musielak
  • 24.2k
  • 3
  • 31
  • 64

Thanks @Marek, your suggestion got worked out.

check DeviceEditor control (sitecore\shell\Applications\Layouts\DeviceEditor\DeviceEditor.xml)

change CodeBeside to your custom class inheriting from the original Sitecore. Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm overwrite OnLoad method to hide PlaceholdersTab from the DeviceEditor.xml.

Here is the custom logic to restrict the access to specific role:

public class DeviceEditorForm : Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm

public class DeviceEditorForm : Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm
{
    protected override void OnLoad(EventArgs e)
    {
        Assert.ArgumentNotNull(e, "e");
        base.OnLoad(e);
        if (!Context.ClientPage.IsEvent && Sitecore.Context.User.IsInRole(ContentAuthor))
        {
            Layout.Visible = false;
            Placeholders.Visible = false;
        }
    }
}

Thanks @Marek, your suggestion got worked out.

check DeviceEditor control (sitecore\shell\Applications\Layouts\DeviceEditor\DeviceEditor.xml)

change CodeBeside to your custom class inheriting from the original Sitecore. Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm overwrite OnLoad method to hide PlaceholdersTab from the DeviceEditor.xml.

Here is the custom logic to restrict the access to specific role:

public class DeviceEditorForm : Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm

{
    protected override void OnLoad(EventArgs e)
    {
        Assert.ArgumentNotNull(e, "e");
        base.OnLoad(e);
        if (!Context.ClientPage.IsEvent && Sitecore.Context.User.IsInRole(ContentAuthor))
        {
            Layout.Visible = false;
            Placeholders.Visible = false;
        }
    }
}

Thanks @Marek, your suggestion got worked out.

check DeviceEditor control (sitecore\shell\Applications\Layouts\DeviceEditor\DeviceEditor.xml)

change CodeBeside to your custom class inheriting from the original Sitecore. Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm overwrite OnLoad method to hide PlaceholdersTab from the DeviceEditor.xml.

Here is the custom logic to restrict the access to specific role:

public class DeviceEditorForm : Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm
{
    protected override void OnLoad(EventArgs e)
    {
        Assert.ArgumentNotNull(e, "e");
        base.OnLoad(e);
        if (!Context.ClientPage.IsEvent && Sitecore.Context.User.IsInRole(ContentAuthor))
        {
            Layout.Visible = false;
            Placeholders.Visible = false;
        }
    }
}
added 313 characters in body
Source Link

Thanks @Marek, your suggestion got worked out.

check DeviceEditor control (sitecore\shell\Applications\Layouts\DeviceEditor\DeviceEditor.xml)

change CodeBeside to your custom class inheriting from the original Sitecore. Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm overwrite OnLoad method to hide PlaceholdersTab from the DeviceEditor.xml.

Here is the custom logic to restrict the access to specific role:

public class DeviceEditorForm : Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm

public class DeviceEditorForm : Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm
{
    protected override void OnLoad(EventArgs e)
    {
        Assert.ArgumentNotNull(e, "e");
        base.OnLoad(e);
        if (!Context.ClientPage.IsEvent && Sitecore.Context.User.IsInRole(ContentAuthor))
        {
            Layout.Visible = false;
            Placeholders.Visible = false;
        }
    }
}

Thanks @Marek, your suggestion got worked out.

Here is the custom logic to restrict the access to specific role:

public class DeviceEditorForm : Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm
{
    protected override void OnLoad(EventArgs e)
    {
        Assert.ArgumentNotNull(e, "e");
        base.OnLoad(e);
        if (!Context.ClientPage.IsEvent && Sitecore.Context.User.IsInRole(ContentAuthor))
        {
            Layout.Visible = false;
            Placeholders.Visible = false;
        }
    }
}

Thanks @Marek, your suggestion got worked out.

check DeviceEditor control (sitecore\shell\Applications\Layouts\DeviceEditor\DeviceEditor.xml)

change CodeBeside to your custom class inheriting from the original Sitecore. Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm overwrite OnLoad method to hide PlaceholdersTab from the DeviceEditor.xml.

Here is the custom logic to restrict the access to specific role:

public class DeviceEditorForm : Sitecore.Shell.Applications.Layouts.DeviceEditor.DeviceEditorForm

{
    protected override void OnLoad(EventArgs e)
    {
        Assert.ArgumentNotNull(e, "e");
        base.OnLoad(e);
        if (!Context.ClientPage.IsEvent && Sitecore.Context.User.IsInRole(ContentAuthor))
        {
            Layout.Visible = false;
            Placeholders.Visible = false;
        }
    }
}
added 2 characters in body
Source Link
Marek Musielak
  • 24.2k
  • 3
  • 31
  • 64
Loading
Source Link
Loading