From 3241a281b1f854dd848156cd9ca54de0e607f08c Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 10 Nov 2025 21:05:17 +0000
Subject: [PATCH] =Update
---
content/terms.php | 44 ++++++++++++++++++++++++++++++++++++++++----
1 files changed, 40 insertions(+), 4 deletions(-)
diff --git a/content/terms.php b/content/terms.php
index 10e0e0f..7507ccf 100644
--- a/content/terms.php
+++ b/content/terms.php
@@ -1,17 +1,18 @@
<?php
-// /content/art.php
+// /content/terms.php
function altr_terms():array
{
return [
'singular' => 'Term',
'plural' => 'Terms',
- 'dash_title' => 'Glossary Terms',
+ 'dash_title' => 'Glossary',
'dash_description' => 'Manage your terms',
'breadcrumb' => 'Glossary',
'hide_single' => true,
'icon' => 'asterisk',
+ 'is_gallery' => true,
'rewrite' => [
- 'slug' => 'glossary-of-terms',
+ 'slug' => 'glossary',
'with_front' => false,
],
'fields' => [
@@ -19,13 +20,48 @@
'type' => 'text',
'label' => 'Title',
],
- 'definition' => [
+ 'post_status' => [
+ 'type' => 'radio',
+ 'label' => 'Status',
+ 'hidden' => true,
+ 'options' => [
+ 'publish' => 'Show',
+ 'draft' => 'Hide',
+ 'trash' => 'Scrap',
+ 'delete' => 'Permanently Delete'
+ ]
+ ],
+ 'post_slug' => [
+ 'type' => 'text',
+ 'label' => 'Slug'
+ ],
+ 'post_content' => [
'type' => 'textarea',
'label' => 'Definition',
'quill' => true,
],
+ 'pronunciation' => [
+ 'type' => 'repeater',
+ 'label' => 'Pronunciation',
+ 'fields' => [
+ 'part' => [
+ 'type' => 'text',
+ 'label' => 'Part',
+ ]
+ ]
+ ],
+ 'type' => [
+ 'type' => 'radio',
+ 'label' => 'Type',
+ 'options' => [
+ 'adjective',
+ 'noun',
+ 'verb'
+ ]
+ ]
],
'single_image' => false,
'upload_title' => 'Upload Before & Afters',
];
}
+
--
Gitblit v1.10.0