Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When installing via drush
$ drush en drupalgap
No release history was found for the requested project (views_json).
Module drupalgap cannot be enabled because it depends on the following modules which could not be found: views_json [error]
As the views_json module is moved into the Views Datasource module, this is of course easily solved downloading datasource. Still the dependencies should probably be changed to reflect this.
Comments
Comment #1
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedThanks for pointing this out. In the past I have tried indicating a dependency for views_datasource, but then when enabling drupalgap via drush, drush complains about there is no module called views_datasource (which is technically true, since the project is called views_datasource, but the sub-module we need is actually called views_json). Also, when indicating a dependency on views_datasource, it isn't possible to enable the module at all, because again there is no module called views_datasource.
If anyone knows how to write the .info file to correct for this dilemma, please let me know.
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedSince this is not really a fix and means that the module can't even be enabled in Drupal 7, should this still be active or needs work?
Comment #3
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedThe module can be enabled in Drupal 7. Follow the readme instructions or the online documentation. The project dependency is called views_datasource, but the module dependency mentioned in the .info file is called views_json, which is a sub module of views_datasource. If you know how to write a module .info file to get around this so Drush can figure it out, by all means, please share the knowledge. See comment #1 for more information about the problem, I still don't know how to get around it. I just install DrupalGap the old fashion way, unfortunate, but do-able.
Comment #4
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI see it now.
I had to download views_datasource which has views_json within it.
Comment #5
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedIn closing...
The multi-step approach Views JSON (a sub module of Views Datasource) is with the following Drush commands:
Note, you would also of course have to enable the Services and Rest Server modules before enabling DrupalGap. Please refer to the DrupalGap Documentation for more information on installation instructions.
Comment #7
ssoulless CreditAttribution: ssoulless commentedPlease add this to the documentation of the module installation
https://www.drupal.org/node/1603690
Comment #8
ssoulless CreditAttribution: ssoulless commentedsrry mistake
Comment #9
tyler.frankenstein CreditAttribution: tyler.frankenstein commented