You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(container): Simplify content handling in DotCMSExtension
- Updated generateHtmlBasedOnProperty method to accept Contentlet type for improved type safety.
- Removed unused getContainersData method and streamlined container content handling in Twig templates.
- Enhanced README to reflect changes in functionality.
This Twig extension provides utility functions for rendering DotCMS content in templates - handling container data extraction, content-type HTML generation, and proper attribute formatting for DotCMS elements.
354
+
This Twig extension provides utility functions for rendering DotCMS content in templates - handling content-type HTML generation and proper attribute formatting for DotCMS elements.
388
355
389
356
### 6. Create Templates
390
357
@@ -414,8 +381,7 @@ Create the necessary Twig templates to render DotCMS content:
414
381
{% if column.containers is defined and column.containers is not empty %}
415
382
{% for container in column.containers %}
416
383
{% include 'dotcms/container.twig' with {
417
-
'container': container,
418
-
'containers': containers
384
+
'container': container
419
385
} %}
420
386
{% endfor %}
421
387
{% endif %}
@@ -442,19 +408,16 @@ Create the necessary Twig templates to render DotCMS content:
0 commit comments