screenshot of crossfading fonts

Drupal 8: Load a node through AJAX

still working on this

There are, ofcourse, many ways to do this. A simple jquery.ajax-call to any url would get you the html for that page. You could simply get from that the part you want and inject it into your page and this would work. You can also load all the nodes field-values through the REST-api and parse the JSON client-side. This too would work and is very usefull in itself. However, Drupal has a nice build-in framework to deal with loading complete nodes in a better way. This is better in the sense that it enables you to use all the 'normal' drupal-stuff like access- and cache-control and reusabillity. That is what we want.

Custom module


View modes