Skip to main content

8.3 - Exporting and importing a module

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 carriesIt does not carry
the rows and the blocks, with all their settingsthe module position
the settings behind the module gearthe pages where it shows
the custom CSSits status (published or not)
the iconsthe image files: only their path

Import

  1. Open an Opus module, new or existing.
  2. In Export or import, click Import and choose the file.
  3. 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.
  4. A summary shows: the number of images, and the number of links to articles, menus, categories, tags or fields.
  5. 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 images folder.
  • 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.