Download the PHP package styladev/spryker-plugin without Composer
On this page you can find all versions of the php package styladev/spryker-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package spryker-plugin
Styla Spryker Module
This module provides integration with Styla content management system. It embeds Styla content on your Spryker (via JS), takes care of routing for it and server-side rendering of HTML tags.
This documentation page should provide you an overview of how Styla works in general.
Installation
The Styla spryker module can be added to your spryker shop via composer:
Add the Styladev
namespace to the spryker known namespaces within the configuration file:
Using GLUE API
Styla is using the glue api to allow the content creator to select products and for the visitor to allow the user to see more product details.
By default the glue api is not providing a product url which is necessary for the product integration. This plugin provides a transfer file to enable product urls in the glue api. To activate this please run the following command:
Now the glue api returns the necessary relative product url.
Configuration
Within the Spryker configuration for each locale the Styla client (you get it after signing contract) and additional the paths on which the styla integration should be displayed needs to be configured. The default configuration can be added to config_default.php
and overridable with the more specific locale variants for example config_default_DE.php
.
The configuration should look like this:
The paths are always from the root path (e.g. after domain) and can contain a pipe separated list. Wildcards needs to be flagged with an additional /.*
.
For example if you have these list of pages:
the path configuration should look like:
In this case /inspiration
and /magazine
are wildcard urls and /my-world
is a single page without a wildcard.
You can have Styla content on different path for each locale, for instance use /magazine
for English and /magazin
for German.
If you want to use your products in your Styla content, we will source it from your Spryker's Glue API. It needs to be configured on your end.