In this tutorial, Today we will learn about how to get CMS page collection by identifier in Magento 2. For that, You need to inject \Magento\Cms\Api\PageRepositoryInterface into your construct. PageRepositoryInterface is an interface that is used when you need to get the collection of CMS page, Delete CMS page, Delete or get CMS Page data by specific CMS page ID,…
Tag: cms-page
How to convert CMS page content to HTML in Magento 2?
In this technical blog, We will learn about how to convert cms page content to HTML in Magento 2. CMS page content uses WYSIWYG editor to add content to the cms page. The WYSIWYG editor is an addon that is used for the backend for content editing and also allows people who don’t work with HTML to edit content. Sometimes,…