kallefrombosnia
TCTwill CMS
•Created by Neorio. on 12/16/2024 in #👊support
How to insert & render media with block editor to frontend?
Btw I dropped using blade forms a long time ago, I use class blocks which only have render blade and in which you can define blade render file name.
7 replies
TCTwill CMS
•Created by Neorio. on 12/16/2024 in #👊support
How to insert & render media with block editor to frontend?
Do you have matching block names (form & render blade file)?
7 replies
TCTwill CMS
•Created by Neorio. on 12/16/2024 in #👊support
How to insert & render media with block editor to frontend?
Yeah, something like that.
For multiple medias with one crop, you have
$block->images('cover', 'default)
You can always use @dd($block->images('cover', 'default))
to see what you get and how to render stuff.7 replies
TCTwill CMS
•Created by Neorio. on 12/16/2024 in #👊support
How to insert & render media with block editor to frontend?
Hello, no problem, we all started somewhere with the Twill.
Your issue is missing block media definitions in the twill config.
You have defined crops for the module medias, but that is not applicable to the blocks inside that module. Block medias have own definitions.
Long story short, use Model definitions for the normal media fields, and for the blocks use the config
block_editor
definitions.
7 replies
TCTwill CMS
•Created by Flash on 11/27/2024 in #👊support
Creating a menu with more than 2 levels
Are you talking about your FE menu which should be built from the CMS? If yes, you have nested modules which do exactly that.
If you talk about Twill CMS navigation menu, you have 3 levels of parent-child navigation.
2 replies
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 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.
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