Web Analytics

Fill the form & Get Installation Support

Magento 2: add new custom field in cms pages

If you need to add custom field in cms pages then follow below steps:

1, You need to create a module for that so create module folders app/code/Magemonkey/CmspageBanner

2, Add registration.php file in your module Magemonkey/CmspageBanner

3, Add module.xml file in your module Magemonkey/CmspageBanner/etc

4, Then create new schema file InstallSchema.php in  Magemonkey/CmspageBanner/setup

5, Then add your need to add a field in ui_component form file cms_page_form.xml in Magemonkey/CmspageBanner/vew/adminhtml/ui_component

6, Then you need to create one block file for the call that field in the frontend, Banner.php in Magemonkey/CmspageBanner/Block

After that you need to run setup:upgrade command

Then after you can call that block in your cms page Like:

Fill the below form if you have any Magento programming need.

    Recent Articles

    Author Info

    Author Image

    Magento Developer

    Hire T. Baldha

    Get a Free Quote

      /* second popup */

      Connect With Us