-
Notifications
You must be signed in to change notification settings - Fork 26
Allow more field types #4
Comments
I will look further into this, I like the idea :) |
Added Trix support in Version 1.1.0 (https://github.com/mrmonat/nova-translatable/releases/tag/1.1.0) |
Adding markdown support seems a bit more difficult, because there is no wrapper around the native laravel nova markdown field (like there is for trix), so basically I would have to copy the whole markdown field logic & ui into this custom field... |
Awesome. Looking at the source, as you say, looks harder for the markdown one... Maybe another approach can be toogling a form level language field changes instead per component, but i'm not really sure if possible. |
I guess a MD wrapper will be added in a future release, but in the meantime... how about adding a ->textarea() call to create a textarea instead of an input field? |
you can, just don't use the |
+1 for markdown field :) would love this feature |
Cant use trix with withFiles() method |
I think having this as a Panel Type field would make more sense as it would allow using any component. |
@killgt But how ? |
Using the actual approach of the package I prefer to have something like a Text field (extending the original from Nova) and adding extra bits like a But I'm agree with @idragon81 we can have both things, a TranslatableTabs and extended fields like I said |
@taliptako, Did you manage to add "withFiles()" support? |
Hello, has anyone found a solution to make the image field translatable ? |
Hi, check this package. It have a lot todo, but basically uses a different approach... PS: this package is based on astrotomic/laravel-translatable |
@mrmonat I'm not sure if this would work, but can't you create a small wrapper component for the nova markdown field (https://github.com/laravel/nova/blob/master/resources/js/components/Form/MarkdownField.vue)? Basically just like this:
And then include this component in this package here? 🤔 |
+1 for file upload, it's the very reason to go with trix in the first place |
@mrmonat did you have a chance to add Markdown field? |
I use trix and markdown field types for translatable content, adding support to this field types will be really useful.
The text was updated successfully, but these errors were encountered: