erdnaxelaweb / ibexadesignintegration
Provides utilities to generate fake data in order to create a static design
Installs: 12 367
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 4
Open Issues: 1
This package is auto-updated.
Last update: 2024-08-14 07:56:14 UTC
README
-
A page template should always be associated to a content
-
A page template name should follow the following patern :
full/<content type>.html.twig
Example :
full/article.html.twig
-
The variable name use to store the content associated to a page should always be named
content
Example 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