Does anyone know how to override the below template?
vendor\magento\module-backend\view\adminhtml\templates\media\uploader.phtml
.
adminhtmlmagento2overridesphtml
Does anyone know how to override the below template?
vendor\magento\module-backend\view\adminhtml\templates\media\uploader.phtml
.
Best Answer
[EDIT] Override block - recommended way.
Override Block:
Create a new module.
app/code/Vendor/Backend/etc/adminhtml/di.xml
app/code/Vendor/Backend/Block/Media/Uploader.php
Create a new Admin theme:
In this case, may we need to create new Admin theme:
http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/admin_theme_create.html
http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/admin_theme_apply.html
Remember to specify the custom Admin theme in
di.xml
.For example:
a) Create an admin theme first:
app/design/adminhtml/Vendor/CustomTheme/registration.php
app/design/adminhtml/Vendor/CustomTheme/theme.xml
b) Apply theme admin:
app/code/Vendor/Theme/etc/module.xml
app/code/Vendor/Theme/registration.php
app/code/Vendor/Theme/etc/adminhtml/di.xml