Targeting rules determine when content appears to a set of visitors. You build a targeting rule by identifying a piece of content and defining who can see it, when it will be displayed, and what will happen if the who and when parameters aren’t met. A rule is a member of a rule set, which begins with a “show” or “hide” statement and ends with a separator.

To inspect the targeting rules for an item in the Features repository:

This targeter consists of three rule sets. Each rule set contains one rule. You can confirm this by selecting one line in the rule set and the Edit > Select Entire Rule command. The entire rule set is selected. For this example you need only examine the first rule:

Show this content:
Items whose Target Audience includes Person's Strategy
And whose Language starts with Locale's localeString
To these people:
people whose Usertype is investor

Each rule is based on a piece of content and begins with a content-related phrase. This phrase describes what item the page should display. An item, in this example, is a file in the Features repository called a feature. In short, this rule states that all items in the Features repository that meet both criteria will display on an investor’s home page. Each criterion is based on a property value held by a feature.

Items whose Target Audience includes Person's Strategy

All items in the Features repository maintain a property called Target Audience that has the same possible values as the Person's Strategy on a user profile. When you selected the investment style “aggressive,” you updated this profile property. In this way, investors only see the features they’re likely to be interested in.

And whose Language starts with Locale's localeString

Because items in the Features repository are offered in English, French, German, and Japanese, each item has a property called Language that contain its locale. Similarly, each user profile contains locale settings in a Locale property. This portion of the rule ensures that the features appear on a home page in an investor’s language of choice, by comparing the profile value against the feature value.

Features that meet both criteria are presented to investors. The Usertype property on a user profile determines whether visitors are recognized as a guest, an investor, or a broker.