Twill CMS

TC

Twill CMS

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

Join

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?

permissions on Twill

Good morning. Tell me how to properly allow a user with a specific role to perform certain actions? I have a user role and I want him to be able to post only articles. Thought to override the method. But instead of publishing, an edit action is available. protected function getIndexOption($option)...

Can you help me displaying image by indexColumn

hello everyone trying to display image by indexColumns return me
dataimagegif;base64,R0lGODlhA
dataimagegif;base64,R0lGODlhA
like in picture

Can you please tell me how to work with the getData method in the block?

Good evening guys! Can you please tell me how to work with the getData method in the block? I have a translatable field where I need to get the last word and insert it separately into a block template. `public function getData(array $data, \A17\Twill\Models\Block $block): array...

Go directly to the preview from the content page

Good afternoon, can you tell me how to go from the page not to the content editor, but directly to the page view?

Double block hydration on browser resume

This is a really isolated issue at the moment that I haven't been able to replicate (I can sometimes) so I haven't quite gotten to the point of making a github ticket for those reasons. Essentially the working theory is that if you load an admin module editor page, and then navigate away from that page in a way that causes the active browser to suspend the memory for that tab (or something), when you come back to resume that browser tab, it causes a rehydration event or something which is causing blocks that were originally there to be duplicated. Workflow on this image:...

Getting fields through a component browser

Good evening, tell me how to properly receive fields through the browser component? I want to reflect in the preview....

Use SVG Images with glide

Hi, I'm trying to use glide with svg Image. I add this to twill.php ` 'glide' => [ 'original_media_for_extensions' => ['svg'],...

Custom Validation Rules in request

Good afternoon! I'm trying to apply my rules in request, but he doesn't see them. Just saves.