Replies: 6 comments
-
Give me a basic run-down of the use case(s) you have in mind when you get the chance. Our DFV based fields do not build markup on the server side and instead deliver a data script that describes the field and data. The field is then constructed dynamically after page load, converting the data scripts into actual markup. There is a lot of room for flexibility with how we're doing things now. We can support some really neat dynamic things but real world use cases will dictate which ones we should focus on. |
Beta Was this translation helpful? Give feedback.
-
First I mentioned this to @sc0ttkclark: This implementation for related object is amazing. By far one of, if not the best I have experienced. I love what the team has been doing! I spent a little bit of time review the DFV code and I wasn't sure if it was possible to modify the template dynamically, it doesn't appear to be accessible via the I was trying to change the output of the list-item.html to include additional input fields. Here is a use case:
But as I mentioned above, I learned sadly that when render fires it removes everything, which makes sense of course after reviewing how everything was rendered. Anyhow I am not sure what is the correct answer here, but it seemed worth bringing up to see if I was missing something. |
Beta Was this translation helpful? Give feedback.
-
My thinking is that providing a facility for you to inject a custom view might be the most flexible thing. You could potentially take the template we use for List View as a starting point and make a modified one. We currently just use underscore templates but that's not set in stone (#4907). I have sat down and really thought out the best way to do that or the potential pitfalls, DFV is only in its infancy and developer needs will drive how the API evolves, I think. I'd love to see something like this available to folks doing advanced stuff, just need the demand for it. |
Beta Was this translation helpful? Give feedback.
-
any milestone for it @pglewis ? or just future ;) |
Beta Was this translation helpful? Give feedback.
-
This is vaguely tied-in with several other recent things under discussion involving DFV fields, including @JoryHogeveen, @senabean33, @sandbird2. Some of them are on the PHP side, some on the JS side, some a little bit of both. At the worst I'd like to address as many of these as possible during 2.8 as we expand DFV to all the fields. |
Beta Was this translation helpful? Give feedback.
-
Sticking it on the maintenance release track in case its something that can make it in before 2.8, but with the understanding that it might end up moving to 2.8. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like a way to modify relationship field HTML structure. Currently any modifications to the fields via JS is immediately removed upon render(). Or am I wrong and this is already possible? Perhaps @pglewis has some insight?
Beta Was this translation helpful? Give feedback.
All reactions