Important
- For the pre-sale question, please feel free to contact us via live chat on Landofcoder.com ( From Monday to Friday 8:30 am - 5:30 pm GMT+7 ) or leave an offline message, we will give you a response asap.
- For technical questions, please submit a ticket below (recommended option) or send us an email via [email protected]. Our dev will support you within 24 hours since the submitted time (DO NOT support free extensions)
Hello,
Magento: 2.2.1
Latest version of ves page builder
i want to get a page builder -element- in my phtml by element-code.
Is that posible?
Hello Mate,
Have a nice day!
If you want to generate a page builder profile or element profile in phtml file by element-code, please try to use the code as this:
<?php
$helper = $this->helper("Ves\PageBuilder\Helper\Data");
$page_profile_shortcode = '{{widget type="Ves\PageBuilder\Block\Widget\Page" code="abc-page-alias"}}';
$element_profile_shortcode = '{{widget type="Ves\PageBuilder\Block\Widget\Builder" code="abc-element-alias"}}';
echo $helper->filter($page_profile_shortcode);//generate page builder profile
echo $helper->filter($element_profile_shortcode);//generate element builder profile
?>
Thanks! it works.
You are welcome!