Custom search results page: Refinements UseDefaultConfiguration=“false” causes rendering issue

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/25154

  •  06-12-2019
  •  | 
  •  

Question

I'm working on a custom search results page, located in the layouts folder. The idea is that depending on the site where the search was performed, the refinement panel will be shown or not (as asp:panel is shown or hidden accordingly). I mention this to explain why I'm creating a custom application page, rather than just a regular SharePoint page in a Pages library.

A colleague is creating a bunch of custom refinements, so the refinement category Managed Metadata Columns is needed, but all the default categories (site, author, etc) should be removed. To achieve this we customized the FilterCategoriesDefinition.

Naturally in order to use this custom FilterCategoriesDefinition we also have to set UseDefaultConfiguration to be False. However, when we do this last part, the rendering of the refinements panel is broken - see screenshot below.

If I reset the web part to use the default FilterCategoriesDefinition (i.e. I add the web part to a page in SharePoint Designer, then copy the full web part definition to my custom page) and only change UseDefaultConfiguration to be False, the rendering is still not working correctly.

We tried this on a relatively unchanged ootb SharePoint Server 2010 installation, with default master pages and page layouts (i.e. no branding), and the same issue exists there, so I'm suspecting my heavily branded site is not the issue.

Any ideas?

Here's a screenshot of what I mean: enter image description here

Was it helpful?

Solution

QMKevin,

Maybe i found a solution:

In the refinement webpart, view this section:

> <Xsl> <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet
> version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
> xmlns:ddwrt2="urn:frontpage:internal">

remove

<?xml version="1.0" encoding="utf-8"?>

maybe spd2010 add this line to define the xml version, but the webpart don´t need this line.

try and tell me... on monday i continue trying solve this bug, i'm tired.

OTHER TIPS

Normally, when you edit the refinement panel web part in the site, you get an option to uncheck the 'Use Default Configuration' at the bottom. Did you try changing this field from the UI and then modifying the same in SharePoint Designer rather than making the UseDefaultConfiguration to be False in SPD?

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top