Twill CMS

TC

Twill CMS

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

Join

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. ...

upload image in production return error

hello everyone ,trying to upload image in production return me this error localy everything works fine ,can you help me to slove this

Glide & Cloudfront - Configuration

Hello guys, I've configured my website with glide and cloudfront on top of it but i guess that something is not working as it should be cause the linked images seems not to be cropped and processed this is an example of an image: https://d1blzzm4x1ktwi.cloudfront.net/img/d015b958-9c4d-4a79-a0c4-5ee71d35a039/stars1sphereReverse.png?fm=webp&q=80&auto=compress%2Cformat Do you have any advice or a link to a documentation that could help me to figure out this?...

Issue with locales and creating model records from a custom page

I've built a CSV Importer using a custom page, and have gotten to the point where I can successfully upload the file and start creating new records with my model/repository. But I'm running into an issue when it's trying to create the slug and translation data. Specifically, the active column is not being set, and the `HasSlug::getSlugParams() method doesn't know what to do with that since it's detecting that I should have locale info. I can't figure out how to send along locale information from my custom page, or if there's another way to send or bypass this from my code to create the new record? I hope that makes sense. I'm on Twill 2.11.0...

login admin panel redirect to login page in each submit in live

hello everyone , trying to login in live admin panel login redirect me to login every time i attemt the data in submit and nothing in conlole a have no ssl on it, is that an issue ? can you help me with this http://gysi.herokuapp.com/admin/login...

Creating a category without the ability to get to the page

Good afternoon. The demo has a section called Sectors. How was it made? I need only the creation window to appear, but not go to the created item! I want to make a section with categories. (not I don't need to fall into a specific category, I only need a window)...

Redefining the blade in which the user is being edited

Good morning, tell me how to override the blade that is responsible for editing the user? I need to give the ability to edit the roles of other users (this will be done by a person with a specific role). ...

Searching via tags

I feel like I might be overlooking something simple, but I'm using the HandleTags trait on my module's repository (PostRepository) to use tagging. I can get the tags for each Post just fine, but I'm not sure how to search for Posts via a tag slug. Any suggestions?