I have added a js library and associated code to get all Location nodes onto a Map page
This code works fine if I paste it into the map.js file but if I use the drupalSettings variable, the code is appearing in the map.js file but doesn't appear to be executing
The map.js file
(function ($, Drupal, drupalSettings) {
'use strict';
Drupal.behaviors.mybehavior = {
attach: function (context, settings) {
Can someone recommend a way to install a local copy of Drupal 8 without using Vagrant? It doesn't seem to be compatible with my set up.
Should I use VMWare Player? And if so, should I get VMWare Workspace, Workspace ONE, Horizon, Mirage, Fusion? Also, should I then get the Bitnami Drupal Stack, or the Drubuntu VMWare Image?
I've just got a Windows 10 laptop and I just want to install Drupal locally to test an update to an existing website without damaging the live site.
I created a custom module that has a plugin text filter. The sole purpose of the text filter is to remove new line characters and replace them with a single space. I'd like to apply the filter to a long, plain text field. The module was successfully installed (and I flushed all caches) and the filter enabled for the "Plain text" filter. I find that the filter does not remove new line characters. I get no error messages anywhere. I figure something is wrong with my code (I am a total php noob). Here is my FilterWC_Validator.php file
For an intranet project I need to know if it's possible to have multiple books. I also need to archive books and restrict the access for some users. Is this possible?
Soz if this has been answered before I did look but got lost in a sea of info (I'm old - doh!). I have a D7 site on shared hosting. I built a new D8 site in its own Drupal8 sub directory in the D7 main directory. D8 looks to be working fine and pages all connect to each other in the D8 directory structure as expected . The old D7 site also works fine with no cross linking to the D8 directory. I now feel brave to switch off the D7 website. Whats the best way to do this?