From b77f893f42164923bf228eeb52802b10ce012db4 Mon Sep 17 00:00:00 2001 From: DrMint Date: Sat, 14 May 2022 15:46:03 +0200 Subject: [PATCH] Added next, previous content --- src/api/content/content-types/content/schema.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/api/content/content-types/content/schema.json b/src/api/content/content-types/content/schema.json index 5fca5c8..90aab37 100644 --- a/src/api/content/content-types/content/schema.json +++ b/src/api/content/content-types/content/schema.json @@ -65,6 +65,18 @@ "allowedTypes": [ "images" ] + }, + "next_recommended": { + "type": "relation", + "relation": "oneToOne", + "target": "api::content.content", + "inversedBy": "previous_recommended" + }, + "previous_recommended": { + "type": "relation", + "relation": "oneToOne", + "target": "api::content.content", + "inversedBy": "next_recommended" } } }