-
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
forked from erdnaxelaweb/ibexadesignintegration
-
Notifications
You must be signed in to change notification settings - Fork 0
Provides utilities to design an ibexa website
License
ayoub-acx/ibexadesignintegration
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Provides utilities to design an ibexa website
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- PHP 97.5%
- Twig 1.5%
- Other 1.0%