Twill CMS

TC

Twill CMS

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

Join

[3.x.dev] Call to undefined method ReflectionUnionType::getName()

Newbie to Twill here. Fresh install of Laravel 10.4.1 / PHP 8.2.4 / MYSQL 8.0.32 on Ubuntu Budgie 22.04.02 Pro. Fresh install of Twill 3.x.dev Migrate...
No description

Add custom icons into twill

I add the icons into the path resource/views/admin/icons and I run the command, result is ok, but when I load the Editor on admin, it not working I had followed with https://twill.io/docs/block-editor/creating-a-block-editor.html#list-existing-icons but when I add config into config/twill.php file, Editor not working at all and don't show anything How can I show custom icons in the editor screen ?...
No description

Select an another block in a block?

Hi everyone, I have a function to create a new block with name "Columns block". With this block, user can create a new content row with multiple column. And after that, user can select a specific block (it will dynamic with all block already had in system) that they want to show in column. Can Twill already support this function?...

Media Library / Glide only loading JPEGs

Hey there, So I had a Laravel/Twill app running successfully on a subdomain with no issue. Today I needed to move it to the main domain to go live. This is a CPanel shared host server btw....
No description

Adding a vue component

Good afternoon Tell me what could be the problem? On the main page of the admin panel there is an activity panel. I want to replace with my component. For testing, I created a component from the help, but unfortunately it is not displayed. Vue the component even tried to create just in the component folder. Outcome is the same....
No description

Save title in translations

I'm trying to save my title as a translatable field, normal fied works fine but when i make it translatable it doesn't get saved in my database anymore?

Set translations to active

While trying to set translations to active it isn't saved to database? Only english is selectable...
No description

can't use Published, Draft, Trash filters on module index

I see the buttons, they show the correct counts in the parenthesis, but when I click on them, I always see all the items. (This is also true on the users page with the Active, Disabled and Trash buttons: The counts are correct, but I always see all users in the list.) Any ideas? I'm new to Twill so sorry if I forgot something obvious....

Settings - Multilanguage

Hello guys, i'm having a strange issue on settings sections. When i save a translated field in Italian the english input is pouplated with a json containing the italian input Any hints on what could be wrong?...
No description

medias XHR request with wrong scheme

Greetings... I'm having trouble with accessing media library in the admin area in production. Mixed content error. The request for 'medias' is being made via http: scheme even though APP_URL, APP_ADMIN_URL, and ASSET_URL are all set with the https: scheme. Any idea how to fix? Thanks!...

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