Twill CMS

TC

Twill CMS

Join the community to ask questions about Twill CMS and get answers from other members.

Join

Date_picker withTime => false returns null values

Porting a 2.8 project over to 3 and the new date picker is causing trouble. I have a repeater with a date_picker field and when I set the withTime parameter to false, the form field value gets set to null before it gets to the afterSave() function in my repository. Any ideas or links to how to solve it?...

Injecting Fields from a BladePartial into a Block Form

I am creating a blade with advanced options for each block where I configure the possibility of manipulating the padding and margin of each block as well as the possibility of hiding it. I add it to my blocks using BladePartial, but it turns out that by adding it in this way it is sending the data to my main form and not to the form of each block.
` public function getForm(): Form { ...
No description

Upgrading from 2.8 to 3

Trying to upgrade an existing Twill project. Keep getting the following error in the log [2023-07-18 17:50:09] production.ERROR: Target class [App\Http\Controllers\Admin\HomepageController] does not exist. {"exception":"[object] (Illuminate\Contracts\Container\BindingResolutionException(code: 0): Target class [App\Http\Controllers\Admin\HomepageController] does not exist. at /Users/mrpink/Desktop/Web Dev/acbsupgrade/vendor/laravel/framework/src/Illuminate/Container/Container.php:879) ...

Can not open admin dashboard

I'm tryin to go to login of admin page but from those configuration i cant can you help me with any idea how to slove this
No description

DefaultBlocks

Hi! Is there a way to hardcode the default blocks as well as prevent the user from loading them manually, something like this: ` BlockEditor::make() ->defaultBlocks([...

Slow response time in production

Hello together. my frontend and backend has a real bad response time on the production server. 800 - 1000ms have anyone a tipp for a laravel/ twill beginner 🙂 ...

Title property missing

Im new to twill so apologies for the newb question. I've created a module and don't want the title field, I need a "registration" field instead. I saw somewhere in the docs that this is possible but not how to do it. I looked in the controller and Ive set $titleFormKey, $titleColumnKey and $modelTitle all to "registration" and ive figured I need to set $title property to "registration" in the model. Most of that now seems to work but when I save the record (which says its successful) I get a "missing title" in red at the top of the screen. If I click "missing title" and provide the registration again, it then shows the registration at the top of the screen but when i go back to the index list it doesnt show the registration and if i click to edit it again, I'm back to the "missing title" prompt I guess I am missing something else. Can you point me in the right direction ? (Twill 3) This is not a translating system, its just a single UK language...

Cloning Repeaters in 2.8 Not copying fields

Still using version 2.8. When cloning a repeater that stores dates and times, the cloned version has all its files empty. Is there a way to get the cloned version to copy the contents of that repeater into the new one?...

I want to enable login and registration for my twill app

/login route is giving me this error "Target class [App\Http\Controllers\Auth\LoginController] does not exist." I included this in my twill cinfig file: 'enabled' => [ 'users-management' => true,...

Adding Comments to Posts

What is the best way to provide the ability to post comments on a Post? It standard practice for a blog>

Slug - title dependency

Hello guys! I have one problem with my slug input for each language version (any model) - its different and repeating the words which i type in my title. How can i turn off the option of repeating and change my slug input to not translatable

Customizing TwillCMS Admin

Is it possible to edit the twill admin interface? I would love to add a kanban board feature to a very basic CRM I am trying to put together for my client using this package "https://madewithvuejs.com/draggable-kanban-board"....

Capsule Navigation in admin

I have installed a capsule for homepage, However I am not able to make it appear on my admin via the navigation in my "AppServiceProvider.php" below is what I currently have; ``` <?php ...

Add Files field to block

Hi guys, I'm trying to create a block with a files field like this: @twillBlockTitle('Embed Video') @twillBlockIcon('image')...

Twill navigation group

Any easier way to achive grouping by title in the primary navigation which is not module nor singleton. This is achivable via legacy, but I want to stick to the new OOP way, but it seems that its not working or I am missing something. I partialy achived this via external url, but it has some issue. ...
No description

Handling of a17-filefield response

Hi guys, I have a custom CMS page using the a17-filefield input, how do I handle the response of field in the Request object? In my blade file I have (copied from the docs): ``` <a17-filefield name="input6"></a17-filefield>...

Dynamic Grid and content type Block

How do i dynamic grid in a block. i need to have a Grid block where the number of columns can be dynamically altered. For e.g someone selects a the grid block assigns number of columns too it, add either images, text or any other content. What is the path i should take?

Custom CSS in backend

Hi, Can we use custom css in backend to modify colors, show/hide modules in backend ? Thanks....

Creating Posts/Models programatically from controller.

Hi, Is it possible to create blocks/modules/model/repeater content programatically from controller or any function. Please advise. Thanks....

featured

Good evening. I would like some help. I've upgraded to version 3 of Twill, and the "featured" functionality has stopped working. How can I configure it in this new version?