The naming convention of taxonomy is very simple and we will explain by..
Example 1. If we have taxonomy with name of 'product groups' so our this taxonomy machine name will be 'product_groups' but we will take as a 'taxonomy-term--product-groups.html.twig' in naming convention.
Example 2. If we have taxonomy with name of 'service support' so our this taxonomy machine name will be 'service_support' but we will take as a 'taxonomy-term--services-support.html.twig' in naming convention.
Note: If have any suggestions or issue regarding 'Naming convention for taxonomy template' then you can ask by comments.
Example 1. If we have taxonomy with name of 'product groups' so our this taxonomy machine name will be 'product_groups' but we will take as a 'taxonomy-term--product-groups.html.twig' in naming convention.
Example 2. If we have taxonomy with name of 'service support' so our this taxonomy machine name will be 'service_support' but we will take as a 'taxonomy-term--services-support.html.twig' in naming convention.
Note: If have any suggestions or issue regarding 'Naming convention for taxonomy template' then you can ask by comments.
Hi,
ReplyDeleteCan you please tell the machine name for default taxonomy fields like for name and description ??
Hi Abhishek,
DeletePlease have a look for your issue..
https://drupalwebsolutions.blogspot.com/2018/08/how-to-render-fields-on-taxonomy-twig.html
Thanks