Comments (1)
Hi @xenonthong,
Three things :
- Having two fields saving data to the same attribute seems like you're looking for problems. I guess this should work as intended with R64's Json field (I'm not sure though), but why not define the flexible content inside the JSON field, next to
Text::make('title')
? Also, in my opinion you should probably save to different attributes since "Hero" and "Gallery Images" are two separate things. - In order to save images (or any other files) in a flexible-content, we need to access the Request object containing the fields. My guess is that the Request object has been altered by the JSON field and therefore, this could be an issue with R64's package.
- If you really want to create a "content-builder" that saves all its data to the same attribute, you should probably only use the flexible field and add the "Hero" & "Gallery Images" as layouts in the flexible field. You can nest flexible fields, meaning your current "Gallery section" layout can be nested inside a potential "Images Gallery" layout.
from nova-flexible-content.
Related Issues (20)
- Dependent Fields not working HOT 4
- Call to undefined method preventsAccessingMissingAttributes() HOT 3
- "Add layout" dropdown overflow HOT 1
- Not working with replicate function HOT 4
- Dark mode issues HOT 2
- Float-left class not working HOT 1
- Nested flexible layout width HOT 1
- Flexible Content Layouts Truncated When Insufficient Form Content Present HOT 1
- Compatiblity issue with spatie/laravel-medialibrary ^11.4.2
- Resource Details view fails to load in Nova 4.32.13 and up HOT 19
- Laravel 11 Support
- Button cover by card
- The flexible-search-menu does not work. HOT 1
- Regression: Delete button is broken HOT 4
- Can't update models with any flexible field HOT 7
- Flexible isn't opening on Detail and Edit page with Nova v3.3 and Laravel 10
- Flexible not work with DependOn HOT 1
- Spatie Medialibrary incompatibility
- MultiSelect Field
- default Layout
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-flexible-content.