I am planning to create a custom Content Editor view wherein Editors can only view a part of the /sitecore/content tree
and /sitecore/media library
tree. I am aware of how to configure it in the Core DB
by creating a custom button and creating a link /sitecore/shell/Applications/Content%20Editor.aspx?sc_bw=1&fo={GUID}&ro={GUID}
but so far I can only make one tree show up. Is it possible to have two trees displayed using this?
-
You can manage this by creating custom Roles as well.– Gaurav AgarwalCommented Sep 14, 2022 at 13:03
-
You should use role based access to achieve the same instead of trying to create a custom Content Editor. Based on roles, users will see parts of Sitecore content tree - doc.sitecore.com/xp/en/developers/92/…– GhanCommented Sep 14, 2022 at 13:33
1 Answer
Yes, it's possible through Sitecore roles
.
- Create a new Role in
Role Manager
- Inherit "
Sitecore Client Users
" and "Sitecore Client Authoring Roles
" into the new role created in step1.
Sitecore Client Users role allows the user to login into the Sitecore portal.
Sitecore Client Authoring role will provide basic authoring access to the content and media items.
- Once the role is created, apply the newly created role to the user.
- Verify the changes by logging into the Sitecore with user mapped with new role, now you are able to see only Content, Form and Media Library Nodes.
Note: Sitecore Client Authoring role by default inherits from Author and Forms Editor Roles, if you want to disable Form editing you can explicitly deny read access to forms in your new Role.
Also, you can add few more other roles to provide publishing access etc..,