1

I've built a DisplayTemplate (ItemTemplate) for a ContentSearchWebPart. It works quite well for different fields, but I don't get my PublishingImage from the pages I'm querying. The ManagedPropertyMapping is as follows:

<mso:ManagedPropertyMapping msdt:dt="string">'Picture URL'{Picture URL}:'PublishingImage','Link URL'{Link URL}:'Path','Line 1'{Line 1}:'Title','Line 2'{Line 2}:'Description','Line 3'{Line 3}:''</mso:ManagedPropertyMapping>

I also tried the following Version, but It also doesn't works:

<mso:ManagedPropertyMapping msdt:dt="string">'Picture URL'{Picture URL}:'PublishingImage;PictureURL;PictureThumbnailURL', ......

In the following code "pictureURL" is empty while my other itemvalues are correct.

var pictureURL = $getItemValue(ctx, "Picture URL");

Has anybody an idea what I'm missing or doing wrong?

1
  • before crawling, did you see grey boxes with a questionmark instead of pictures?
    – user42952
    Jun 3, 2015 at 14:38

1 Answer 1

0

After several tries, I recognized that the code (display temaplte) works. I had to run the search crawler (full crawl) one more time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.