Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Role-based CEWP's?

  Asked By: Wendy    Date: Mar 16    Category: Sharepoint    Views: 1056

I saw a blog entry from Bob Mixon's site talking about a CEWP that is used to hide the Site Settings link. I think this is a great idea, but I would like to see if anyone had any additional code to check for the user's site group membership. If the user had site admin priviledges, then it would disable the CEWP rendering the link visible, otherwise it would go through and work normally.

Share: 

 

10 Answers Found

 
Answer #1    Answered By: Laura Walker     Answered On: Mar 16

Security trimming is a very common request. The best approach is to
write your own custom site  definition.

Pursuing a client side approach has never been finished by anyone that
I'm aware of. I think that the best way to do it is to create a single
Web Part that generates and populates JavaScript variables that can be
used client-side to hide  aspects of the page based upon a person's
current role. I realize that this requires a server component, but there
really isn't a potential client-side option.

 
Answer #2    Answered By: Nina Banks     Answered On: Mar 16

you're answer seems contradictive to me. Unfortunately, I'm not a coder, so I'm not able to pursue this solution myself. Do you know of any third-party or public domain resources available?

 
Answer #3    Answered By: Renee Murray     Answered On: Mar 16

it is really hard work. It took me 4 months to do something like that before…

 
Answer #4    Answered By: Harshini Raju     Answered On: Mar 16

This may help:

pluralsight.com/.../14302.aspx

article on role based web parts.

 
Answer #5    Answered By: Christop Mcfadden     Answered On: Mar 16

What is a CEWP?
Content Editor Web Part.

 
Answer #6    Answered By: Gopal Jamakhandi     Answered On: Mar 16

You can’t do ti via the CEWP, as cewp  is client side html. You’ll need server-side code  to check  the user’s rights.

 
Answer #7    Answered By: Chantal Rosa     Answered On: Mar 16

A content editor web part (CEWP) is a highly versatile web part that can be added to a page and you can add straight text or hidden code  within it. They are rather handy. Check out CEWP series: http://mindsharpblogs.com/todd/articles/793.aspx

 
Answer #8    Answered By: Kyla Eckert     Answered On: Mar 16

I need to finish up that series.............

 
Answer #9    Answered By: Damon Garner     Answered On: Mar 16

Renaud Comte has a check  permissions web part that shows or hides the site  Settings link  based on who you are, but his site has been down for a while now. I have emailed him asking if he has a new one. It is the only one that I know of that does what you are looking for.

 
Answer #10    Answered By: Alexis Ellis     Answered On: Mar 16

What part is contradictory?????????

 
Didn't find what you were looking for? Find more on Role-based CEWP's? Or get search suggestion and latest updates.




Tagged: