Javascript loaded via DrupalSettings variable not executing?

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) {

Local Drupal Installation without Vagrant

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.

Custom plugin to filter new lines from plain text

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

Multiple books

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?

D7 to D8 how switch off D7

Hi folks,

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?

Tnx in anticipation.

Bren  

Migrate users only

I need to migrate users from Drupal 7 to Drupal 8

I use Migrate module
It import all content from 7 to 8
I need only users (without the rest content)

I have tried some modules to import users from csv file but it does not import users passwords

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x