I have created a block programmatically which shows category name and image on home page. Following is my code:
cms_index_index.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="content">
<block name="homepage.category.thumbnail"
class="Magento\Framework\View\Element\Template"
template="Vendor_CategoryCms::list.phtml">
<arguments>
<argument name="category_list" xsi:type="object">\Vendor\CategoryCms\ViewModel\CategoryList</argument>
</arguments>
</block>
</referenceContainer>
</body>
</page>
This block taking data from viewmodal and showing in phtml file. If I need to place it on any other page, I need to override that page layout. Is there any way to convert this block to cms block so that we can place it anywhere from admin panel?