Headless Drupal

We want Drupal to be the CMS of choice for client-side MVC frameworks.

We want an API for renderable structure and context-aware template-driven JSON representations of pages.

The intention of this working group is to discuss how Drupal core should change for the ability for many different presentation layers to interact with Drupal, especially client-side frameworks, not just Drupal's own theme system.

We are working on drafting a manifesto on GitHub.

For some background, see Notes and Discussion from DrupalCon Austin.


Our todo list to get to robust RESTful client interaction support

  1. Document the current REST API
    • Maybe use something like Apiary
  2. Verify that we have PATCH support and that we can make individual field updates
  3. Implement OPTIONS support
  4. Create a benchmark implementation on a popular framework like Angular or Backbone
  5. Support retrieval of specific content entity views over REST
  6. Support retrieval of specific content entity edit forms and fields with widgets over REST
  7. Support linking and mapping of associated templates when retrieving of specific content entity views over REST
  8. Develop a cache-busting file name fingerprinting strategy so that templates and other resources retrieved from entity links can be versioned

Hadi Farnoud's picture

Using headless drupal with Node.js

has anyone used Headless drupal with Node.js? I'm thinking of converting فروشگاه ساز to headless drupal for ease of adding content and managing our landing pages.

this way I can even manage multiple sites (i.e. our landing pages/ blogs/ etc.) from one Drupal instance whilst keeping the frontend flexible.

Read more
ranjithraj's picture

Drupal8 Corporate Training: Run-up event for DCH2017

Start: 
2017-03-04 08:00 - 18:00 Asia/Kolkata
Organizers: 
Event type: 
Training (free or commercial)

Summary:

  • Full day Hands on training
  • Installation of Drupal 8 and setting up tools
  • Writing a custom module
  • Entity API
  • Hooks, Plugins & Events
  • Symfony - Services & Dependency Injection

If time permits:

  • Theming - Twig, Render API
  • REST with Drupal 8
  • Angular 2 with Headless Drupal
  • Native mobile app development using Ionic 2/Cordova

Note: Pre-requisites:

  • Good knowledge of Drupal 7
Read more
ranjithraj's picture

Decoupling Drupal: Mobile Apps Development using Drupal 8+Ionic Framework

Start: 
2017-02-18 10:00 - 18:00 Asia/Kolkata
Event type: 
Training (free or commercial)
Read more
ranjithraj's picture

DrupalCamp Hyderabad 2017

Start: 
2017-03-05 09:00 - 17:00 Asia/Kolkata
Event type: 
Drupalcamp or Regional Summit

Drupal Hyderabad community is excited to announce DrupalCamp Hyderabad 2017. Event scheduled on Sunday, March 5th. Full day paid training on Drupal 8 scheduled on March 4th, Saturday.
Registration: https://2017.drupalhyderabad.org

Important dates:
03 Feb 2017: Registration and ticket booking starts
03 Feb 2017: Call for papers starts
12 Feb 2017: Call for volunteers and volunteer meet
15 Feb 2017: Call for papers ends
20 Feb 2017: Announcement of final schedule of DCH2017
03 Mar 2017: Registration and ticket booking ends

Read more
ranjithraj's picture

Decoupling Drupal: Connecting with external web services

Start: 
2017-02-04 14:00 - 17:00 Asia/Kolkata
Event type: 
Training (free or commercial)

What is Decoupled Drupal?
We would like to hear from you, let us know what you know about decoupled drupal in comments section.

Speaker: Animesh Cherala, Developer at ThoughtWorks Hyderabad.
Host: Swecha, NPO dedicated to promote Free Software/FOSS. www.swecha.org
Address: Swecha office, Gachibowli X roads, Hyderabad.
Limited seats: Only 200. First come first reserved. :) | Free Training

Recommended readings:
http://buytaert.net/how-should-you-decouple-drupal
https://www.drupal.org/docs/8/core/modules/rest/overview

Keep watching this event for further updates

Read more

Different ways of installing/deploying Drupal

Content is simultaneously being developed at ' https://en.wikiversity.org/wiki/Drupal/Installation ', keep watching this space.

Read more
florsita's picture

Headless implementation for Open Social extension

Hi there! I'm new to Drupal and Headless implementation, so, forgive newbie questions. Has anyone any experience with implementing social communities in a Headless implementation? In particular, looking to use Open Social extension and would like to be able to create a custom UI for it. Does anyone have any thoughts?

Thanks so much in advance!
M

Read more
antons's picture

LİGTV~[CANLI~SEYRET] Konyaspor - Beşiktaş. maçı. canlı..izle.

Atiker Konyaspor - Beşiktaş maçını canlı izle 26 ağustos 2016, Konyaspor,, Beşiktaş,, Maçı,, Canlı,, İzle,, Lig,, TV,, kesintisiz,, HD,, Konyaspor,, Beşiktaş,, maçını,, Seyret,, Justin,, TV,, Konyaspor,, Beşiktaş,, Konyaspor,, Maçı,, Canlı,, İzle,, Konyaspor,, Beşiktaş,, maçı,, Şifreli,, olarak,, Lig,, TV,, 2,, kanalından,, Canlı,, izle'nebilecek.,, Aynı,, Zamanda,, TRT,, Radyo,, 1'den,, Şifresiz,, ... 13:30,, –,, Konyaspor,, –,, Beşiktaş,, maçını,, canlı,, ...

Read more
Mandakini_Kumari's picture

Headless - Edit and Reply Comment - Service URL & Request data

I am working on headless application. Need to build comment using drupal 8.

I am able to call web service for Add, Delete and List comment but not able to find appropriate URL and sample Request data for Edit and Reply Comments

Below is working for me:
Post Comment:
URL: {URL}:{PORT}/entity/comment?_format=json
Delete Comment
URL: {URL}:{PORT}/comment/{cid}?_format=json

Need help in D8: Need URL and sample Request data for below 2 web services for
Edit Comment
Reply Comment

Read more
tstecca's picture

Help Starting a Headless Drupal System

Hi,

my name is Tony. I work for a large online high school. We deliver all of our content as static HTML pages via a learning management system.

We are currently designing a new content and content delivery system and are interested in using JSON objects to represent our pages drupal to store the objects. After some research it appears that this approach is already in use by some organizations and is called headless drupal.

Read more
tstecca's picture

Help Starting a Headless Drupal System

Hi,

my name is Tony. I work for a large online high school. We deliver all of our content as static HTML pages via a learning management system.

We are currently designing a new content and content delivery system and are interested in using JSON objects to represent our pages drupal to store the objects. After some research it appears that this approach is already in use by some organizations and is called headless drupal.

Read more
Dan_Rogers's picture

Headless Calendar Application

Howdy Yall! Just wanted to post here to gauge interest on releasing a headless calendaring application we just built, called UniCal.

Read more
agungsuyono's picture

Drupal 8 + AngularJS Implementation

I'm trying to use AngularJS in Drupal 8 template. My objective is to get the power of drupal as a backend to do content query, and AngularJS as a front end to make a single one page application. I'm implementing AngularJS in drupal module with name drupal_ng. The complete code is in https://github.com/agungsuyono/drupal_ng. However, I'm wondering whether my implementation is not correct. Because I didn't see the result as expected; it seemed ng-controller didn't work in the HTML template. The javascript controller that I wrote did not bind to the HTML template.

Read more
Mandakini_Kumari's picture

Headless in Drupal 8

Can we Create node type and Manage content Fields using headless ? If yes what should be the request parameter ?

I am trying to consume below POST method:
http://mysite/admin/structure/types/add
http://mysite/admin/structure/types/manage/page/fields
http://mysite/admin/structure/types/manage/page/fields/add-field

Wish to know Request parameter for above services in case of Headless Drupal ?

Read more
abdofariss's picture

Symfony headless drupal login bug

Hi,

I'm trying to build a symfony headless drupal application, i made a custom module to handle login, logout and registration process,

this is my custom module:
<?php
/**
* @file
* Contains \Drupal\remoteuser\Controller\RemoteUserController
*/

namespace Drupal\remoteuser\Controller;

use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Form\FormState;
use Drupal\Core\Entity;
use Drupal\user\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;

class RemoteUserController extends ControllerBase
{
public function login() {

Read more
chrowe's picture

Seems like Dries's latest blog post should be linked to from here.

How should you decouple Drupal?

"With RESTful web services in Drupal 8 core, Drupal can function as an API-first back end serving browser applications, native applications on mobile devices, in-store displays, even in-flight entertainment systems (Lufthansa is doing so in Drupal 8!), and much more. When building a new website or web application in 2016, you may ask yourself: how should I decouple Drupal? Do I build my website with Drupal's built-in templating layer or do I use a JavaScript framework? Do I need Node.js?"...

http://buytaert.net/how-should-you-decouple-drupal

Read more
vacho's picture

How to add a js file with reactjs code to drupal 8 module

Hi, guys...
How to add a js file with reactjs code to drupal 8 module. This file is babel(o jsx) format.

At modules/product_search/product_search.libraries.yml I put this code:

searcher:
version: 1.x
js:
js/react.min.js: {}
js/react-dom.min.js: {}
js/browser.min.js: {}
js/searcher.js: {type: babel}

But this error appear:

Exception: Invalid JS asset type. in Drupal\Core\Asset\JsCollectionRenderer->render() (line 95 of core/lib/Drupal/Core/Asset/JsCollectionRenderer.php).

Read more
uk4drupal's picture

Blog in drupal like wordpress as mcdonaldsblog.in

Can we develop wordpress like functionality in drupal as eg. http://mcdonaldsblog.in

Read more

Reviews and Mentoring for Devaraj johnson

This wiki page is created to keep track of my project application reviews Reviews and Mentoring

Read more
Jiiro's picture

Drupal 8 headless with BackboneJS, retrieve single entity with referenced field

Hello friends,

I'm building up a contact directory search with Drupal 8 and Backbone. The idea is to benefit Drupal 8 to set up and expose search data via Views with Json format.

And I have 2 questions regarding setting up REST endpoint

  1. When retrieving a single node from Backbone, I'd call /node/[nid]?_format=json and get

    {
    "nid": [{
    "value": "55"
    }],
    "uuid": [{
    "value": "ec524ba2-5514-4179-a916-2213d40a0641"
    }],
    "vid": [{
    "value": "55"
    }],
    "field_acc_type": [{
Read more
Subscribe with RSS Syndicate content

Headless Drupal

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week