Skip to content

Commit

Permalink
📝 Referential Integrity blog (#2490)
Browse files Browse the repository at this point in the history
* Referential Integrity   blog post v1 🤖

* v2 - slight revision
  • Loading branch information
JackDevAU authored Nov 25, 2024
1 parent bc147eb commit b2fbc4b
Showing 1 changed file with 45 additions and 0 deletions.
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 🦙

0 comments on commit b2fbc4b

Please sign in to comment.