-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement support for file field Drupalgap #491
Comments
Use |
No, @signalpoint , continues error loading the module. |
@geYdes If it can't load the module, that means you have a syntax error in your code. For example, the following line has syntax errors all over the place:
|
@geYdes , Did you get it working. If not you want me to help out? I need this too. |
No @clivesj , I don't find the way to solve it. Any help will be good... |
FYI, the code being developed here should live in this (empty) file in DrupalGap core (instead of in a contrib module): https://github.com/signalpoint/DrupalGap/blob/7.x-1.x/src/modules/file/file.js Please make a fork of DrupalGap and paste the code above into it, fix any syntax errors, and that should be good progress. We can then look to someone submitting a pull request and getting this into core, thanks! |
I have added the code to src/modules/file/file.js but DrpalGap is not finding the function: WARNING *** CLIVESJ DEBUG ***: _drupalgap_form_render_element() - file_field_widget_form() does not exist for the "file" form element! So drupalgap_function_exists() doesn't return valid. Any suggestions? Thanks |
@clivesj Did you use the |
Ah shoot, I am just noticing a comment about this in drupal.js. That should be it. Thanks! Van: Tyler Frankenstein [mailto:[email protected]] @clivesj https://github.com/clivesj Did you use the makefile to recompile the bin/drupalgap.js file? Is your index.html file pointing to bin/drupalgap.js? — |
When I edit a node the file upload field widget is displayed neatly. However when I view the node the hook file_field_formatter_view() is not invoked. The file field is populated. |
@clivesj What does the console.log() say? It should say the name of the function that is required to display the field. |
I expect a warning message in the console but it is not showing. Also for the other non-implemented fields (date) the warning doesn’t show. I have been trying a couple of things… I will re-install the SDK tomorrow, maybe I broke something. I am not gona bother you too much, but you prefer to communicate this way or do want me to go on IRC? Van: Tyler Frankenstein [mailto:[email protected]] @clivesj https://github.com/clivesj What does the console.log() say? It should say the name of the function that is required to display the field. — |
@clivesj can I get your last implementation of file.js ? , because I also need that module. |
hello, you can get it on |
@folovr, @clivesj's file is here: https://github.com/clivesj/DrupalGap/blob/7.x-1.x/src/modules/file/file.js |
I'm writing the code for video recording. I'm thinking to use standard Drupal file field, but that file is used to upload any kind of file like .mp3, .txt, etc. Any suggestion of how can I see if that file field will be used to upload a video file? so a video-recording link will be added |
@folovr You'll have to dig into the |
I just see that image module can't handle multiple files, and if there is other image field a duplicated node will be created. I think that issue is https://github.com/signalpoint/DrupalGap/blob/7.x-1.x/src/includes/form.submission.inc.js line 102, where form_validation() will be executed after sent every image field. I think a file upload process should be created to upload all files in a node create form, so file and image uses that. |
@folovr that may be true, please test it. Also, see if this Pull Request helps with your problem as well: https://github.com/signalpoint/DrupalGap/pull/406/files - FYI @chrisschaub |
@lsancheztapia I have managed to support video recording in DrupalGap. If you are still interested, please let me know. |
Hi @signalpoint ,
I'm trying to create a module that supports the implementation of File module Drupal.
This is the code used, code that doesn't work.
Any help please?
Thanks.
The text was updated successfully, but these errors were encountered: