Question

I installed DrupalGap. Everything works fine so far, except that the node body is not displayed. I have none of the mentioned interfering modules installed. I also tried with a fresh Drupal 7 installation in a new test environment with the same result.

I ask for advice or hints.

Note: values are handed over. I can display the body instead of the title. But after clicking a node title, in the sub sequent page only the titel and the comments are shown.

Watchdog log

Additional information: the edit mode of a node shows the html content. Only the view does not show the content (body)

10th of Jan 2020: I made a clean Drupal 7.69 installation with minimum modules (in order to exclude module interferences) with DrupalGap 7.x-1.17 on my localhost. Same effect - not showing the node body in View mode. I wonder what configuration the DrupalGap demo does have? There it works.

Was it helpful?

Solution

The problem was that the Body field was not added to the DrupalGap Display Mode for the content type:

By default, there are no fields displayed using the DrupalGap Display Mode. We need to specifiy which fields, labels and formats will be used when our nodes are displayed in the mobile app. Do this for each content type.

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top