Rolling back corrupt template - Sitefinity 8.2
I made an update to the navigation control on a template that is used by about 75% of the pages on my site, and in doing so, I'm unable to make any changes, delete the control from the page, or find an option to roll back the template to a previous version.
What are my options? Is it possible to recover to an earlier version of a template, or remove the control in question from my page on the backend (via DB)?
I've tried accessing the page through a variety of different browsers, and nothing seems to allow me to edit any of the layout options, when trying to edit the template.
Hi,
The most common cause for such a problem is a JavaScript error. Since the edit wrappers around the layout controls and around the widgets are created using JavaScript an error would stop the code from executing and thus prevent the widgets from being editable.
One of the most common causes for such JavaScript errors is referencing jQuery explicitly in a template. For example the following line would cause such errors:
<
script
src
=
"//code.jquery.com/jquery-1.12.0.min.js"
></
script
>
Thank for the info. I was able to regain control over the template by going into the widget menu and deleting the one I had created. It was a little shocking to see how easy it was for a corrupt control to bring down the entire site for the most part. I'll be careful with custom controls in the future, especially those added to the templates.