Christfister
Christfister
TCTwill CMS
Created by Christfister on 7/18/2023 in #👊support
Upgrading from 2.8 to 3
Like instead of the datepicker setting the date to something like 2023-07-20T12:34:56Z can it be set to 2023-07-20 18:30:00 by default. Is there an option in flatpikr to do that?
4 replies
TCTwill CMS
Created by Christfister on 7/18/2023 in #👊support
Upgrading from 2.8 to 3
Hey @ifox.dev thanks for the reply. I did clear all the caches and it started giving me a slew of more errors in addition to the previous one. Though I did start with a fresh Twill 3 install and have been manually copying my modules to the new project and it seems to be working well as the new nested blocks feature is gonna be nice for my client. I'm just having an issue now with a date-time module. It seems Twill 3 uses ISO 8601 date and time format and my MySQL 5.7.34 database doesn't like that. Is there a way to change Twills datetime format? Or any plug-ins you know of to allow MySQL to parse it?
4 replies
TCTwill CMS
Created by Christfister on 12/27/2022 in #👊support
Deleting an entry causes 500 error unless entry is destroyed
9 replies
TCTwill CMS
Created by Christfister on 12/27/2022 in #👊support
Deleting an entry causes 500 error unless entry is destroyed
Here's the code and how I've been trying to retrieve the partners in the partnersRepository <?php namespace App\Repositories; use A17\Twill\Repositories\Behaviors\HandleMedias; use A17\Twill\Repositories\ModuleRepository; use App\Models\Partner; class PartnerRepository extends ModuleRepository { use HandleMedias; public function __construct(Partner $model) { $this->model = $model; } public function getAllPartners() {
$partners = $this->model->published()->get(); $partnersFiltered = [];
foreach( $partners as $partner ) { if ( $partner->deleted_at == "" ) { array_push($partnersFiltered, $partner); } }
//return $this->model->published()->get(); return $partnersFiltered; } } @ifox
9 replies
TCTwill CMS
Created by Christfister on 12/27/2022 in #👊support
Deleting an entry causes 500 error unless entry is destroyed
Heres the code for my PartnerspageRepository <?php namespace App\Repositories; use A17\Twill\Repositories\Behaviors\HandleBlocks; use A17\Twill\Repositories\Behaviors\HandleMedias; use A17\Twill\Repositories\Behaviors\HandleFiles; use A17\Twill\Repositories\Behaviors\HandleBrowsers; use A17\Twill\Repositories\ModuleRepository; use App\Models\Partnerspage; class PartnerspageRepository extends ModuleRepository { use HandleBlocks, HandleMedias, HandleFiles, HandleBrowsers; protected $relatedBrowsers = ['partners', 'presenting', 'premier', 'supporting', 'associate']; public function __construct(Partnerspage $model) { $this->model = $model; } public function getAllContent() { return $this->model->first(); } }
9 replies
TCTwill CMS
Created by Christfister on 12/27/2022 in #👊support
Deleting an entry causes 500 error unless entry is destroyed
I believe using the related table. I have singleton called partners page with "HasRelated" that has several browsers to allow the user to place selections in predefined locations.
9 replies