Enabling Custom Search Results Sorting
You can enable sorting by custom properties by editing
the portalconfig.xml file.
- Get the object ID of the properties you want to configure
for custom sorting.
- Navigate to the property in the Administrative Objects
Directory.
- Right-click the link to the property and then choose Properties.
This will yield a link that looks something like this:
http://portal.company.com/portal/server.pt?open=36&objID=200&parentname=ObjMgr&parentid=5&mode=1&in_hi_userid=1&cached=true
The
objId argument is the one containing the
integer you want. In this link, the object ID is 200, so you would
complete the CategoryField entry as follows:
<CategoryField_1 value="PT200"/>
- Open portalconfig.xml in a text editor
and find the <Search> section.
- Add the following entries to the <Search> section:
<CategoryName_1 value="CategoryName"/>
<CategoryField_1 value="PTObjectID"/>
Replace CategoryName with the name you want
to appear in the Sort By drop-down list (for
example, Region).
Replace ObjectID with the
integer that identifies the property object.
- To add more entries, repeat Step 3, adding analogous tags
named CategoryName_2, CategoryField_2, CategoryName_3, CategoryField_3, and so forth.
Note: The Category tags must be numbered consecutively without
skipping. For example, if there is a CategoryName_3 tag, it must be preceded by tags for CategoryName_1 and CategoryName_2.