Wednesday, October 1, 2008

Users still can see target audience items

Target audience not working/ Users still can see target audience items

solution:
  1. Enable audience targeting on the list or library
    1.1. Click the list or library that contains the item you want to target.
    1.2. On the list toolbar, click Settings, and then click List Settings or Document Library Settings.
    1.3. Under General Settings, click Audience targeting settings.
    1.4. Select the Enable audience targeting check box.
  2. Specify the target audience on the items
    2.1. Click the arrow next to the name of an item in the list or library, and then click Edit Properties.
    2.1. In the Target Audiences list, add one or more audiences.
  3. Display the item in a Web Part (this step is missing in the course materials 5061A)
    3.1. On the page where you want to display the item, on the Site Actions menu, click Edit Page.
    3.2. Click Add a Web Part, and then under Default, click Content Query Web Part.
    3.3. Click Add.
    3.4. Click Edit and then click Modify Shared Web Part to open the tool pane (tool pane: A task pane on a Web Part Page used to browse, search for, and import Web Parts from Web Part galleries, and to modify custom and common Web Part properties.) for the Web Part.
    3.5. In the tool pane, under Query, click Show items from the following list and then specify the location of the list.
    3.6. Under List Type, choose the type of list that the item is a member of. In this example, click Document Library. Only items in the list type that you choose are processed by the query.
    3.7. Under Audience Targeting, do the following.
ToDo this

Display the list items to the target audience that you specified in Step 2: Specify the target audience on the items, when the current user is a member of the audience.

Select the Apply Audience Filtering check box. This is required for the query to work properly.


Also display the items in the list that do not have a target audience specified. These items are displayed to everyone.

Select the Include items that are not targeted check box. This is optional.