Tallan's Blog

Tallan’s Experts Share Their Knowledge on Technology, Trends and Solutions to Business Challenges

Posts Tagged "People Refinement Web Part"

Updating Filter Categories – Modifying the People Refinement Web Part

1. Open PeopleResults.aspx page in edit mode

 
2. Click on the refinement panel drop down and click on Edit Web Part

3. On the People Refinement Panel Editor, expand the Refinement panel

4. Click on the Elipses (…) on the Filter Category Definition

5. Change the FilterCategories XML
Copy the XML from the editor window (step 4) into an XML editor such as notepad++
Add the categories you wish to add to the XML. For example:
a. Adding a non-taxonomy field:
<Category   Title=”Location”
Description=”Use this filter to restrict results to a specific Office”
Type=”Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator”
MetadataThreshold=”5″
NumberOfFiltersToDisplay=”4″
MaxNumberOfFilters=”50″
SortBy=”Frequency”
SortDirection=”Descending”
SortByForMoreFilters=”Name”
SortDirectionForMoreFilters=”Ascending”
ShowMoreLink=”True”
MappedProperty=”OfficeNumber”
MoreLinkText=”show more”
LessLinkText=”show fewer”/>
b. Adding a taxonomy field
<Category    Title=”City”
Description=”City”
Type=”Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator”
MetadataThreshold=”3″
NumberOfFiltersToDisplay=”4″
MaxNumberOfFilters=”50″
ShowMoreLink=”True”
MappedProperty=”ows_MetadataFacetInfo”
MoreLinkText=”show more”
LessLinkText=”show fewer”/>
Refer to: http://msdn.microsoft.com/en-us/library/ff625183.aspx for the description of the filtercategory schema
Note: For taxonomy fields the Title refers to the column name of the taxonomy field. There is no way (atleast I could not figure a way to change the display name on the refinement panel for taxonomy fields through…

\\\