Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SharePoint: Can’t display custom column value in Search Results

$
0
0

Good Day!

I have the List on SharePoint Site. It’s enabled for showing in search results. I see its elements in Search Results Page.

I would like to show my custom column values in Search Results. The column name is “FTP_Path”. Type is single line text

  1. I looked this article https://docs.microsoft.com/en-us/SharePoint/search/how-to-display-values-from-custom-managed-properties-in-search-resultsoption-1
  2. I created Management Property named FTPPath with Search ability enabled. I added the crawled property ows_FTP_Path as mapped crawled property
  3. I go to the Site Setting -> Master Page Gallery -> Display Templates/Search and locate the Item_Default.html file
  4. Copy the Item_Default file and rename it to Item_Copy
  5. Open the file in a text editor and find the title tag. Change the title to TEST.
  6. At the end ofManagedPropertyMapping tag I added

,'FTP_Path':'FTPPath'</mso:ManagedPropertyMapping>

  1. Updated Table tag as follows

                                                             <table>

                                                             

                                                                                             <tr>

                                                                                       <!—Some Another Item Properties -->

                                                                             </tr>

                                                                                             

                                                                                             <tr>

                                                                                             <td>

                                                                                              _#=ctx.CurrentItem.FTP_Path=#_

                                                                                             </td>

                                                                                             </tr>

                                                             </table>

 

  1.  Itold SharePoint to use my new Item_Copy template. It is working fine.

 

And I can’t see FTP_Path column values in Search results…

 

When I look my search results page by FireBug, I see that td tag with “ftp” class is empty on the page.

 

<tr>

   <td>

   </td>

</r>

 

I looked this article https://www.eliostruyf.com/making-columns-searchable-for-the-list-or-library-searchbox/

 and can’t understand, what is wrong.

Full content crawling didn’t help.

I would be grateful for any help.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>