0

Hopefully, a quick question. Can you hide a shared site from the 'Site Selector' component in SXA? The site is flagged as shared and has no host name but still it shows as a selection. I assume there is a check box somewhere? Maybe I missed it. Thanks!

1 Answer 1

0

As per my understanding, there is no option in Sitecore to hide a site. If you check the logic for the Site Selector, it is trying to get the children of the current Tenant like this.

  protected virtual IEnumerable<Item> GetSites() => (IEnumerable<Item>) this.MultisiteContext.TenantItem.Children;

And there is no property indicating that they are using it to mark a site as hidden.

I hope anyone has done something else to do this, but this is just my understanding.

Hope this makes sense.

Your Answer

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

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