Hi guys
I am deploying some html files to the display templates\search folder of a SharePoint publishing site using a module which is as follows:
<Module Name="_catalogs" Path="_catalogs\masterpage" Url="_catalogs/masterpage">
<File Path="Display Templates\Search\Control_SlideImage.html" Url="Display Templates/Search/Control_SlideImage.html" Level="Draft" ReplaceContent="TRUE" Type="GhostableInLibrary">
<Property Name="FeatureId" Value="$SharePoint.Feature.Id$" Type="string"></Property>
</File>
<File Path="Display Templates\Search\Item_SlideImage.html" Url="Display Templates/Search/Item_SlideImage.html" Level="Draft" ReplaceContent="TRUE" Type="GhostableInLibrary">
<Property Name="FeatureId" Value="$SharePoint.Feature.Id$" Type="string"></Property>
</File>
</Module>
I also have a feature receiver event that uses the $SharePoint.Feature.Id$ value of these files to search for them and to update and publish them. This way the associated js file gets generated for those html files.
My problem is this worked fine when I deployed the html files for the first time. But then when I changed an html file and redeployed, my change did not appear in the deployed html and the associated js file in the search folder.
I have tried deleting the old versions of those files from the search folder and all the bin folders I could find in the site collection and tried again but I am still getting the original version of those files.
Any solution is appreciated.
Regards
Seemorgh