jDrupal icon indicating copy to clipboard operation
jDrupal copied to clipboard

Returning node collections

Open JeSuisAlrick opened this issue 8 years ago • 2 comments

Hi, there doesn't seem to be a way to retrieve a collection of nodes from the service. Is there a reason for this? Am I supposed to use a view?

JeSuisAlrick avatar Apr 13 '18 13:04 JeSuisAlrick

@JeSuisAlrick For D7 or D8?

In D7, there is the node_index() resource for this.

And yes, Views is a nice alternative, as is creating your own custom Service Resource.

signalpoint avatar Apr 13 '18 13:04 signalpoint

Oh, ok. I'm actually using Drupal 8.

I prefer to deal with raw data because of how heavy Views can be. I was hoping there was a way to send a query back to the service for certain types of nodes, but basically you saying I can create my own resource and call it from jDrupal?

JeSuisAlrick avatar Apr 14 '18 07:04 JeSuisAlrick