Add a Faceted Search Orchestrator |
Top Previous Next |
Any use of faceted navigation requires a Faceted Search Orchestrator (FSO) web part. This web part is an instance of a NetworkedPlanet.EPiServerTopicMapIndexModule.WebParts.FacetedSearchOrchestratorEPiServerWebPart. The FSO control performs the co-ordination between all the facet controls on the page: <EPiParts:FacetedSearchOrchestratorEPiServerWebPart runat="server" ID="fso" AlwaysShowResults="true" ResultTypePsi="http://www.networkedplanet.com/psi/organisation/person" /> Then in the code-behind file: protected override void OnLoad(EventArgs e) { this.fso.ShowPublishedOnly = (this.CurrentPage.Status == EPiServer.Core.VersionStatus.Published); } A description of the attributes may be found on the API documentation for those controls. The FSO co-ordinates provides data of the current available selections to the different facet selectors, then accepts updates from them as the user gradually narrows down the search for the topic they are looking for. It should be noted that the FSO does not render any mark-up, it is purely there are data handler. It is allowed to add multiple FSOs to a page, allowing multiple faceted searches to take place on the same page. |