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

Deploy Content Search Web Part in custom page.

$
0
0

Hi,

I have custom page with content search web part on it and trying to deploy it using module in feature. In elements.xml i've added AllUserWebPart element and added webpart definition which i've got after exporting existing content search web part. But after deploy my custom display template is not applied, instead default is used.
In webPart properties i have

<property name="ItemTemplateId" type="string">~sitecollection/_catalogs/masterpage/Display Templates/Content Web Parts/Custom.js</property>

What can be a cause of the problem?


Best regards, Chernobrivets


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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