From e729f920139f0c65902be2d6b2c32466b08375e8 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 20 Oct 2025 17:54:52 +0000
Subject: [PATCH] =Form updates
---
inc/managers/CRUDManager.php | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/inc/managers/CRUDManager.php b/inc/managers/CRUDManager.php
index 9589fdc..6deb11e 100644
--- a/inc/managers/CRUDManager.php
+++ b/inc/managers/CRUDManager.php
@@ -181,7 +181,8 @@
protected function renderHeaderActions():void
{
$uploadConfig = [
- 'type' => 'image',
+ 'type' => 'upload',
+ 'subtype' => 'image',
'mode' => (jvbCheck('single_image', $this->config)) ? 'direct' : 'selection',
'create_new' => true,
'label' => (array_key_exists('image_title', $this->config)) ? $this->config['image_title'] : 'Upload More '.$this->config['plural'],
@@ -189,11 +190,12 @@
'singular' => $this->singular,
'plural' => $this->plural,
'multiple' => true,
+ 'destination' => 'post'
];
if (!jvbCheck('single_image', $this->config)) {
- $uploadConfig['imageType'] = 'groupable';
+ $uploadConfig['destination'] = 'post_group';
}
-
+ $uploadConfig['destination'] = 'post_group';
if (!jvbCheck('single_image', $this->config)) {
$uploadConfig['group_title'] = 'Create '.$this->config['plural'];
$uploadConfig['group_description'] = '<p>Drag images into groups. Each group becomes its own '.$this->singular.'.</p>
--
Gitblit v1.10.0