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

How to deploy display templates via feature

$
0
0

Hello all.

I'm attempting to deploy display templates using a feature. I'm able to add the display templates to the correct folder in the master page gallery. However, the associated .js file isn't generated after the file is added. If I edit the properties of the same item, the .js file is generated afterwards. Has anyone else deployed display templates via feature? Thanks in advance.

Here's what my elements.xml file looks like:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/"><Module Name="Display Templates" Path="Display Templates" Url="_catalogs/masterpage/Display Templates/Content Web Parts" RootWebOnly="TRUE"><File Path="Item_Recipe.html" Type="GhostableInLibrary" Url="Item_Recipe.html"></File></Module></Elements>


Lester Sconyers


Viewing all articles
Browse latest Browse all 25064

Trending Articles



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