Twill CMS

TC

Twill CMS

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

Join

Issue using repository methods??? Twill 3

Can someone please provide any support for the following error: Declaration of App\Repositories\PostRepository::afterSave($object, $fields) must be compatible with A17\Twill\Repositories\ModuleRepository::afterSave(A17\Twill\Models\Contracts\TwillModelContract $model, array $fields): void I have been looking to set up a repeater as per the twill guidance docs with the following in my PostRepository (however I'm running into some errors): ...

How can I make sure my assets are loaded correctly on a subdomain?

I have a site for example website.nl and a twill installation on website.nl/subsite Now when I go to website.nl/subsite/admin all the css does not load because it tries to get it from website.nl/assets/etc instead of website.nl/subsite/assets/etc. How can I fix that?...

I can't see any images in twill media library.

Hello, everyone! I have installed twill and tried to upload a image to media library. However, I am not able to see the uploaded image, I have changed the .env file and config/twill.php file so many times according to the prior artcles and discussions. But nothing seems to be working....

DatePicker Exception

I'm getting an unexpected error while using a pretty simple DatePicker in my sidebar form. Undefined variable $formFieldsValue (View: /app/vendor/area17/twill/views/partials/form/_date_picker.blade.php) In my form: ...

Some fresh vibes would be nice :))

Would love to hear some global announcement about twill cms this year and where it's heading @ifox . Twill has not received any love and updates for about 8months now so it would be super beneficial to remind the community that project is not dead

Edit defaultOrders in controller

What would be the most correct way to edit? $this->defaultOrders of ModuleController in my controller, I understand that setting it in setUpController would work, but it is not a public method, My idea is something similar to this: ...

Vue2 EOL Plans?

We're upgrading our application and generally upgrading our setup in preparation for the Vue2 EOL at the end of the year. In updating that, we've noticed that Twill has a Vue2 dependency. Are there plans to upgrade before the EOL on 12/31/2023?

Route [admin.password.reset.link] not defined on upgrade from 2.x to 3

Hey folks, I followed the upgrade guide step by step successfully, but when I try to visit the admin I get this error. Details are as follows: Route [admin.password.reset.link] not defined. (View: /Users/myuser/work/Terrorbird/vendor/area17/twill/views/auth/login.blade.php). I've tried just deleting the vendor directory and reinstalling my composer dependencies, but no love. Any thoughts on what's going on here?

Twicpics & fit=crop

Apparently fit=crop is automatically added to the url, also when using Twicpics as image service. However fit=crop isn't a supported parameter by Twicpics. How can I overrule/fix this?...

DatePicker problem

Hi! sorry, what s wrong with my setup .... Just installed a fresh laravel app, with newest twill 3 - wonderful! Could not figure out, why a datetime field (saved as datetime column in db) saves the field correct to database - eg. 2023-11-11 14:00:00 - with DatePicker component . In index view its displaying correct, in db it s also correct, but when I come back to edit my fresh created record it displays 1 hour ahead - so instead of 14:00 it displays 15:00 .... Thanks a lot!...

Admin api requests blocked for mixed-content

This is an odd one and happening in a single environment (which unfortunately is production) . I know the issue is me, but I can't seem to see what is wrong. All api requests made by the twill admin are being made using http instead of https and the browser is blocking the call for mixed-content. For example, if you open the media library, a request is being made to http://productiondomain.com/admin/media-library/medias?page=1&type=image and the request gets blocked because the current page was loaded over https and it looks sus....

I'm lookig for the DNS Settings of my website. Can anybody help me please?

The person who made my website is not available and i need to access my dns settings. Thanks!

How to load images in smaller size while keeping aspect ratio and not cutting parts of it off?

Hello, I am trying display images with a smaller width that I uploaded in my CMS but without any crop. So for example a logo that is 2000px by 3000px I want to display it with a width of 300px while keeping correct aspect ratio and without cutting parts of the image off. It's not really clear for me in the documentation how to do that. Currently I have this code:...
No description

419 login superadmin

Hi all, I'm deploying a project with docker containers, I created a superadmin, I try to log in and get an error. "The page has expired due to inactivity. Please refresh and try again." Can you tell me what the problem might be, I've been trying to figure it out myself for a long time?( It's definitely not a problem with the csrf token, I've checked it already...

Call to a member function permissions() on string

Can you give me a hint, please? In config/twill.php I specified return [ 'enabled' => [ 'permissions-management' => true...

permalink

Good morning, everyone. I wanted to ask a question. I would like to have the possibility to add a button next to the permalink, where I could click on it and automatically copy that link. Is there something already available that does this? Thank you for your attention.
No description

Conditionally render block fields?

Is there a way to render block fields based on a field value outside of the block? I want to conditionally render a field based on a value that's set outside of the block editor but I'm not sure how to pass it through.

Locale-Restricted Blocks?

Hey again! Is it possible to hide or limit specific blocks in the backend based on the locale? For instance, if there are a bunch of videos in a block (or PDFs etc.) that are localized for english, and we simply don't want to include that section in a different language, is the only solution to modify the block on the frontend and write an if condition to display nothing if in a certain locale? Or is there a better course of action? My only concern with that path would be user confusion in the b...

Permalink - Question

Good afternoon, everyone. I wanted to ask a question. I would like to have the possibility to add a button next to the permalink, where I could click on it and automatically copy that link. Is there something already available that does this? Thank you for your attention.
No description