Default layout containers

With default layout containers, you can make it easier for your customers to link your plugin’s data providers to containers, allowing them to integrate your plugin into their webshop at the click of a button.

Further reading

You can find a list of available containers, as well as a visual overview of which containers influence which parts of the webshop, in the template containers guide linked above.

Providing default layout containers

Default layout containers are defined in the plugin.json file of your plugin.

FacebookPixel/plugin.json
    "dataProviders": [
        {
        "key"           :"FacebookPixel\\Providers\\FacebookPixelCodeProvider",
        "name"          :"Facebook Pixel",
        "description"   :"Include the Facebook Pixel code snippet.",
        "defaultLayoutContainer": "Ceres::Script.Loader"
        }
    ]
    

You can add default layout containers to as many of your data providers as you want, but no more than one default layout container to the same data provider. If you choose to add default layout containers to your plugin, you should indicate this in your documentation.

Is this article helpful?

 

Thank you for your Feedback

you can close this field now!