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,…
How to Create CMS Page using Data Patch in Magento 2
In this tutorial, Today I will explain to how to create CMS page using data patch in Magento 2. After Magento 2.3.x, Magento has introduced Data Patch Interface functionality. Using that, we can add/update data. Before Magento 2.3.x, we used InstallData or UpgradeData file to Create CMS Page. But, After Magento 2.3.x we need to use data patch functionality. So,…
How to Create Custom CMS Page Layout XML File in Magento 2
In this tutorial, Today I will explain to how to create custom cms page layout xml file in Magento 2. When, you want to add any custom css and js in your custom cms page and your want to use layout XML file then, how you will create layout xml file for custom cms page? You may also like this…
How to Show/Remove Breadcrumbs to CMS Page in Magento 2
In this tutorial, Today I will explain to how to show breadcrumbs to CMS Page in Magento 2. A Breadcrumbs is basically links that helps to users to redirect on that page from current page. It is useful navigation tool for your customer to easily navigate them to other page. In Product Page, Breadcrumbs display In CMS Page, By default…