Download the PHP package jessicadigital/drupalbase without Composer
On this page you can find all versions of the php package jessicadigital/drupalbase. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jessicadigital/drupalbase
More information about jessicadigital/drupalbase
Files in jessicadigital/drupalbase
Package drupalbase
Short Description Drupal 8 base module providing assorted functionality.
License GPL-2.0+
Homepage https://github.com/jessicadigital/drupalbase
Informations about the package drupalbase
Drupal 8 Base Module
This module contains assorted functionality for Drupal 8. These snippets have been collected from various sources and projects, and are useful as a base for common implementations.
No guarantees can be made of the quality / reliability of any code.
Installation
Add the module via composer:
Then, visit the Modules page in your Drupal admin panel, and enable the drupalbase module.
Features
1. OlderNewerBlock
This custom block adds a pair of "Older" / "Newer" buttons to the bottom of every node. Content types can be restricted within the admin panel.
To use a custom template, you can create a file at using the and variables to access page URLs, e.g.
Note that the block will need to be assigned to a region - normally the bottom of the Content region.
2. Query debugging
Drupal 8 does not come with a built in method for debugging EntityFieldQueries. By adding the tag to your query, the raw SQL will be dumped into the file.
3. Sitemap
Automatically generates a sitemap of live Pages and Articles at the URL: .
4. Throw a 404 with specific routes
This adds functionality to throw a 404 on routes that begin with 'disable-direct-access' - in a basic sense this replicates the RabbitHole module functionality, which as yet has not been ported to D8. Use with Pathauto module, and set up appropriate patterns for the content you don't wish to be accessed directly.
5. Change Login and Logout URLs
By default, Drupal uses the and URLs for login and logout functionality. For security purposes, it's generally a good idea to change these to something different. The drupalbase plugin changes these paths to and .
6. Hide default node page
Drupal creates a WordPress-style feed page at the URL. Many websites do not hide this, allowing access to supposedly hidden content and an unstyled user experience. Drupalbase prevents access to the page.