The naming convention of node/content type is very simple and we will explain by example here..
Example 1. If we have content type with name of 'customer story' so our this content type machine name will be 'customer_story' but we will take as a 'node--customer-story--full.html.twig' in naming convention.
Example 2. If we have content type with name of 'products' so our this content type machine name will be 'products' but we will take as a 'node--products--full.html.twig' in naming convention.
Example 3. If we have basic page single node like node id '58', So we will take as a 'node--58.html.twig' in naming convention.
Note: If have any suggestions or issue regarding 'Naming convention for node/content type template' then you can ask by comments.
Example 1. If we have content type with name of 'customer story' so our this content type machine name will be 'customer_story' but we will take as a 'node--customer-story--full.html.twig' in naming convention.
Example 2. If we have content type with name of 'products' so our this content type machine name will be 'products' but we will take as a 'node--products--full.html.twig' in naming convention.
Example 3. If we have basic page single node like node id '58', So we will take as a 'node--58.html.twig' in naming convention.
Note: If have any suggestions or issue regarding 'Naming convention for node/content type template' then you can ask by comments.
No comments:
Post a Comment