-
A page template should always be associated to a content
-
A page template name should follow the following patern :
full/<content type>.html.twigExample :
full/article.html.twig -
The variable name use to store the content associated to a page should always be named
contentExample for an "article" page :
{# @fake content content('article') }} -
Use the following macro to display a content and try to follow the following patern for the name of the template used :
<view type>/<content type>.html.twig{{ macros.display_content(...template to used, ...content to display, {...parameters}, ...view type) }}Example :
{% import '@ibexadesign/macros.html.twig' as macros %} {# @fake pager pager('article') }} {% for article in pager %} {{ macros.display_content('@ibexadesign/list/article.html.twig', article, {}, 'list') }} {% endfor %} {{ pagerfanta(pager) }} -
Try to use an include when generating a recurring pattern like an image