Twill CMS

TC

Twill CMS

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

Join

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.

Get value from child block for validation in block class

Good afternoon! How to get the value of a field that is in Block -> Repeater -> Field? It is necessary to check the field and display an error if the field, for example, is not filled....

Getting label from select in preview

Good afternoon! How it is possible to deduce value from select? At the moment I'm getting the name from an option. How to get a label?

Trying out Discord forums

Hi everyone! Discord recently introduced a new channel type: Forums. We decided to give it a shot for a few reasons: - it forces all conversations to be in a thread/post...