Twill CMS

TC

Twill CMS

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

Join

Errors when i run php artisan twill:build

I'm trying to set up my twill project and when i run php artisan twill:build i get errors so it doesn't work as it should. Other colleges have tried and some of them have problems at the others work fine. I can't find a solution, can somebody help me?

How to use Tags in browser field

Hello, I’m developing a "Recommended Topics" section for a Blog page, where topics correspond to tags used in posts. I’d like to know if it’s possible to use the "browser" field in Twill to allow users to select from the available tags. I’ve tried implementing this by following the documentation on the Twill website, but I’m still encountering issues.

Trying to create the Homepage that is in the demo

I have created a module and now i need to add sections like at the Homepage demo (the image below), i don't know how to start so i can create the sections. Can one give me some pointers?...
No description

Scheduled Publishing In Twill 3

Here’s what I’ve done so far: 1- Uncommented publish_start_date and publish_end_date in the migration. Added them to the $fillable property in my model. 2- Cast these fields to datetime to avoid the DB error ...

Navigation Link breaks when the primary navigation is a module (upgrading twill3)

Primary menu is visible with 'home page' and 'Projects' for the below array defined in twill-navigation (Yes legacy code) 'home' => [ 'title' => 'Home page', 'route' => 'home', ],...

How to insert & render media with block editor to frontend?

Hi! i am new to twill CMS and i wanted to ask some help here, any answer would help me alot! in this case, i am using some block that named carousel and must insert at least 1 media (photo) inside it and i set it up to 5 Images per block that i made. @twillBlockTitle('Carousel')...

Browser item links

When I add a browser field to a block form or even a twill settings page, initially if I click on a recently selected item, it will navigate to the correct module but when I reload the page there is no longer a link. (clicking on one of the selected items does nothing) It works fine within modules as I can define browser settings but not in blocks. If I had to guess, the required link data is not present on the page for existing items. Any help appreciated....

Repeater with input and browser, how to save data!?

Hi! I have a repeater that contains 1 text input (name="credit")and a browser to select items from another related model called Author. The relationship between Audiovisual and Author is belongsToMany. The pivot table contains a credit column for the input field information. Visually it works, but I don't know what to do in the repository, inside afterSave and getFormFields, I try a thousand ways and I can't save the info, I'm going crazy! ...

Creating a menu with more than 2 levels

How do i create a menu with more than 2 levels? Like I want to have nested items within the nested items. Is that possible?

Validate file uploads in block in Twill 3

Hi there - does anyone know what the correct syntax is to validate file uploads using twillBlockValidationRulesForTranslatedFields? I've got a translated file input for a single pdf. ```...

Extend bulk actions

Can I extend bulk actions dropdown, in Twill2, for example: Export in custom route? Thanks! 🙂

Multi Language Same Slugs

Can someone give me an idea on how to achieve this. I'm building a multi language site and I want to have the same slugs for all languages. Default language should not have any base like below. Ex:...

Slug creation with special letters

Hey, I tried overwriting HasSlug to add both lower and upper case 'Đ'=>'D' to $char_map but didnt work. My Model with title Đoković has slug okovic instead of dokovic. How can i add that additional letter?

Tiptap Align

HI! Can someone tell me how to add align option to my WYSIWYG Tiptap? I am using twill 3.0.

Is it possible to create a new Media Library Bucket in Twill 3

Hi! I'm a software eng at the Art Institute of Chicago and we use Twill as our CMS. We're trying to separate images into two separate buckets either via a new mediables-esque table or configuring a new S3 bucket connection and having it displayed as a separate tab in the add media modal. We've got something sort of working but the way we're doing it is hacked together. We're building twill and then copying a new version of the media library related code and adding our own versions of the vue's. This isn't the best in terms of maintaining but it's the only way we could get it working. Is there a way in Twill 3 to configure new buckets/tabs in the mediables field so we can differentiate the images? My take on it is to add some sort of differentiator when saving the media in a column or metadata but we're not sure if it's possible....
No description

How to create settings for the site to disable registration and frontend-only offline mode ?

Hello 🙂 I'mm all new to Twill and Laravel and i'm working on a site i'd like to put the frontend offline and disable the registration thanks to a parameter. I try to get solutions from an AI but it just rotates through options and nothing actually works like the example....

Custom

Hello i got a user basic user table from laravel and admin user of twill i want to add crud for the normal user in the twill dashboard but still keep the twill admin user alonside it i try to transform the basic laravel module in one of a module i created a User controller in the Controller/Twill but the routing redirect me to the twill user module...

how to override a default database model class method

Hi team, I’d like to get your opinion on overriding a specific class in Twill. Current approach:...

renderHtml doesn't work in getBrowserTableColumns()

Hello, I'd like to render a small colored div inside browser column but renderHtml(true) doesn't seem to work ```php public function getBrowserTableColumns() : TableColumns {...

Position reordering not working

Hi! I am checking Twill out to see if it's a match for our next project. It looks really promising but I walked into a small problem with the first guide "Building a simple page builder with Laravel Blade". I've successfully ran through it but the section "Adding navigation" gives me a small problem, the code works fine and gives no errors or whatsoever. However, the frontend does not work. When I drag a menu item to a new position or drag it to be a child of another item the frontend will reply that the order has been changed, yet when I reload there is no change. The response of the xhr request contains: variant: 'success', it's just that the database is not updating and reflecting the changes....
Next