I have site with a few hundred entries in a structure section. About 95% of these pages use the same template, with the remainder (about 20 pages) needing a special template. I manage this the following way:
The section (main) has a template called _entry.html which consists only of the following:
{% extends [entry.uri, "main/_main"] %}
I then match the uri in the templates folder and that template also extends main/_main with a block override to deal with the special case.
All of this works very well until the content editor moves the special entry in the structure, and then of course it loses its template and goes back to the default.
Is there way I can "lock" an entry to a specific template (which still inherits) so that when the entry is moved in the structure it does not "disconnect".