Stop Sitefinity from regenerating MVC Bootstrap templates

Posted by Community Admin on 05-Aug-2018 07:16

Stop Sitefinity from regenerating MVC Bootstrap templates

All Replies

Posted by Community Admin on 07-Jul-2016 00:00

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? 

Posted by Community Admin on 07-Jul-2016 00:00

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

Posted by Community Admin on 07-Jul-2016 00:00

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? 

This thread is closed