jhae / shopware-6-twig-extensions
Shopware 6 Twig extensions
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:shopware-platform-plugin
Requires (Dev)
- maspeng/test-helper: ^0.2.0
- phpspec/prophecy-phpunit: ^2.0
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2024-04-12 18:59:55 UTC
README
Shopware 6 Twig Extensions
This Shopware 6 plugin adds more Twig features.
Installation
- Navigate to the root folder of your Shopware installation.
- Download the plugin.
composer require jhae/shopware-6-twig-extensions
- Refresh the Shopware plugin list.
./bin/console plugin:refresh
- Install and activate the plugin.
./bin/console plugin:install --activate JhaeTwigExtensions
You are ready to use the Twig extensions in your templates.
Twig functions
sw_cms_page
This function allows you to include any CMS page you created in "Content / Shopping Experiences".
Usage
{{ sw_cms_page(id) }}
Parameters
Name | Type | Description |
---|---|---|
id |
string |
The ID of the CMS page. Example: 'c00dd7c0b7684ebca451f49dd6e636aa' |