Hiding some Sharepoint elements from ribbon only for Read Only (non admins) with custom css -


i trying make page corrections groups of site ins sharepoint. can check admin user in master page spsecuritytrimmedcontrol, how can insert custom css master page let's read users? if trying this:

<sharepoint:spsecuritytrimmedcontrol permissionsstring="viewpages" runat="server">  

css adds not read users admin user well. there chances split .css groups? thank you

this requirement might best handled using audience targeting.

you can put css script editor (or old content editor) web part , add page. click "edit web part" option in corner of web part make web part properties panel appear. @ bottom of panel, in "advanced" section, there's field can enter "target audiences."

in target audiences field, enter names of groups whom want css appear.

that web part visible members of specified groups, regardless of permissions on site.

note: real downside approach applies specific pages add web part , apply audience targeting; won't apply pages if added masterpage of site.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -