There is a serious design issue with the way content templates are edited.

If you happen to insert a php error in your custom content template (as I did, wrote emtpy()), there is no way of fixing that error because when you try to access the template, the code gets executed and the site isn't rendered.

What is needed is a "Reset" button on the overview page that lists all content templates in order to bypass the "Edit" screen!

Comments

jjeff’s picture

Good idea!

I will look into this when I get a chance. In the meantime, if anyone wants to roll a patch, I'll be happy to take a look.

-j

jrglasgow’s picture

Status: Active » Fixed

The ability to delete the template from /admin/content/templates is in 5.x-1.9

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

demm’s picture

Status: Closed (fixed) » Active

Imho this isn't fixed with a simple delete button, there should be a way to edit the faulty code. Deleting the code should only be a last resort.