Twill CMS

TC

Twill CMS

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

Join

Twill User Profile management search

Has anyone who has used Twill's recommended technique to manage user profiles from Twill worked with searching at all? Basically, do I need to duplicate the name and email fields in the profiles table to make them searchable with setSearchColumns()? Or is that at least the easiest way? I've tried a few other things but the search query seems locked into the main table for the Repository Twill 3, Laravel 11...

Inline-Repeater & Medias

How can i use Form Builder Inline-Repeater with Medias field? I tried to implement it like this: ``` $form->addFieldset(...

User Role - Forbidden yellow screen error

User Role - Forbidden yellow screen error Hi , I have created new roles and added permissions to them. 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.It works fine for admin and publisher, but for author i get Forbidden when i try to access posts. Can anyone suggest me how to fix this?...

Media Library Issues.

When I upload the images. they are in the storage folder. But the Media Library is looking for them in the /img folder. I go to the /img in the browser and it's giving me a php error about being required once. But when i switch the url to /storage. it shows the image. I have been stuck ion this for days. It should be so simple to fix!
Chatgpt tells me to fix my twill.php (doesn't work) tells me to update syslink (doesn't work) I can't find the vue files on my machine anywhere to update the view manually. And the documentation for the media library section is 1 paragraph....

Twill CMS and Frontend Navigation Issues

Hi developers, I'm trying to find someone who can help us fixing a couple of issues we had with a website we designed a while ago for an artist representation agency in the creative industry called TOGETHER, https://togetherassociates.com/. We're looking for an experienced developer for two quick fixes on a client website built with Twill CMS. These are targeted troubleshooting tasks with the following specifics:...

Permissions: how to set (leave untouched) default value of field

Hi - I want a Publisher Role to be able to edit everything of given record, but not the title field (and the slug field too - those 2 which are standard opening in a Modal for editing). In my Controller: ```...

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 ❤️...
Next