Twill CMS

TC

Twill CMS

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

Join

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