Hello,
Any one know the correct file path to add a new field in admin -- > category --> categories.update --> General tab --> Information --> under name?
I need to put a new field on top in Information dropdown or before the Information dropdown.
I have added:
/design/backend/templates/addons/my_addon/hooks/categories/detailed_content.pre.tpl
but unfortunately this add the field not in General tab but in Add-ons tab.
Thanks,
Nicolas
Hello,
You can only add code to the places where hooks are present. Hook "detailed_content" is responsible for adding content into Add-ons tab. There is no hook available to add a field under category name field.
You can check which hooks are available by opening this file:
/design/backend/templates/views/categories/update.tpl
And searching for the word "hook".
Best regards,
Robert
Hello,
Any one know the correct file path to add a new field in admin -- > category --> categories.update --> General tab --> Information --> under name?
I need to put a new field on top in Information dropdown or before the Information dropdown.
I have added:
/design/backend/templates/addons/my_addon/hooks/categories/detailed_content.pre.tpl
but unfortunately this add the field not in General tab but in Add-ons tab.
Thanks,
Nicolas
The only way to do it is to override the whole template
/design/backend/templates/addons/my_addon/overrides/views/categories/update.tpl
But it is not recommended since new features on this page in future upgrades can be lost
Thank you both for your answers