Archive - Archive & restore JCR content in jContent
Take pages, content and whole content folders out of the way without deleting them. Archived content moves to a dated archive folder, locked and marked with where it came from, and can be restored there at any time, one item or the whole folder. Published content is refused until it is unpublished. In English and French.
Archive Content gives editors a third way between keeping and deleting: last year's press releases, an expired campaign, a folder of old events leave the site's content folders but stay in Jahia, read-only, ready to come back.
Archive from jContent
- Archive Content is in the menu of a page, a content item or a content folder: the row's menu, the right-click menu, the tree, and the bar shown when several items are selected.
- A content folder goes with everything it holds. Several items go in one run, one after the other.
- Archived content moves to an Archives folder of the site, sorted by year and month, is locked so it cannot be edited in place, and keeps its original location, the archive date and the user who archived it.
Published content stays safe
- Content still published, in any language of the site, is never archived: the dialog lists it with the languages it is published in, and the rest of the selection can still go.
- A folder is checked item by item, so one published item inside it is enough to refuse the folder.
- The archive folder is never published, and a step that fails is rolled back rather than leaving content half archived.
Archive Manager
- A jContent accordion lists what was archived, with its type, creation date, original location, archive date and the user who archived it.
- An archived folder opens like any other, to browse what it held.
- jContent's side panel works on archived content: preview it, read its details and history before restoring it.
Restore
- Restore Archive puts content back where it came from, unlocked, or in another location chosen in the dialog.
- Each item of an archived folder can be restored on its own. When its original folder no longer exists, the dialog lists the folders it will create again.
Who can do what
- Two permissions come with the module: archiveContent to archive and see the Archive Manager, unarchiveContent to restore. By default editors archive; editors-in-chief and site administrators archive and restore.
Screenshots
How to install
Requirements
- Jahia 8.2 with jContent 3.7 or later. Tested on Jahia 8.2.3.7 with jContent 3.8.1. The module needs no other module, no external service and no configuration file.
1. Install the module (once per server)
- Install it from the Jahia Store, or download archive-1.2.0.jar from the GitHub release.
- For the file: open Administration > Server > Modules and Extensions > Modules, tab Installed modules. Under Upload module from file, click Select module, choose the jar and upload it.
- Archive Action Module appears in the list with the state Started.
2. Enable it on each site
- In the same list, click Archive Action Module.
- Under Usage in sites, switch each site whose content will be archived from Disabled to Enabled.
3. First configuration
None. The Archives folder of a site is created the first time something is archived there. To change who may archive or restore, give the archiveContent and unarchiveContent permissions to other roles in Administration > Users and Roles > Roles and permissions.
4. Check it works
- In jContent, open Content Folders and select an unpublished content item: Archive Content is in its menu and in the selection bar. It is offered to the editor, editor-in-chief and site-administrator roles.
- Archive it: the item leaves the folder, and the Archive Manager accordion lists it under the current year and month.
- In the Archive Manager, Restore Archive in the item's menu puts it back (roles editor-in-chief and site-administrator).
Upgrade
Upload the new version the same way; Jahia stops the previous version and starts the new one. Uploading a version that is already installed again is skipped unless you check Force update of module(s). Content archived with an earlier version stays archived and can be restored; the items of a folder archived before 1.2.0 carry no archive data of their own, so restore such a folder as a whole.
Scripted install (administrators)
With Jahia's provisioning API, as a server administrator:
curl -u root:<password> https://<jahia>/modules/api/provisioning \ -F 'script=[{"installOrUpgradeBundle":"archive-1.2.0.jar","autoStart":true},{"enable":"archive","site":"<siteKey>"}];type=application/json' \ -F file=@archive-1.2.0.jar
FAQ
Why is my content refused?
It is still published, in at least one language, or a folder holds an item that is. Archiving would pull it out from under the live site. Unpublish it in every language the dialog names, then archive it.
Where does archived content go?
To the site's Archives folder, in a year and a month folder: Archives/2026/11. This folder is never published. When an item of the same name is already there, the archived one takes a suffix.
Can editors change archived content?
No: archived content is locked. Restore it first. The jmix:archived mixin it carries can also be used in your own access rules.
Can I restore one item of an archived folder?
Yes. Each item of the folder carries its own archive data. It goes back to the path it had, and missing folders on that path are created again. Restoring the whole folder brings everything back at once.
Is anything deleted?
No. Archiving and restoring only move, lock and mark content; nothing is removed from Jahia.
MIT License. Copyright (c) 2026 Jahia Solutions Group. Full text: LICENSE.