Xylos brands

Elio Struyf 59 blogposts

SharePoint - Part 3: Working with File Types in the Search Refiner Control Template

Elio Struyf
03/03/2014
In the previous posts I explained how to create a new refiner control, but there is one search data type that needs some special attention. The search data type that will be explained in this post is the FileType. In this post I'll show you the things that are so special about working with filetypes. Note: for this post I'll use the display template that was created in the previous post: Custom …

SharePoint - Client side managed property value formatting for catalog item page layouts

Elio Struyf
25/02/2014
In the last two blog posts, I covered how you could check which managed properties are available for the catalog item and I also explained a problem with DateTime values. In this post I'll cover the topic on how you could format the values on the client side. The reason I created this post, is because there isn't much information available around this topic. The last couple of weeks I experiment…

SharePoint - Catalog Item Reuse Web Part doesn’t show DateTime Value

Elio Struyf
25/02/2014
Last week I was doing some experiments with the creation process of page layouts of a cross-site publishing site. After a couple tests with different types of data, I saw some weird behaviour when using DateTime values. The Catalog Item Reuse web part didn't visualise the value from my item when it had a DateTime Type. The auto-created managed property for that DateTime field worked correctly, b…

SharePoint - Part 2: Adding Refinement Actions to the Custom Refiner Control

Elio Struyf
24/02/2014
In the previous post I explained how to create your first refiner control template. The template that was created wasn't that useful, because it missed the refinement actions. In this post I explain how to add these refinement actions to your template and what to do once results are refined. Note: For this post I'm going to use that display template as the starting point for this post. Here you …

Checking which Managed Properties are available for your Catalog Items

Elio Struyf
17/02/2014
I'm currently working on my first project that makes use of Cross-Site Publishing functionality from SharePoint 2013. One of the aspects is to create a couple of page layouts to visualise the managed properties from the catalog items. When you configure a catalog connection for the first time on your site, the category and catalog item pages will automatically be created. On the catalog item pag…

SharePoint - Part 1: Create Your First Search Refiner Control Template

Elio Struyf
17/02/2014
In the first part of this blog post series about custom search refiner controls, I'll describe what is minimal needed to create a clean refiner control display template. This template can later be used as a starter's template for the creation of other refinement controls. Create a New Search Refiner Control Template The first thing you'll need to do, is creating a new HTML file in the Master Pag…

Image Renditions and December Cumulative Update SharePoint 2013

Elio Struyf
03/02/2014
Once you've updated your environment with the Cumulative Update of December 2013, it could happen that you see the following errors popping up in your ULS logs: Format Exception: Input string was not in a correct format. The problem occurs if you provisioned your image renditions to the site collection via the PublishingImageRenditions.xml file. In that xml file you could specify your own dime…

Customize the star rating images in SharePoint 2013

Elio Struyf
16/01/2014
The SharePoint 2013 rating system has slightly changed. In SharePoint 2013 you can now choose to use likes or star ratings. This functionality can be turned on via the Rating settings in the list: Styling the SharePoint 2013 star rating involves some work. The only 'quick' option you have is to apply a composed look to your site. However, that means that every element will get a new look and fee…

Showing Alternating Rows in the Content Search Web Part (Display Template)

Elio Struyf
19/12/2013
Showing alternating rows can be done in various ways. You can do it via jQuery or even with CSS ***. Another way is to add an alternating class to the item via the Item Display Control. I'll explain the last method in this post. Let's start! What do you need to create an alternating row class functionality? The only thing you really need is the current item index number. Luckily this index num…

Dynamically Changing the Result Source in a SharePoint 2013 Search Center

Elio Struyf
18/12/2013
Almost two months ago Pascal Van Vlaenderen asked a question on twitter if there's a way to specify the Result Source in the QueryString (https://twitter.com/VanVlaenderenP/status/392920559853383680). Since that time, this question was on my to-do list to check this out. What I proposed back then, was to change the result source in the data provider object with JavaScript. This week I had some s…