Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 Referential Integrity blog #2490

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions content/blog/referential-integrity.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
seo:
title: Referential Integrity Now Available in TinaCMS | TinaCMS Blog
description: >-
Discover how TinaCMS’s new Referential Integrity feature simplifies content
management by automatically updating or removing references when linked
documents are renamed or deleted.
title: 'Referential Integrity in TinaCMS'
date: '2024-11-19T14:00:00.000Z'
last_edited: '2024-11-19T14:00:00.000Z'
author: Jack Pettit
prev: ''
next: ''
---

We’re excited to announce a significant enhancement to TinaCMS: **Referential Integrity**! This new feature ensures that references between documents remain consistent and error-free, even when linked documents are renamed or deleted. Let’s dive into what’s included and what it means for your content management workflows.

### Part 1: Automatic Updates for Renamed Documents

Referential Integrity ensures that when a document is renamed, all related references are updated automatically. This is a massive win for users who frequently update file names while managing complex interlinked content.

**Example:**
- Renaming the document `content/authors/napoleon.md` to `content/authors/napy.md` will instantly update all posts or pages that reference “Napoleon” to point to the new name “Napy.”

This seamless synchronization eliminates the manual effort of finding and updating references across your site.

### Part 2: Cleaning Up References for Deleted Documents

Deleting a document? No problem! With Referential Integrity, TinaCMS will:
- Warn you before the deletion to prevent accidental changes.
- Automatically remove all references to the deleted document once confirmed.

**Example:**
- Deleting an author document for “Pedro” ensures that any blog post referencing “Pedro” will have the reference cleared, keeping your content consistent and free of broken links.

### What’s Next?

This feature is now live in `[email protected]`. If you want more features like this, please share your thoughts and feature requests on GitHub!

In the meantime, you can explore this new functionality by upgrading to the latest version and trying it in your project. Your feedback will help us continue refining TinaCMS to meet your content management needs.

Thank you for being part of the TinaCMS journey. We’re committed to making content management as efficient and enjoyable as possible.

Best,
The TinaCMS Team 🦙