---
title: "Set up page component conditions"
slug: "set-up-page-component-conditions"
abstract: "How to set up conditions to display page components."
---
# Set up page component conditions

You can control the visibility of a component on a details page by specifying one or more conditions. For example, you can configure a **Tabs** component to only appear when the asset has a specific media type or configure an individual tab to display only when the set conditions are met.

To set up page component conditions:

1. On the menu bar, click **Manage** :mdiCogOutline:.
2. On the **Manage** page, click **Pages**.
3. On the **Pages** page, in the left pane, select a details page (such as the **Content detail** page).
4. On the details page, on the **Layout** tab, next to the component you want to add conditions to, click **Actions**:mdiDotsHorizontal: > :mdiCogOutline: **Settings**.
5. In the **Settings** dialog, on the **Conditions** tab, next to **Only show component when**, select one of the following conditions:
    - **User group condition** - use to hide components from specific user groups. Next to **User is member of**, click a comparison operator (**All of**, **Any of**, or **None of**), and then select one or more user groups.
    - **Member condition** - use to hide components when a page doesn't have a specific member. Click an entity definition in the **Member** drop-down list, click a comparison operator, and then complete the condition as needed.
    - **Renditions condition** - use to hide components when a page doesn't have specific renditions. Next to **Renditions match**, click a comparison operator (**All of**, **Any of**, or **None of** ), and then select one or more renditions.

        > [!note]
        > To make component conditions on a page work with relations, you must add those relations to the [aggregate associated with the page](https://doc.sitecore.com/ch/en/users/content-hub/create-an-aggregate.html "Create an aggregate").

6. To add another condition, click :mdiPlus: **Condition** and repeat the process.

    By default, each condition you add is connected to the previous one with an **AND** operator, meaning both conditions must be satisfied for the component to be visible. You can change the **AND** operator to an **OR** operator by clicking it.

7. Click **Save**.

> [!important]
> If you have added a **Quick edit** operation to the **EntityOperations** component, do not configure visibility conditions to be dependent on a relation or property that can be changed during an edit.

> [!tip]
> To specify conditions for individual tabs in a **Tabs** component, on the **Layout** tab, click the **Tabs** component to open its detail page. Select a tab in the left pane and, next to the row where you want to specify conditions, click **Actions** :mdiDotsHorizontal: > :mdiCogOutline: **Settings**. In the **Settings** dialog, click the **Conditions** tab and specify the conditions for the individual tab as described in step 5.