Comments (5)
Would it also accept default value?
from nova-advanced-image-field.
Would it also accept default value?
There is no native method in Nova for setting a default value for a field. This is the case for all field types, including File and Image.
Have a look here: laravel/nova-issues#58 (comment)
This should help you.
Have a good one!
Clément
from nova-advanced-image-field.
from nova-advanced-image-field.
Allo Clément :) Merci du retour super rapide! Oui justement j'avais vu mais check ça aussi sur la doc... https://nova.laravel.com/docs/3.0/resources/fields.html#default-values C'est sur la V3 par contre...
Ah, merci pour le tuyau, je découvre pour être honnête...
Par contre, après plusieurs tests, je n'ai pas l'impression que ce soit vraiment fait pour des champs de type "fichier".
Comment verrais-tu cette fonctionnalité fonctionner ?
Bonne soirée
from nova-advanced-image-field.
Hello @guillaumeduval64,
Après plusieurs test, je te confirme que cette fonctionnalité ne peut pas fonctionner avant le champ file
(regarde https://stackoverflow.com/a/16367121).
Pour information, j'ai publié samedi une nouvelle version (v1.2.0) qui améliore grandement l'héritage avec les champs natifs File
et Image
.
N'hésites pas à y jeter un œil et me faire des retours si tu utilises toujours le package ;)
Bonne journée,
Clément
from nova-advanced-image-field.
Related Issues (20)
- Laravel Nova: Encoding format (tmp) is not supported. HOT 1
- Upload not working on server running Windows (`Encoding format (tmp) is not supported.`) HOT 10
- A default cropable area HOT 1
- AdvancedImage fields not replicated
- Webp HOT 2
- Croppable undermining dimension rules
- Question: can i pass in base64 encoded data HOT 1
- Image Resize Not Working HOT 3
- Is there a way to turn off the zoom / size change in cropping? HOT 2
- Looking to make images that are cached bustable, use a query string HOT 2
- Is there a method to have multipul images per record? HOT 2
- Anyone working on a Nova 4 upgrade? HOT 7
- Can we add watermark? HOT 1
- s3 disk() function compatibility HOT 1
- JS errors HOT 2
- Encoding format (tmp) is not supported. HOT 2
- Nothing showing in nova HOT 1
- Argument 2 passed to Ctessier\NovaAdvancedImageField\AdvancedImage::transformImage() must be an object HOT 1
- Doesn't work on a hosting HOT 4
- File change doesn't work anymore from Nova v4.22.0 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nova-advanced-image-field.