Administration UI

Charles Matvchuk asked on February 23, 2015 04:43

Perhaps I am missing something. I have sales staff logging into the Administration system. The version I am using is 8.2 current hotfix 7.

I do not want them to be able to click the Help icon and have the ability to search help, request a feature etc. But I do want that functionality for the Administrators. How can I remove that ability just for certain roles.

Correct Answer

Brenden Kehren answered on February 23, 2015 07:18

Well this kind of goes against everything I preach but you could modify the base code file to do this. Should be a pretty easy modification, just document it when it comes to upgrade time.

Under /Admin/CMSAdministration.aspx, you'll find there is a section in there for the header, in one of the UILayoutPane controls it references file /CMSAdminControls/UI/Header.ascx. If you look at that Header.ascx user control, you'll see a reference to this control: <cms:ContextHelp runat="server" ID="contextHelp" />. In the code behind on the Page Load method, you could set it's visibility, but I'd suggest setting an attribute to it so "display: none;". I say this because I believe there is some other JS you'd have to worry about if you set it to visibility=false. By setting visibility, none of the code will be there and the JS will error out. By setting an inline style attribute the code will still render the html and not error out any JS that will be there.

Again, not anything I'd recommend but if it needs to be done, then it needs to be done, just be sure to document it.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Virgil Carroll answered on February 23, 2015 04:57

Have you looked at the UI personalization feature? https://docs.kentico.com/display/K8/UI+Personalization

Here is where you determine who can see and do what

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on February 23, 2015 05:37

@Charles, I don't believe that is configurable via the UI.

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on February 23, 2015 05:52 (last edited on February 23, 2015 05:53)

Thanks, Virgil, I am aware of those settings. I was unable to find a setting to turn off the help button round "?" with the corresponding drop down menu, there. it is on the top of the admin interface in the black header all the way to the right.

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on February 23, 2015 05:57 (last edited on February 23, 2015 05:58)

Brenden, any ideas ? I need it to be there for the admins and page developers but it needs to be removed for the sales team. I could roll my own admin UI for the sales team and put it in the page structure, but its a shame that I cannot use all the new features of the Administration Application. The sales team needs to be focused on sales, not documentation or submitting feature requests, etc.

0 votesVote for this answer Mark as a Correct answer

Virgil Carroll answered on February 23, 2015 06:20 (last edited on February 23, 2015 06:21)

Ok, I would probably say your other best option is to do some custom code to hide it based on a user's role. You should be able to track down the user control that renders the top bar and add some load code to hide what you want. Not an ideal scenario but probably your best option.

I suppose you could do it via javascript as well, test the DOM for the presence of one thing that only admins could see and then show/hide based on that.

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on February 23, 2015 07:38

I find it a bit odd that you can't do it out of the box. For sales and other teams, it makes no sense for them to be involved in the documentation, and to request features. Additionally, they don't want anyone who works outside of the development and design team to know it is a Kentico cms, due to the chance that people may want to move out on their own and take propriety information, or a disgruntled employee.

I will look at hacking it with JavaScript, although I do not like doing that. I am more of a purist. If there becomes multiple roles then it makes it even more difficult.

Any further suggestions would be greatly appreciated.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on February 23, 2015 07:54

You can change the logo on the header bar, that is documented: http://devnet.kentico.com/articles/kentico-8-technology-design-system. See the section titled "Example of custom branding".

Either JS or code behind as I mentioned would work. Either way, the file I mentioned would be where to edit it. I'd suggest this as an enhancement on future versions: http://ideas.kentico.com

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on February 24, 2015 18:19

Ended up doing as Brenden suggested and wrote some Page_Load logic which ultimately hides the question mark button based on role of the current user.

    UserInfo user = UserInfoProvider.GetUserInfo(CurrentUser.UserName);
    if (user.IsInRole("CMSDeskAdmin", SiteContext.CurrentSite.SiteName))
    {
        contextHelp.Visible = true;
    }
    else
    {
        contextHelp.Visible = false;
    }
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.