Skip to content

Magento 2 module for duplicating cms blocks and pages

Notifications You must be signed in to change notification settings

bartoszjuszczyk/duplicate-cms

Repository files navigation

Juszczyk_DuplicateCms module

The Juszczyk_DuplicateCms module enables you to duplicate CMS blocks and CMS pages.

Installation details

The Juszczyk_DuplicateCms module does not make any changes in database. You can disable or remove this module.

I recommend installing the module via composer. You can do this by executing the command in the Magento root directory:

composer require juszczyk/module-duplicate-cms

After that you should follow the further instructions below.

For information about a module installation in Magento 2, see Enable or disable modules.

Usage

Bulk Duplicate CMS Blocks and Pages:

  1. Navigate to the CMS Blocks or CMS Pages listing in the admin panel.
  2. Select the blocks/pages you want to duplicate.
  3. From the action dropdown, choose "Duplicate."
  4. Confirm the action, and the selected blocks/pages will be duplicated.

Mass action example

Duplicate from Block/Page Edit View:

  1. Open the edit view of the CMS block or page you want to duplicate.
  2. In the button bar, find and click the "Duplicate" button.
  3. Confirm the action, and a new block/page will be created with the same content.

Edit form example

Duplicate from Block/Page Listing:

  1. Go to the CMS Blocks or CMS Pages listing in the admin panel.
  2. Find the block/page you want to duplicate in the listing.
  3. Locate the "Duplicate" action associated with the specific block/page.
  4. Click "Duplicate," confirm the action, and a new block/page will be created.

Listing actions example

Remember to review the duplicated content and adjust any specific details if needed. This module streamlines the process for duplicating CMS blocks and pages efficiently.

Extensibility

Extension developers can interact with the Juszczyk_DuplicateCms module. For more information about the Magento extension mechanism, see Magento plug-ins.

The Magento dependency injection mechanism enables you to override the functionality of the Juszczyk_DuplicateCms module.

Dependencies

The Juszczyk_DuplicateCms module extends the functionality of the Magento_Cms module.

About

Magento 2 module for duplicating cms blocks and pages

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages