Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

how to conditionally show a content editor webpart based on user currently logged in. I have 2 links on my webpart page, and i need to show one of the link to only a specific user.

is there a out of the box webpart available that can do this. I'm also working on target audience part, but for a different requirement.

share|improve this question

2 Answers 2

Like you mentioned, audience targetting would be the route I would take.

Instead of using a content editor web part though, I'd probably use a link list with the items being either audience targetted, or have item level permissions applied. The choice is yours depending on if you just need targetting or actual security.

share|improve this answer

As Eric mentions, your requirements may drive you in different directions, but you could also use some script in the CEWP to determine whether it should show itself or parts of itself. The security vs. obscurity question will determine whether script is an acceptable approach.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.