feat: Extend snapshots to include custom fields and tags #57

Closed
opened 2026-06-21 16:49:43 +00:00 by jmiller · 0 comments
Owner

Summary

Extend the content snapshot engine to capture additional related tables:

  • #__fields (where context = 'com_content.article') — custom field definitions
  • #__fields_values — custom field values for articles
  • #__fields_categories — field-to-category mappings
  • #__tags — tag definitions (currently only tag mappings are captured)
  • #__ucm_content — unified content metadata

Why

Sites using Joomla custom fields lose field data when restoring article snapshots. The current snapshot captures tag mappings but not the tag definitions themselves, so restored tag mappings may point to non-existent tags.

Files

  • src/Engine/SnapshotEngine.php — add tables to TYPE_TABLES/ARTICLE_RELATED
  • src/Engine/SnapshotRestoreEngine.php — add PRIMARY_KEYS and truncate filters
## Summary Extend the content snapshot engine to capture additional related tables: - `#__fields` (where context = 'com_content.article') — custom field definitions - `#__fields_values` — custom field values for articles - `#__fields_categories` — field-to-category mappings - `#__tags` — tag definitions (currently only tag *mappings* are captured) - `#__ucm_content` — unified content metadata ## Why Sites using Joomla custom fields lose field data when restoring article snapshots. The current snapshot captures tag mappings but not the tag definitions themselves, so restored tag mappings may point to non-existent tags. ## Files - `src/Engine/SnapshotEngine.php` — add tables to TYPE_TABLES/ARTICLE_RELATED - `src/Engine/SnapshotRestoreEngine.php` — add PRIMARY_KEYS and truncate filters
jmiller added the component: engine label 2026-06-21 16:49:43 +00:00
Sign in to join this conversation.
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteBackup#57