Webpart Visibility

Eric Garrison asked on December 15, 2017 18:02

How do you set the visibility for a webpart to only show to users on the live site and not in the Backend / CMSDESK. I have a nav bar that I only want to show when live on site. A quick fix was to required logged in, but then when Logged in Users are on the site, they cannot see nav.

Correct Answer

Peter Mogilnitski answered on December 15, 2017 18:18

Set Visible property {% ViewMode == "LiveSite" %}

0 votesVote for this answer Unmark Correct answer

Recent Answers

Eric Garrison answered on December 15, 2017 20:23

Thank you. That was simple. I just could not find in the docs for some reason. For someone else who may read this post. You click the > next to visibility to put an dynamic function, like Peter suggested, into the field.

0 votesVote for this answer Mark as a Correct answer

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