# Step 5: Create Two Content Selectors

In this step, you will create two content selectors that contain the queries for retrieving content from the BEA Virtual Content Repository and the rules that trigger the queries to run.

The tasks in this step are:

- Create a "modern" content selector
- Create a "classic" content selector

Create a "modern" content selector

1. In the WebLogic Workshop Application window, right-click data\contentselectors\GlobalContentSelectors, and choose New --> Content Selector.

2. In the New File window, enter modern.sel for the content selector name, and click Create.

3. In the Content Selector Designer, click the [empty content search] link. The Content Search window appears.
4. In the Property set field, select Standard.
5. In the Property field, make sure cm_binaryName is selected, and click Add. The Content Search Values window appears.
6. In the Comparison field, select contains.
7. In the Value field, enter college and click Add.
8. Click OK. You are returned to the Content Search window. Click OK.
9. In the Available Conditions area of the Content Selector designer, right-click "The current date is after," and choose Delete.
10. In the Palette window, drag The visitor has specific characteristics into the Content Selector designer.
11. In the top of the Content Selector Designer, click the [characteristics] link. The Visitor Characteristics window appears.
12. In the Visitor property set field, select userpreferences.
13. In the Visitor property field, make sure Graphic Preference is selected, and click Add. The Visitor Characteristic Values window appears.
14. In the Comparison field, make sure is equal to is selected.
15. In the Value field, select modern, click Add, and click OK.
16. In the Visitor Characteristics window, click OK.
17. Save and close the file.

Create a "classic" content selector

1. Create another content selector called classic.sel.
2. In the Content Selector Designer, click the [empty content search] link. The Content Search window appears.
3. In the Property set field, select Standard.
4. In the Property field, make sure cm_binaryName is selected, and click Add. The Content Search Values window appears.
5. In the Comparison field, select contains.
6. In the Value field, enter IRACampaign and click Add.
7. Click OK. You are returned to the Content Search window. Click OK.
8. In the Available Conditions area of the Content Selector designer, right-click "The current date is after," and choose Delete.
9. In the Palette window, drag The visitor has specific characteristics into the Content Selector designer.
10. In the top of the Content Selector Designer, click the [characteristics] link. The Visitor Characteristics window appears.
11. In the Visitor property set field, select userpreferences.
12. In the Visitor property field, make sure Graphic Preference is selected, and click Add. The Visitor Characteristic Values window appears.
13. In the Comparison field, make sure is equal to is selected.
14. In the Value field, select classic, click Add, and click OK.
15. In the Visitor Characteristics window, click OK.
16. Save and close the file.

Click one of the following arrows to navigate through the tutorial: