This repository contains a package for ConcreteCMS that lets you copy blocks between two instances of Concrete.
This works by copying and pasting XML text in the so-called CIF format.
This is also useful for package developers: they can test if new blocks correctly support exporting and importing their data.
- To support the author, you can install Blocks Cloner on recent versions of ConcreteCMS through the ConcreteCMS Marketplace - see https://market.concretecms.com/products/blocks-cloner/894b8f94-0f0b-11f0-abb4-0e1cf28cdc53
- For composer-based Concrete instances, simply run
composer require concrete5-community/blocks_cloner
- Manual installation:
- download a
blocks_cloner-v….zip
file from the releases page - extract the zip file in your
packages
directory
- download a
Then, you have to login in your Concrete website, go to the Dashboard > Extend Concrete > Add Functionality, and install the package.
Simply enter the Edit Mode of a website page.
When clicking on a block, the context menu will contain a new "Export Block as XML" entry: click it to copy and paste the CIF text.
You can also export custom area styles, as well as all the blocks in an area. To do so, simply click on the area handle: you'll see a new "Export Area as XML" menu item: click on it to export the custom area style and/or the blocks it contains.
You can choose an area or block to export by selecting it from the page structure. Do to so, simply click the "Export as XML" icon you see in the toolbar. A panel will appear where you can choose the item to export.
You can import blocks and/or custom area styles into an area by clicking its handle: the context menu will display a new "Import from XML" entry: click it to paste the CIF to be importer.
In the toolbar you'll also see a new "Import from XML" icon: if you click it, you'll see a panel where you can see all the areas in the page. To add data to a specific area, simply click it.
You can offer me a monthly coffee or a one-time coffee 😉