How to let Drupal Nodejs update views if create/modify node is through AJAX

by Rami Sedhom   Last Updated May 15, 2019 18:07 PM

The purpose to make simple todo list, where user can:

  1. Add new todo,
  2. Modify his/her existing todo,
  3. Mark his/her existing todo completed.

all of the above in his/her home page (without going into other pages to create or modify content).

So I:

  1. Created content type: todo,
  2. Created view with required fields to be editable,
  3. Add button "+Add" to add new todo through Rules,
  4. Enable Nodejs integration and Views nodejs.

Now if I add, modify the todo content from another page, it is updated through nodejs into the home page. But if I'm adding or modifying on home page itself, it doesn't work.

Not sure where the issue is in the Views or Nodejs?

Tags : 7 views node.js


Related Questions