An Opus module can be carried in a file: its layout can be set up again on another site, or in another module of the same site, without starting over.
Export
In the module, under Choose a layout, the Export or import panel offers two buttons. Export downloads a .json file.
| The file carries | It does not carry |
|---|---|
| the rows and the blocks, with all their settings | the module position |
| the settings behind the module gear | the pages where it shows |
| the custom CSS | its status (published or not) |
| the icons | the image files: only their path |
Import
- Open an Opus module, new or existing.
- In Export or import, click Import and choose the file.
- If the module already has a layout, Opus warns you: the whole current layout, its custom CSS and its icons will be replaced by those of the file. Confirm with Replace.
- A summary shows: the number of images, and the number of links to articles, menus, categories, tags or fields.
- Check the layout, then click Save. Nothing is saved before: closing without saving leaves the module as it was.
Good to know
- Images stay on the original site: copy their files to the new site, at the same path in the
imagesfolder. - Articles, menus, categories, tags and fields are referred to by their number, which is specific to each site. On another site, the same number may point to something else: check each link the summary reports.
- A file that does not come from Opus is refused, and the module is left unchanged.
- To start from a ready-made layout rather than your own, Choose a layout offers models.
Up to date for Opus 1.6.108.