kallefrombosnia
kallefrombosnia
TCTwill CMS
Created by toncek on 11/6/2024 in #👊support
Tiptap Align
Weird. Try to remove other and leave align only just to be sure. I would recommend publishing Twill assets again php artisan twill:update and upgrading to the latest Twill version.
8 replies
TCTwill CMS
Created by toncek on 11/6/2024 in #👊support
Tiptap Align
It doesnt matter, it should work for both editors. You have some other issue probably. Do other options work as expected?
8 replies
TCTwill CMS
Created by toncek on 11/6/2024 in #👊support
Tiptap Align
$wysiwygOptions = [
...
'align',
];
$wysiwygOptions = [
...
'align',
];
8 replies
TCTwill CMS
Created by Bradley on 8/20/2024 in #👊support
Image File not Found
But I see on the Github that you already resolved your issue, great.
18 replies
TCTwill CMS
Created by Bradley on 8/20/2024 in #👊support
Image File not Found
Unfortunately, you will need to deep dive into debugging and see whats causing the issue. I would start by finding media controller for /img and there I would debug filesystem and glide operations to see whats causing media file to not be found on the server.
18 replies
TCTwill CMS
Created by Albert on 10/21/2024 in #👊support
how to override a default database model class method
I didnt, like @ifox said, that model file isnt in the configuration. But deffinetely it could be done via PR and proper testing.
19 replies
TCTwill CMS
Created by Albert on 10/21/2024 in #👊support
how to override a default database model class method
I didnt check the code, but if somewhere hardcoded model was used instead of config one, your override wont work. What you can do (but this can cause issues later with the upgrade) is the composer override. I used it for my usecase and here is the short snippets.
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
},
"files": [
"app/helpers.php",
"app/Repositories/Twill/MediaRepository.php",
"app/Models/Twill/Media.php"
],
"exclude-from-classmap": [
"vendor/area17/twill/src/Repositories/MediaRepository.php",
"vendor/area17/twill/src/Models/Media.php"
]
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
},
"files": [
"app/helpers.php",
"app/Repositories/Twill/MediaRepository.php",
"app/Models/Twill/Media.php"
],
"exclude-from-classmap": [
"vendor/area17/twill/src/Repositories/MediaRepository.php",
"vendor/area17/twill/src/Models/Media.php"
]
},
In my own code I copied the Twill Media model and use it like it comes from the Twill repo.
19 replies
TCTwill CMS
Created by Bradley on 8/20/2024 in #👊support
Image File not Found
Thats weird. @ifox any idea maybe
18 replies
TCTwill CMS
Created by Bradley on 8/20/2024 in #👊support
Image File not Found
Can you confirm that your image is in that exact path?
18 replies
TCTwill CMS
Created by Bradley on 8/20/2024 in #👊support
Image File not Found
Ok, nevermind storage link is not needed since this comes from the controller which grabs the image from the storage/app/public/uploads/1a437793-b32d-41a8-b18d-ced69955c6aa/image.png.
18 replies
TCTwill CMS
Created by Bradley on 8/20/2024 in #👊support
Image File not Found
Are you on the win or other OS? file perm could be a problem
18 replies
TCTwill CMS
Created by Bradley on 8/20/2024 in #👊support
Image File not Found
APP_DEBUG should be true
18 replies
TCTwill CMS
Created by Bradley on 8/20/2024 in #👊support
Image File not Found
It should tell you why images dont load
18 replies
TCTwill CMS
Created by Bradley on 8/20/2024 in #👊support
Image File not Found
Check the browser devtools->network or laravel.log
18 replies
TCTwill CMS
Created by Bradley on 8/20/2024 in #👊support
Image File not Found
Do you have storage linked to the public directory? artisan storage:link
18 replies
TCTwill CMS
Created by Sunil on 7/31/2024 in #👊support
install twill with docker and wsl
Do you have GD extension enabled? php.ini
6 replies
TCTwill CMS
Created by Sunil on 7/31/2024 in #👊support
install twill with docker and wsl
You should check the browser network tab and the media requests. Check the URL and the response header. It should tell you whats wrong.
6 replies
TCTwill CMS
Created by Adam Mateusz Brożyński on 6/29/2024 in #👊support
Is it possible to use Twill with Twig (rcrowe) for frontend (block and module templates)?
If you dont need an admin block preview, you can exclude blade completly. You can create blocks without blade files. And for the frontend, you can extract block json data from the given module record/singleton and use it as headless or pass it down to your own preferenced templating engine in the controller.
6 replies
TCTwill CMS
Created by iAlexandru93 on 4/23/2024 in #👊support
Croping not working
Picture is already cropped from what I can see from your URL. https://glide.thephpleague.com/2.0/api/crop/ <img src="kayaks.jpg?crop=100,100,915,155"> If you see docs for the crop, your example is cropped like 200,200,297,0
22 replies
TCTwill CMS
Created by iAlexandru93 on 4/23/2024 in #👊support
Croping not working
Also you can check if media exists by
$item->hasImage('main_banner', 'default'); // returns bool
$item->hasImage('main_banner', 'default'); // returns bool
22 replies