I need to include an overwiev image to my domain model.
It has to be there because the models (like projects in crowd funding) will have a lot of sorting possibilities.
- What is the correct Type to deal with images in a domain model?
- upload/select (from a collection) /crop an Image
- display it in a fluid template
Is there any example?
Thanks a lot Martin.
In my case, we have a Neos backend module for the Projects (domain model).
For the actionNew and actionEdit, I’d like to have an “image chooser” in the forms.
More or less like the one in the inspector.
In Neos there will be a plugin for the project overview (list of all projects) with that images.
By the way: a date chooser is also needed.
Have a nice day
I see no good way to reuse the whole inspector editors currently. At least as long as you do’nt create your module as an ember app. I have no experience with ember but it might work.
With the react rewrite things might become easier since there you have a separate package with the reusable ui-components https://github.com/neos/react-ui-components . Nevertheless in that case your be-module has to be a react-app.
For your current problem i suggest to use the js-tools you like, with a matching datepicker and autosuggest function and provide an json-endpoint to select assets.
Or if you like comfort find a way to use cr-documents to manage your data. Keep in mind that a document not necessarily has to be accessible from the frontend.