2

We are trying to build our first site on Sitecore SXA.

Is there a way to show/hide a rendering based on a field value or context?

for example

  1. hide a link or a button if the user IsAuthenticated
  2. hide a component if a boolean field value is 1?

1 Answer 1

6

SXA renderings are just like any other Sitecore components.

You can just use standard Sitecore personalization for them with conditions

  1. [Except] where the current user is annonymous
  2. Where the [specific] field [is equal] to 1

enter image description here

enter image description here

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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