@druxt-contrib/config-pages

2,939
Install
npm install @druxt-contrib/config-pages
Latest Version:0.1.3
Last Updated:Oct 23, 2026
Links: GitHub  ·  npm
Maintainer: deciphered

DruxtConfigPages

npm Known Vulnerabilities CI codecov

Decoupled Drupal configuration pages for Druxt

The DruxtConfigPages module consumes configuration data from the Drupal Config Pages module and makes it easily accessible with a Vuex store and Nuxt plugin.

$druxtConfigPages.get('foo.bar')

Features

  • Nuxt plugin:
    • $druxtConfigPages.get('foo').bar
    • $druxtConfigPages.get('foo.bar')
  • Vuex store and getter:
    • $store.getters['druxtConfigPages/foo'].bar

Links

Install and setup

Drupal

  1. Install and enable the Drupal Config Pages module on your Druxt backend.

  2. Create at least one Config Page type and entity: /admin/structure/config_pages/types

  3. Add the "View the [foo] config page entity" permission to the required Druxt role(s).

Nuxt.js

  1. Install the Nuxt modules:

    $ npm install druxt @druxt-contrib/config-pages

  2. Add module to nuxt.config.js

    module.exports = {
      buildModules: ['@druxt-contrib/config-pages'],
      druxt: {
        baseUrl: 'https://demo-api.druxtjs.org',
        configPages: {
          pages: ['foo']
        }
      }
    }
    

    Note: Replace foo with the machine name of your Config Page type.

Options

Option Type Required Default Description
druxt.configPages.pages array Yes [] An array of Config Page types.

Related Packages

druxt

The Fully Decoupled Drupal Framework for Nuxt.js.

43,233 115
druxt-schema

Drupal Content Entity schema generator for Druxt with support for View and Form...

15,960 115
druxt-router

Drupal router for Nuxt, powered by the Drupal Decoupled Router module.

27,486 115
druxt-views

Drupal Views components for Druxt with support for filters, pagination and sorti...

16,350 115
druxt-site

Out of the box Decoupled Drupal sites with Druxt.

10,684 115

Version History

Version Released License
0.1.3
0.1.2
0.1.1
0.1.0