Stop Sitefinity from regenerating MVC Bootstrap templates - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Stop Sitefinity from regenerating MVC Bootstrap templates

  • Stop Sitefinity from regenerating MVC Bootstrap templates
  • How can we stop Sitefinity from regenerating the MVC Bootstrap templates? 

    I've deleted them a number of times and noticed they keep being regenerated and I've read that Sitefinity is doing this by design, but I'd like to know if there's a way to stop this from happening? 

  • Hi Jacques. Sitefinity automatically generate template, based on files inside Layout folder.

    Just delete ResourcePackages\Bootstrap\MVC\Views\Layouts\default.cshtml and after that delete bootstrap template in backend

  • Thanks Victor. 

    I've actually made a copy of the Bootstrap package and then excluded it out of the project. So to confirm, you're saying that if I delete the default.cshtml file out of the original Bootstrap package it should stop Sitefinity from regenerating the additional templates? 

    For testing purpses: What kicks off the process to regenerate these templates in Sitefinity? Is it an application restart?