Create a Magento CMS Page or Static Block programmatically

Creating a CMS pages and blocks in Magento is simple as navigate to Admin Panel -> CMS -> Pages or Admin Panel -> CMS -> Static Blocks. But while you developing your extension you might need to create a Magento CMS Page or Static Block programmatically.

Here is the way how you can achive it:

Creating a CMS Page: Creating a CMS Block: That simple. Hope it helps.

Rating:

Create a Magento CMS Page or Static Block programmatically
4.5 (90%) 6 vote[s]

Comments (3)

  1. Actually, magento has a fully-featured CMS system integrated in it. Browse through the pages to see the different elements you can add to your site.

  2. thanks but where i have to add this code?

What do you think?

Required fields are marked *


*