call phtml file in page builder in magento 2.3 enterprise
-
16-03-2021 - |
Pergunta
I want to call phtml
file in static block that uses page builder in Magento 2 EE
.
Solução
In magento2 EE we cant call phtml in block or dynamic block as it uses page builder,we need to create custom content-type follow below tutorial to create custom-content type link
Outras dicas
These steps work for Me:
- Add Row
- Add HTML Code element.
- Call phtml as we do in open source
{{block class="Magento\Framework\View\Element\Template" template="Vendor_Module::product.phtml"}}
under HTML Code element. `
Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange