Okay
  Public Ticket #3055573
Inser widget and static block
Closed

Comments

  • Fabio started the conversation

    Hi,

    in my website, I have Magento 2 and Supro theme with CMS builder.

    I'd like to know how it's possible to insert a M2's widget/static block in home page.

    I know that I can create the new block into CMS builder, but I want insert in home page an external block/widget at CMS builder.

    Example: I use Magefan blog and I'm not able to insert the widget: 

    {{widget type="MagefanBlogBlockWidgetRecent" title="Il Blog delle Scatole - Post Recenti" number_of_posts="4" custom_template="Magefan_Blog::widget/latest-post-index11.phtml"}}.

    I can try but the code remains undecoded.


    Attached files:  supro-insert-cms.jpg
      supro-insert-cms-2.jpg

  • [deleted] replied

    Hi Fabio,

    Sorry for reply late. We are working to check your issue. Please wait, we will respone you soon

    Regards,

    Hyun

  • [deleted] replied

    Hi Fabio,

    Very sorry for reply late. In this case, I think you need create static block then add widget from other module into it. After that use builder to call that static block. 

    You can use this code to call static block:

    {{widget type="Magento\Cms\Block\Widget\Block" template="widget/static_block/default.phtml" block_id="sample_static_block_indentifier"}}

    Regards,

    Hyun

  • Fabio replied

    Ok it works!

    Thank you