From c19264ac916707096fe294d996a1b7fb85206b34 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 08 Mar 2026 19:55:31 +0000
Subject: [PATCH] =Furthering along the complete refactor. Added some basic setup for is_content taxonomies, including a page for an archive of the terms.

---
 inc/registrar/config/SEO.php |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/inc/registrar/config/SEO.php b/inc/registrar/config/SEO.php
index 7617b7b..4797cf9 100644
--- a/inc/registrar/config/SEO.php
+++ b/inc/registrar/config/SEO.php
@@ -33,7 +33,24 @@
 
 	protected function initSchema():void
 	{
-		if (!array_key_exists('type', $this->config['schema'])){
+		if (!array_key_exists('type', $this->config['schema'])) {
+			$registrar = Registrar::getInstance($this->slug);
+			if ($registrar) {
+				switch ($registrar->getType()) {
+					case 'term':
+						$this->config['schema']['type'] = 'JVBase\managers\SEO\render\Thing\CreativeWork\WebPage\CollectionPage';
+						break;
+					case 'post':
+						$this->config['schema']['type'] = 'JVBase\managers\SEO\render\Thing\CreativeWork\CreativeWork';
+						break;
+					case 'user':
+						$this->config['schema']['type'] = 'JVBase\managers\SEO\render\Thing\CreativeWork\WebPage\ProfilePage';
+						break;
+				}
+
+			}
+		}
+		if (!array_key_exists('type', $this->config['schema'])) {
 			error_log('Missing schema type');
 			return;
 		}

--
Gitblit v1.10.0