techdivision/pagedesigner-content-provisioning

Extends firegento/m2-content-provisioning module in order to support magenerds/pagedesigner editor.

1.2.4 2021-04-27 09:41 UTC

README

This module extends functionality for module firegento/magento2-content-provisioning in order provide content for magenerds/pagedesigner.

See also following repositories:

Supported versions matrix

"master" branch

Documentation

After installing this module you can provide an additional XML node (page_designer_json) for page and block entry configurations.

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Firegento/ContentProvisioning/etc/content_provisioning.xsd">
    <page key="example.test.1" identifier="example-1" maintained="true" active="true">
        <title>Example Page foo</title>
        <content heading="Example Page test" type="file">TechDivision_ContentProvisioningExamples::Content/example-1.html</content>
        ...
        <page_designer_json type="file">TechDivision_ContentProvisioningExamples::Content/example-1.json</page_designer_json>
    </page>
    
    <block key="example.test.2" identifier="example-2" maintained="true" active="true">
        <title>Test 1</title>
        <content type="file">TechDivision_ContentProvisioningExamples::Content/example-1.html</content>
        <page_designer_json><![CDATA[{
            "version": "1.0.0", 
            "rows": [
                {
                  "columns": [
                    {
                      "gridSize": {
                        "md": 12
                      },
                      "content": "{{widget type=\"Magento\\Catalog\\Block\\Widget\\RecentlyCompared\" uiComponent=\"widget_recently_compared\" page_size=\"5\" show_attributes=\"name,image,price\" show_buttons=\"add_to_cart\" template=\"product/widget/compared/grid.phtml\" type_name=\"Recently Compared Products\"}}",
                      "settings": {}
                    }
                  ],
                  "settings": {}
                },
                {
                  "columns": [
                    {
                      "gridSize": {
                        "md": 12
                      },
                      "content": "{{widget type=\"Magento\\Sales\\Block\\Widget\\Guest\\Form\" template=\"widget/guest/form.phtml\" type_name=\"Orders and Returns\"}}",
                      "settings": {}
                    }
                  ],
                  "settings": {}
                }
            ]
        }]]></page_designer_json>
    </block>
</config>