dimanche 1 mars 2015

Link Description crawled property in a display template - SP2013



I am a bit of a noob when it comes to display templates, so please bare with me.


I am trying to map the link description from a URL column to my display template. However I have no idea what that property is called. This is probably very simple, but as I said I am a bit of a noob.


I have searched through the crawled properties but cannot find it and am not sure if it is crawled out of the box.


I have tried a few different random mappings to see if the text gets pulled in, but it doesn't return any values. Such as:



'Link Text'{Link Text}:'OWS_URLDescription';


Then added:



var linkText = $getItemValue(ctx, "Link Text");


My markup:



<div class="slide" data-displaytemplate="ItemLargePicture">
_#= pictureMarkup =#_
<div class="caption">
<h2 class="title"> _#= line1 =#_</h2>
<p class="text"> _#= line2 =#_</p>
<p class="link"><a href="_#= linkURL =#_" target="_blank">_#= I NEED THIS VALUE =#_</a></p>
</div>
</div>


Any help would be much appreciated.








0 commentaires:

Enregistrer un commentaire