Twill CMS

TC

Twill CMS

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

Join

remove positioning and nesting from the page index

Good morning. Tell me how to remove positioning and nesting from the page index in the admin panel? I delete traits in the model and an error occurs in the repository. Still need to remove fields from the database? Or is there some other way to do it all?...

Connecting additional fields depending on the value in the record when selected in the browser compo

Good morning. Can you tell me if it is possible to implement the doing in twill? I have a browser in the component block in which I select a record. In articles, I have a select field with a post type....

Custom function in a Module Controller

I need to trigger a custom function that is run after a user clicks "Update" for a post in a Twill module, and that function needs to receive a variable e.g. the post_id number. I know there are Admin Controllers for each module so I'm guessing I'd put it there but how would it launch. Where do I start?...

Tiptap WYSIWYG

Hi everyone, I would like to know if there is a way to use toolbar align options with tiptap type wysiwyg. Can someone tell me if there is a way?...

Sorting by a translation field (ie, title)

Hi everyone, I feel like I must be missing something simple (as usual) or am making something overly complicated when trying to sort a query by my title translation field. I have a Product model that is linked to my Brand model via a brand_id field, with the relationship in the Product model as follows: ```...

Problem with displaying headers if the site is in two languages

Good morning. I decided to look at twill 3 version. I use two languages (ru-main, en-I want to add in the future, while I decided to leave the fields empty). I ran into a problem that when creating a record, if you fill in the title field in both languages, then the title is displayed correctly. If you fill in only one language, then the title is not displayed. Although it is in the database, and when I request it from the database, I get it....
No description

Glide image width

Hi i have this config to use glide ` 'glide' => [...
No description

Deploy with deployer and composer update

Hi, I'm tryng to deploy my project on a server with deployer (php). When I do "composer update" locally every works fine. ...

Issuing rights to upload to the media library

Good afternoon! Tell me how to give the right dip for the defined role to upload files / images to the media library? `Gate::define('list', function ($user) { return $this->authorize($user, function ($user) { return $this->userHasRole($user, [...

Wysinwyg Editor Starting with source insted of visual

Hi, Is There a way to open a formField initially in source mode instead of visual mode? `@formField('wysiwyg', [ 'toolbarOptions' => ['bold','italic','underline','strike',"blockquote","code-block",['list'=>'ordered'],['list'=>'bullet'],'link','image'],...
No description

Attribute [singleton] does not exist.

Hello there im working in a twill website,and i got this error , can you help me sloving this error ?
No description

Disable live - draft

Any way to disable this feature on forms? Have tried multiple things, but non of it seems to work.

output selected blocks on the front in different places

Good afternoon! Tell me how you can draw blocks on the front selectively? Example Block 1...

Deleting an entry causes 500 error unless entry is destroyed

Been struggling with this for a bit and I'm out of ideas. I've got a browser that contains a list of other entries called 'sponsors'. When you delete the 'sponsor' it goes into the trash and is removed from the browser in the admin, but causes a 500 error when viewing the final page. If you destroy the 'sponsor' the page works fine. I've tried querying with ->get() using withTrashed() and then iterating over the query to filter out deleted 'partners' and still get a 500 error. Also tried whereNull('deleted_at') and have the same issue. Also tried other random stack overflow answers that still didn't work. Is there some form for querying related browsers that filters out trashed and unpublished entries that I'm unaware of?...

Browser route for sub-menu (primary navigation)

How to setup a browser connected to a module outside of the navigation group? See images for clarification....

How can I edit an indexColumn value?

Hi, I have a boolean that i need to replace to "active" or "not active" this is my indexColumns in my controller `protected $indexColumns = [...

Get link to file in media library

Good afternoon guys. Tell me how you can add the output of links to files when loading in the library?

Browser fields the id of the object doesn't save

Browser options show list with logo and name, gets attached correctly including logo and name. When you hit refresh the logo stays but the name disappears. Record exists in related table. The id of the object doesn't save into the modules table, stays null. At what point in the Twill system does/should the browser field identifier be saved into the database?...

InvalidArgumentExceptionUrlBuilder must be passed a string domain

Getting this error after switching to Imgix from Glide in MEDIA_LIBRARY_IMAGE_SERVICE.

Naming many-to-many tables in Twill and Laravel

Hi everyone! This may ultimately be more of a Laravel question than a Twill question, but any help is appreciated. I have a repository products and a repository reviews. I wanted to link these , so created a repository I named productReviews.
The migrations are created with the name product_reviews and that migration logic is expecting me to use that name (when I try to change it to singular, the migration would fail). When I try to use that table in the CMS something in Twill/Laravel is expecting the name of the table to be product_review (singular). So I end up having to manually change the name of the table after running the migration. Obviously this doesn't seem quite right. ...