Ektron 9.00
Creating Business Rules for Your Website
Prerequisite
Only members of the Administrators user group and those defined in the Manage Members for Role: Add Role Member Business Rule Editor screen can work with Business Rules. See Also: Defining Roles
Business Rules let you define conditions for Web pages on your site. You choose an action based on whether the conditions are true or false when a site visitor browses your site. For example:
With Business Rules, you do not write code to set conditions and initiate actions. You simply complete the Business Rules wizard, have your developer add a Business Rules server control to your Web form, and assign a Business Ruleset to the server control. See Also: BusinessRules (deprecated) server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified..
The following list shows several conditions and actions that are already defined for you.
Conditions
Actions
After you create a rule, you can add it to multiple rulesets. This is useful if several rulesets use a common rule.
You can now add a rule (as described in Adding a New Rule to a Ruleset ) or click Back () and return to add a rule later.
After creating a ruleset, you typically add rules to it via the View Ruleset screen. This screen is the launch pad for working with existing rulesets or creating new rulesets.
You can edit a ruleset from 2 locations: the Web page or the Workarea. To edit a ruleset from the Web page, navigate to a Business Rule on a Web page while logged in. Then, right click the Business Rule icon and click Edit.
To edit from the Workarea:
When you delete a Business Ruleset, the ruleset is removed from the system permanently. However, the rules in a Ruleset are not deleted because they may be used in other Rulesets.
Does the site visitor's system have an Ektron cookie?
Usage: Cookie param “Name” equals value “Ektron”
Is the user's account balance $1000?
Usage: Custom param “AcctBlnc” equals value “1000”
A form has a Choices Field element with the Field Name “Favorite_Food” and choices of Pizza, Steak and Chicken. When a site visitor chooses Pizza and clicks submit, your rule launches a Pizza company’s website.
Usage: Form param “Favorite_Food” equals value “Pizza”
Is content with the ID of 18 being displayed?
Usage: QueryString param “ID” equals value “18”
Is the site visitor’s browser using SSL?
Usage: Server Variable param “HTTPS” equals value “On”
The order of rules in a Ruleset affects their application when a site visitor views a page. For example, you want to display a welcome message before a content item. To accomplish this, move the rule for the welcome message above the rule for a content item.
You can add a rule to multiple Rulesets. To do so: