Twill CMS

TC

Twill CMS

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

Join

Wysiwyg - add colour picker in toolbar

H Team, How can i add the tiptap color picker in WYSIWYG? i have installed the the color extension...

Issue with files not showing

Hey there, i have an issue, in a block we are using the "files" field. This went great until my client noticed that the files that he added a while ago, show up on the website, but dont show up in the Twill form. When we add new files they do show together with the old files on the website, but only the new files show in the Twill form. I have everything set up, twill.php files, $filesParams, HasFiles etc. I am on v3.5.0. Is this a known issue? (update): Everything seems to check out when i loop...

Using custom form inputs in a TwillBlockComponent

I'm trying to figure out how to add a custom form field inside a custom block. I have managed to get the vue component to render correctly, however it is not saving the input. CustomBlock.php: ``` public function getForm(): Form { return Form::make([...

Sticky WYSIWYG toolbar + image upload?

Looking to make the WYSIWYG toolbar sticky, also looking to add ability to insert images from media library into the WYSIWYG as a toolbar option?

Duplication of Parent-child module

I have 2 modules which have parent-child relation. When Im trying to duplicate parent module, it's not duplicating all connected child items as well. Is it expected? Or I missing something?
No description

Return all data in a model

Probably a silly question. I have set up a module called Pages. I have created a blog page....

handle translations make 'en' as active always

Problem: When we create a page with non english locale, eg) French In module repository create method - (copied only 3 lines from it) ...

Conditionally make block available for specific modules only?

Looking to make a block specifically only available for a given module.

Edit modal modifications

Hi, I found some answers about editing modal forms here and there, mainly about getCreateForm method, however, I can't find anything about the EDIT form of the individual module instance, just like in this thread here from last year: https://discord.com/channels/811936425858695198/1254818869831270470 These forms are kind of identical and I'm thinking that this probably must be editable and I just can't find it. In essence, all I need to do is either remove the title field, prevent Permalink field from mirroring Title field or something to that effect....

Repeater not shown in admin

Hi, I followed this tutorial: https://twillcms.com/guides/json-repeaters.html#content-updating-the-migration But in the Admin-Area the Repeater-Block is not shown... I don't know what is wrong with my code. ...

Model to Module

I have a model that I am using, for arguments sake we can call this model: Tour. I would like to convert this Model to a Module so it can be accessed and edited from the backend. This is just a simple Model. Nothing special about it. Is there a straightforward way to do this?...

Adding a count of a browser relation in a module list view?

Looks like presenters are obselete/not documented and so I'm not sure how to achieve this?

Twill 3 custom roles & permissions are not working

Hello, I'm trying to create new roles and add permissions to them. i want to make some modules only accessible by some of the new roles I've created. I followed the twill documentation and I still get Forbidden yellow screen error when i try to access a certain module as the new user role i created. here is my code, Models/Enums/UserRole.php...

Cannot reorder media in latest releases

Hello everyone, as mentioned in the issue below, it's still impossible to reorder medias in the latest relaeases of Twill (3.4.1 & 3.4.0). https://github.com/area17/twill/issues/2690 Tx for your help ❤️...

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')...
Next