Skip to Content
author's profile photo Former Member
Former Member

How do we restrict list of websites shown in the cmscockpit?

We have a requirement where we have different cms sites for different countries and each site has a cmsmanager. If the cmsmanager of country1 enters the cms cockpit, he should only see his country's website in the list of websites. How do we enforce this restriction?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 24, 2015 at 08:12 PM

    Hi Prashanth, You can try to create separate cmsmanager groups for users of each country by extending cmsmanagergroup. Then you can create searchRestriction on CMSSite for each cmsmanagergroup separately. eg.

    INSERT_UPDATE UserGroup;UID[unique=true];groups(uid)[mode=replace]; ;cmsmanagergroup1;cmsmanagergroup1;cmsmanagergroup for country A; ;cmsmanagergroup2;cmsmanagergroup1;cmsmanagergroup for country B;

    INSERT_UPDATE SearchRestriction;code[unique=true];name[lang=en];query;principal(UID);restrictedType(code);active;generate

    ;cmssite_restriction1;Restrict CMSSite visibility;{item:pk} NOT IN (111111);cmsmanagergroup1;CMSSite;true;true

    ;cmssite_restriction2;Restrict CMSSite visibility;{item:pk} NOT IN (2222);cmsmanagergroup2;CMSSite;true;true

    1111 is pk of CMSSite for country A & 2222 is for country B

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2015 at 10:06 AM

    Thanks Venkatesh.., this helped..

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.