Element für HTML-, CSS-, JS- und Twig-Code für die Erlebniswelten
Die Erweiterung stellt einen CMS-Block und ein CMS-Element für HTML-, CSS-, JS- und Twig-Code unter der Block-Kategorie 'HTML' innerhalb eines Layouts zur Verfügung. Über das entsprechende Icon kann das CMS-Element bei Bedarf wie gewohnt bei jedem CMS-Block eingesetzt werden. Nach der Aktivierung de...
Drittanbieter-Erweiterung, der Einfachheit halber aufgenommen. Maestrino steht in keiner Verbindung zum Autor.
Dies ist eine Open-Source-Erweiterung, die vom Autor unter einer offenen Lizenz bereitgestellt wird. Wir empfehlen ausdrücklich, sich die Arbeit des Autors anzusehen — und dem Projekt nach Möglichkeit eine Spende zukommen zu lassen. Zum Projekt des Autors
Über diese Erweiterung
The extension provides a cms block and a cms element for html, css, js and twig code under the block category HTML within a layout.
If required, the cms element can be used at any cms block as usual using the corresponding icon.
After enabling the twig compilation, you can also use twig variables and snippets in the fields.
This makes it possible to personalize content in the shopping experiences or to display customer, category or product data.
Display of the greeting from the sidebar of the customer account in a shopping experience
- Place the cms block in the layout
- Activate the switch enable twig compiling for all fields
- Insert the following content into the field html code:
{% if context.customer %}
<p class="welcome">
{{ 'account.greetings'|trans|sw_sanitize }}
{% if context.customer.salutation and context.customer.salutation.salutationKey != 'not_specified' %}
{{ context.customer.salutation.translated.displayName }}
{% endif %}
{% if context.customer.title %}
{{ context.customer.title }}
{% endif %}
{{ context.customer.firstName }} {{ context.customer.lastName }}
</p>
{% endif %}
How to install the extension
via zip and console (recommended)
- Download the latest SschreierHtmlCssJsTwigCodeElementForShoppingExperiences-master.zip.
- Unzip the zip file and rename the folder to SschreierHtmlCssJsTwigCodeElementForShoppingExperiences.
- Move the folder to the project folder custom/plugins/ .
- Connect to the console via ssh:
bin/console plugin:refresh
bin/console plugin:install --activate SschreierHtmlCssJsTwigCodeElementForShoppingExperiences
via composer
- Add the repository URL to the composer.json of the project
"repositories": [
...,
{
"type": "vcs",
"url": "https://github.com/sschreier/SschreierHtmlCssJsTwigCodeElementForShoppingExperiences"
}
],
- Connect to the console via ssh and install the plugin via the command
composer require sschreier/sschreierhtmlcssjstwigcodeelementforshoppingexperiences
bin/console plugin:refresh
bin/console plugin:install --activate SschreierHtmlCssJsTwigCodeElementForShoppingExperiences
via https://packagist.org
- Connect to the console via ssh and install the plugin via the command
composer require sschreier/sschreierhtmlcssjstwigcodeelementforshoppingexperiences
bin/console plugin:refresh
bin/console plugin:install --activate SschreierHtmlCssJsTwigCodeElementForShoppingExperiences
via zip upload
- Download the latest SschreierHtmlCssJsTwigCodeElementForShoppingExperiences-master.zip.
- Unzip the zip file and rename the folder to SschreierHtmlCssJsTwigCodeElementForShoppingExperiences.
- Zip the folder to SschreierHtmlCssJsTwigCodeElementForShoppingExperiences.zip.
- Upload the zip in the Shopware Administration.
- Install & Activate the extension.
extension update (zip)
- Download the latest SschreierHtmlCssJsTwigCodeElementForShoppingExperiences-master.zip.
- Unzip the zip file and rename the folder to SschreierHtmlCssJsTwigCodeElementForShoppingExperiences.
- Zip the folder to SschreierHtmlCssJsTwigCodeElementForShoppingExperiences.zip.
- Upload the zip in the Shopware Administration.
- Update the extension.
Images
additional cms blocks and cms element part 1

additional cms blocks and cms element part 2

additional cms blocks and cms element part 3

additional cms blocks and cms element part 4

additional cms blocks and cms element part 5

additional cms blocks and cms element part 6

additional cms blocks and cms element part 7

Bewertungen
Noch keine Bewertungen. Kunden, die diese Erweiterung lizenziert haben, können die erste schreiben.
Nur Kunden, die diese Erweiterung lizenziert haben, können eine Bewertung schreiben. Deine schreibst du in deinem Dashboard.
Kein Konto nötig — lade direkt herunter oder abonniere, um die Erweiterung in deinem Workspace zu verwalten.
Dieses Projekt auf GitHub ansehenOhne Konto per Composer installieren
composer require sschreier/sschreierhtmlcssjstwigcodeelementforshoppingexperiences
Mit einem Abo wirst du außerdem über Updates informiert, und der Anbieter kann dich bei Bedarf erreichen.
Wir bringen dich direkt hierher zurück.
Links
Kein Konto nötig — lade direkt herunter oder abonniere, um die Erweiterung in deinem Workspace zu verwalten.
Dieses Projekt auf GitHub ansehenOhne Konto per Composer installieren
composer require sschreier/sschreierhtmlcssjstwigcodeelementforshoppingexperiences
Mit einem Abo wirst du außerdem über Updates informiert, und der Anbieter kann dich bei Bedarf erreichen.
Wir bringen dich direkt hierher zurück.