---
title: How to use Smart Rules
description: Learn how to add a smart rule and logic to content inside the SiteManager visual CMS
---

[Skip to content](https://support.sitemanager.io/en/logic/configuration-implementation/how-to-use-smart-rules#main-content)

[![SiteManager Platform](https://support.sitemanager.io/hs-fs/hubfs/SM_Platform-logo.png?width=164&height=40&name=SM_Platform-logo.png)](https://support.sitemanager.io/en?hsLang=en)

Open main navigation

Close main navigation

- [Go to sitemanager.io](https://www.sitemanager.io/)

[Go to sitemanager.io](https://www.sitemanager.io/)

 How can we help?

- There are no suggestions because the search field is empty.

1. [Knowledge Base](https://support.sitemanager.io/en?hsLang=en)
2. [Logic (Smart Content)](https://support.sitemanager.io/en/logic-smart-content?hsLang=en)
3. [Configuration & Implementation](https://support.sitemanager.io/en/logic-smart-content?hsLang=en#configuration-implementation)

# How to use Smart Rules

## Learn how to add a smart rule and logic to content inside the SiteManager visual CMS

First you need to finish the [smart rules configuration](https://support.sitemanager.io/smart-content-configuration?hsLang=en) and [implemented them in the code](https://support.sitemanager.io/implement-smart-content?hsLang=en) of the projects we can start using them in the CMS. 

 

Our Smart Content module has recently been renamed to Logic. All documentation will be updated with the new name in the future.

### 1. Smart Rules Examples

In this example we are adding smart rules on the page properties from the homepage. Click New Rule to add a new smart rule.

![smart\_rule\_box](https://support.sitemanager.io/hs-fs/hubfs/smart_rule_box.jpg?width=688&name=smart_rule_box.jpg)

Depending on the configuration you will be able to add one or more of the following smart rules:

 

**1.1. Access (behavior) Logic**

Make sure Access Logic is selected. Select the Group you want to apply the logic to. 

You have two behavior options: show content when visitor is in group or show content when visitor is NOT in group.

![smart\_rule\_modal\_access](https://support.sitemanager.io/hs-fs/hubfs/smart_rule_modal_access.jpg?width=688&name=smart_rule_modal_access.jpg)

You can change the behavior by clicking the ⋮ icon. You can also delete the rule you set. 

You can set one smart access (behavior) rule per group.

![smart\_rule\_behavior](https://support.sitemanager.io/hs-fs/hubfs/smart_rule_behavior.jpg?width=688&name=smart_rule_behavior.jpg)

 

**1.2. A/B Testing**

Make sure A/B testing is selected for Smart Type. Select the group and set the percentage for the occurence of this trigger.

![smart\_rule\_modal\_ab](https://support.sitemanager.io/hs-fs/hubfs/smart_rule_modal_ab.jpg?width=688&name=smart_rule_modal_ab.jpg)

Always make sure the total percentage of all the smart rules for one set is exactly 100%. If this is not the case the A/B testing will not trigger and an error will be shown.

![smart\_rule\_ab](https://support.sitemanager.io/hs-fs/hubfs/smart_rule_ab.jpg?width=688&name=smart_rule_ab.jpg)

Advanced tip: If you want to add a visitor in a group by visiting a certain page you can do this by adding a public parameter when entering this page (see [configuration 2.2.](https://support.sitemanager.io/smart-content-configuration?hsLang=en)). However if you don't want to use a parameter you can always add an A/B testing smart rule and set the group to 100% achieving the same effect.

 

**1.3. Time Logic**

Select Time Behavior as the type of smart rule you want to add. You will also see the timezone that was set-up in the [smart content configuration](https://support.sitemanager.io/smart-content-configuration?hsLang=en).

![smart\_rule\_modal\_time](https://support.sitemanager.io/hs-fs/hubfs/smart_rule_modal_time.jpg?width=688&name=smart_rule_modal_time.jpg)

You can choose to set a start and or end date. You can also ignore this and use time only.

![smart\_rule\_modal\_timedate](https://support.sitemanager.io/hs-fs/hubfs/smart_rule_modal_timedate.jpg?width=688&name=smart_rule_modal_timedate.jpg)

 

You can choose to set a start and or end time for your smart rule.

![smart\_rule\_modal\_timehour](https://support.sitemanager.io/hs-fs/hubfs/smart_rule_modal_timehour.jpg?width=688&name=smart_rule_modal_timehour.jpg)

When a time rule is set you can see if the rule is currently visible or invisible. Click the ⋮ icon to delete the rule. 

![smart\_rule\_time](https://support.sitemanager.io/hs-fs/hubfs/smart_rule_time.jpg?width=688&name=smart_rule_time.jpg)

 

### 2. Smart Rules locations in the CMS

Depending on the configuration and implementation of Smart Content it is possible to find the smart content rules in these places:

![smart\_rule\_box](https://support.sitemanager.io/hs-fs/hubfs/smart_rule_box.jpg?width=688&name=smart_rule_box.jpg)

**2.1. Pages**

When you go to page management and click on the settings icon of a page you will see the smart content rules box.

![smart\_location\_pages](https://support.sitemanager.io/hs-fs/hubfs/smart_location_pages.jpg?width=688&name=smart_location_pages.jpg)

**2.2. Content Section**

When you open the options menu of a content section you will be able to see the smart content.

![smart\_location\_section](https://support.sitemanager.io/hs-fs/hubfs/smart_location_section.jpg?width=425&name=smart_location_section.jpg)

 

**2.3. Page Content input field**

When you edit page content it's possible the smart content input field has been added here.

![smart\_location\_contentinput](https://support.sitemanager.io/hs-fs/hubfs/smart_location_contentinput.jpg?width=442&name=smart_location_contentinput.jpg)

 

**2.4. Layout Content input field**

When you edit layout content it's possible the smart content input field has been added here.

![smart\_location\_widget\_input](https://support.sitemanager.io/hs-fs/hubfs/smart_location_widget_input.jpg?width=435&name=smart_location_widget_input.jpg)

 

**2.5. Database Entry and/or input field**

 Smart content rules could've been added to the set-up of your database entry.

When you edit database content it's also possible the smart content input field has been used here.

![smart\_location\_database](https://support.sitemanager.io/hs-fs/hubfs/smart_location_database.jpg?width=688&name=smart_location_database.jpg)

 

 

 

- [Getting Started](https://support.sitemanager.io/en/getting-started?hsLang=en)
- [Dashboard](https://support.sitemanager.io/en/dashboard?hsLang=en#main-content)

    - [Getting Started](https://support.sitemanager.io/en/dashboard?hsLang=en#getting-started)
    - [Project Dashboard](https://support.sitemanager.io/en/dashboard?hsLang=en#project-dashboard)
    - [White Label & Add-ons](https://support.sitemanager.io/en/dashboard?hsLang=en#white-label-add-ons)
    - [Go Live](https://support.sitemanager.io/en/dashboard?hsLang=en#go-live)
- [Account](https://support.sitemanager.io/en/account?hsLang=en#main-content)

    - [Account Settings](https://support.sitemanager.io/en/account?hsLang=en#account-settings)
    - [My Company](https://support.sitemanager.io/en/account?hsLang=en#my-company)
    - [Subscription](https://support.sitemanager.io/en/account?hsLang=en#subscription)
- [Project](https://support.sitemanager.io/en/project?hsLang=en#main-content)

    - [General](https://support.sitemanager.io/en/project?hsLang=en#general)
    - [Upgrade Project](https://support.sitemanager.io/en/project?hsLang=en#upgrade-project)
- [SEO](https://support.sitemanager.io/en/seo?hsLang=en#main-content)

    - [Basics](https://support.sitemanager.io/en/seo?hsLang=en#basics)
    - [Advanced](https://support.sitemanager.io/en/seo?hsLang=en#advanced)
- [Go Live](https://support.sitemanager.io/en/go-live?hsLang=en#main-content)

    - [Prepare Project](https://support.sitemanager.io/en/go-live?hsLang=en#prepare-project)
    - [Prepare Domain](https://support.sitemanager.io/en/go-live?hsLang=en#prepare-domain)
    - [Going Live](https://support.sitemanager.io/en/go-live?hsLang=en#going-live)
- [Content](https://support.sitemanager.io/en/content?hsLang=en#main-content)

    - [Getting Started](https://support.sitemanager.io/en/content?hsLang=en#getting-started)
    - [Page Management](https://support.sitemanager.io/en/content?hsLang=en#page-management)
    - [Content Management](https://support.sitemanager.io/en/content?hsLang=en#content-management)
    - [Language Management](https://support.sitemanager.io/en/content?hsLang=en#language-management)
    - [Image Library](https://support.sitemanager.io/en/content?hsLang=en#image-library)
    - [Collaborating on a project](https://support.sitemanager.io/en/content?hsLang=en#collaborating-on-a-project)
- [Page Components](https://support.sitemanager.io/en/page-components?hsLang=en#main-content)

    - [Getting Started](https://support.sitemanager.io/en/page-components?hsLang=en#getting-started)
    - [HTML](https://support.sitemanager.io/en/page-components?hsLang=en#html)
    - [CSS](https://support.sitemanager.io/en/page-components?hsLang=en#css)
    - [JavaScript (JS)](https://support.sitemanager.io/en/page-components?hsLang=en#javascript-js)
    - [How To](https://support.sitemanager.io/en/page-components?hsLang=en#how-to)
- [Layout Components](https://support.sitemanager.io/en/layout-components?hsLang=en)
- [No-Code Editor](https://support.sitemanager.io/en/no-code-editor?hsLang=en#main-content)

    - [Getting Started](https://support.sitemanager.io/en/no-code-editor?hsLang=en#getting-started)
    - [Properties](https://support.sitemanager.io/en/no-code-editor?hsLang=en#properties)
    - [Advanced](https://support.sitemanager.io/en/no-code-editor?hsLang=en#advanced)
- [Design](https://support.sitemanager.io/en/design?hsLang=en#main-content)

    - [Overview](https://support.sitemanager.io/en/design?hsLang=en#overview)
    - [Design editor](https://support.sitemanager.io/en/design?hsLang=en#design-editor)
    - [Design Panels](https://support.sitemanager.io/en/design?hsLang=en#design-panels)
    - [Responsive](https://support.sitemanager.io/en/design?hsLang=en#responsive)
    - [Fonts](https://support.sitemanager.io/en/design?hsLang=en#fonts)
    - [Layouts](https://support.sitemanager.io/en/design?hsLang=en#layouts)
- [Code](https://support.sitemanager.io/en/code?hsLang=en#main-content)

    - [Introduction](https://support.sitemanager.io/en/code?hsLang=en#introduction)
    - [Token Management](https://support.sitemanager.io/en/code?hsLang=en#token-management)
    - [Project Setup](https://support.sitemanager.io/en/code?hsLang=en#project-setup)
    - [ToolStack](https://support.sitemanager.io/en/code?hsLang=en#toolstack)
    - [Private Library](https://support.sitemanager.io/en/code?hsLang=en#private-library)
- [Dynamic Content](https://support.sitemanager.io/en/dynamic-content?hsLang=en#main-content)

    - [Getting started](https://support.sitemanager.io/en/dynamic-content?hsLang=en#getting-started)
    - [Basics](https://support.sitemanager.io/en/dynamic-content?hsLang=en#basics)
    - [Advanced](https://support.sitemanager.io/en/dynamic-content?hsLang=en#advanced)
- [External Content](https://support.sitemanager.io/en/external-content?hsLang=en#main-content)

    - [Getting started](https://support.sitemanager.io/en/external-content?hsLang=en#getting-started)
    - [Configuration & implementation](https://support.sitemanager.io/en/external-content?hsLang=en#configuration-implementation)
- [Logic (Smart Content)](https://support.sitemanager.io/en/logic-smart-content?hsLang=en#main-content)

    - [Getting Started](https://support.sitemanager.io/en/logic-smart-content?hsLang=en#getting-started)
    - [Configuration & Implementation](https://support.sitemanager.io/en/logic-smart-content?hsLang=en#configuration-implementation)
    - [Logic](https://support.sitemanager.io/en/logic-smart-content?hsLang=en#logic)
    - [AB testing](https://support.sitemanager.io/en/logic-smart-content?hsLang=en#ab-testing)
    - [Timed Content](https://support.sitemanager.io/en/logic-smart-content?hsLang=en#timed-content)
    - [Password Protected Content](https://support.sitemanager.io/en/logic-smart-content?hsLang=en#password-protected-content)
    - [Smart API](https://support.sitemanager.io/en/logic-smart-content?hsLang=en#smart-api)
- [Integrations](https://support.sitemanager.io/en/integrations?hsLang=en#main-content)

    - [Getting Started](https://support.sitemanager.io/en/integrations?hsLang=en#getting-started)
    - [Integrations](https://support.sitemanager.io/en/integrations?hsLang=en#integrations)
    - [Advanced](https://support.sitemanager.io/en/integrations?hsLang=en#advanced)
- [Modules](https://support.sitemanager.io/en/modules?hsLang=en#main-content)

    - [Getting Started](https://support.sitemanager.io/en/modules?hsLang=en#getting-started)
    - [Modules](https://support.sitemanager.io/en/modules?hsLang=en#modules)
- [Upgrade Center](https://support.sitemanager.io/en/upgrade-center?hsLang=en#main-content)

    - [Components](https://support.sitemanager.io/en/upgrade-center?hsLang=en#components)
- [Forms](https://support.sitemanager.io/en/forms?hsLang=en#main-content)

    - [General](https://support.sitemanager.io/en/forms?hsLang=en#general)
    - [Captcha](https://support.sitemanager.io/en/forms?hsLang=en#captcha)
    - [Form Actions](https://support.sitemanager.io/en/forms?hsLang=en#form-actions)
    - [Extending Forms](https://support.sitemanager.io/en/forms?hsLang=en#extending-forms)
    - [Email Templates](https://support.sitemanager.io/en/forms?hsLang=en#email-templates)
    - [Advanced](https://support.sitemanager.io/en/forms?hsLang=en#advanced)
- [Cookie Settings](https://support.sitemanager.io/en/cookie-settings?hsLang=en#main-content)

    - [Getting Started](https://support.sitemanager.io/en/cookie-settings?hsLang=en#getting-started)
    - [Configuration](https://support.sitemanager.io/en/cookie-settings?hsLang=en#configuration)
- [API Call](https://support.sitemanager.io/en/api-call?hsLang=en#main-content)

    - [Configuration](https://support.sitemanager.io/en/api-call?hsLang=en#configuration)

[![SiteManager Icon](https://support.sitemanager.io/hs-fs/hubfs/logo_icon_big.png?width=15&height=24&name=logo_icon_big.png "SiteManager Icon")](https://support.sitemanager.io/en?hsLang=en)

 

<https://www.facebook.com/TeamSiteManager/> <https://twitter.com/TeamSiteManager/> <https://www.instagram.com/teamsitemanager/> <https://www.linkedin.com/company/sitemanager/> <https://www.youtube.com/user/SiteMNGR/>

Copyright © 2026, SiteManager Group