• Stars
    star
    628
  • Rank 71,247 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 3 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Next.js for Drupal has everything you need to build a next-generation front-end for your Drupal site: SSG, SSR, and ISR, Multi-site, Authentication, Webforms, Search API, I18n and Preview mode (works with JSON:API and GraphQL).
Next.js for drupal

Next.js for Drupal

Next-generation front-end for your Drupal site.

Demo

https://demo.next-drupal.org

Documentation

https://next-drupal.org

Deploy to Vercel

Deploy with Vercel

Example

A page with all "Article" nodes.

import { DrupalClient } from "next-drupal"

const drupal = new DrupalClient("https://cms.next-drupal.org")

export default function BlogPage({ articles }) {
  return (
    <div>
      {articles?.length
        ? nodes.map((node) => (
            <div key={node.id}>
              <h1>{node.title}</h1>
            </div>
          ))
        : null}
    </div>
  )
}

export async function getStaticProps(context) {
  const articles = await drupal.getResourceCollectionFromContext(
    "node--article",
    context
  )

  return {
    props: {
      articles,
    },
  }
}

Supporting organizations

Development sponsored by Chapter Three

Contributing

If you're interested in contributing to Next.js for Drupal, please read the contributing guidelines before submitting a pull request.

More Repositories

1

drupal-8-theming

Training documents for "Drupal 8 Theming for Drupal 7 Themers"
PHP
71
star
2

AppleNewsAPI

This is a PHP library that allows you to publish content to Apple News and construct documents in the Apple News JSON format.
PHP
37
star
3

test_api

A very simple module that demonstrates implementation of a custom RESTful API in Drupal 8
PHP
31
star
4

oophp-training

Training materials for Object Oriented PHP Training
Jupyter Notebook
23
star
5

next-drupal-basic-starter

A simple starter for building your site with Next.js and Drupal.
TypeScript
17
star
6

http_response_headers

Drupal 8 module to secure HTTP headers and improve performance
PHP
9
star
7

drupal-8-backend

Drupal 8 backend training exercises
6
star
8

dfp

DFP port to Drupal 8
PHP
4
star
9

next-example-umami

The Umami demo site built as a headless Drupal with Next.js.
TypeScript
4
star
10

next-drupal-graphql-starter

A next-drupal starter for building your site with Next.js and GraphQL.
TypeScript
4
star
11

creo-server

A barebones Drupal 6/7 development server management script using Apache, MySQL, PHP, Solr, Drush, and Gitolite.
Shell
3
star
12

openacademy_courses

PHP
2
star
13

drupal-hook-webform-handler-invoke-alter-example

Example use of hook_webform_handler_invoke_alter and hook_webform_handler_METHOD_alter for Drupal 8 and Drupal 9
PHP
2
star
14

jcc-srl

Judicial Council of California Self-Represented Litigant portal - Drupal 8
PHP
2
star
15

pantheon-next

Next.js for Drupal on Pantheon
PHP
1
star
16

openacademy_publications

PHP
1
star
17

teamwork-log

Take a CSV file and log its data as time entries in TeamWork.
AppleScript
1
star
18

panopoly_theme

PHP
1
star
19

panopoly_widgets

PHP
1
star
20

panopoly_search

PHP
1
star
21

panopoly_admin

PHP
1
star
22

panopoly_images

PHP
1
star
23

openacademy_events

PHP
1
star
24

openacademy_people

PHP
1
star
25

require-to-publish

PHP
1
star
26

panopoly_magic

PHP
1
star
27

openacademy_news

PHP
1
star
28

sfgov-pattern-lab

SFGOV Pattern Lab
CSS
1
star
29

openacademy_manifest

the keys to the kingdom
1
star
30

cdn_pull_origin

Simple CDN (origin pull only) module for Drupal 8. Works with Amazon CloudFront.
PHP
1
star
31

applenews

This is a PHP library that allows you to publish content to Apple News and construct documents in the Apple News JSON format.
PHP
1
star
32

search_exclude

Exclude content types from Search for Drupal 8.
PHP
1
star
33

openacademy_core

PHP
1
star
34

panopoly_core

PHP
1
star
35

panopoly_wysiwyg

PHP
1
star
36

panopoly_demo

PHP
1
star
37

next-drupal-basic-starter-client

A simple starter for building your site with Next.js and Drupal. This starter uses the DrupalClient.
TypeScript
1
star
38

panopoly_pages

PHP
1
star