How can I override the following admin template in Craft 2?
craft/app/templates/users/_edit.html
I've tried placing the template in my own template directory, like:
templates/users/_edit.html
but this doesn't override Craft's own template.
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityHow can I override the following admin template in Craft 2?
craft/app/templates/users/_edit.html
I've tried placing the template in my own template directory, like:
templates/users/_edit.html
but this doesn't override Craft's own template.
For that path, Craft would look for the following template files, and use the first one that exists:
craft/app/templates/users/_edit
craft/app/templates/users/_edit.html
craft/app/templates/users/_edit.twig
craft/app/templates/users/_edit/index.html
craft/app/templates/users/_edit/index.twig
craft/plugins/users/templates/_edit
craft/plugins/users/templates/_edit.html
craft/plugins/users/templates/_edit.twig
craft/plugins/users/templates/_edit/index.html
craft/plugins/users/templates/_edit/index.twig
[source]
As the users/_edit.html
template in craft/app/templates
will always exist, it will always find that first and use it.
"cp.users.edit"
template hook that might be useful, depending on your specific needs.
– Mike Pepper
Aug 8 '17 at 15:06