D8 custom module block difficulties

I'm doing my first custom module in D8 and it creates a block. I've got the basics working but am having these two difficulties:

1. The output html is having the style filtered out. The block loops through nodes and adds relative positioning for an icon for each node based on fields in the node, so cannot be put into a CSS file. So the something like style="position: relative; left: 550px; top: 300px;" is just not showing up at all on the rendered block.

2. I need to load a jquery plugin. the file mymodule.libraries.yml has this in it, but the file is not getting loaded.

D8 custom module block difficulties

I'm doing my first custom module in D8 and it creates a block. I've got the basics working but am having these two difficulties:

1. The output html is having the style filtered out. The block loops through nodes and adds relative positioning for an icon for each node based on fields in the node, so cannot be put into a CSS file. So the something like style="position: relative; left: 550px; top: 300px;" is just not showing up at all on the rendered block.

2. I need to load a jquery plugin. the file mymodule.libraries.yml has this in it:

Create content type visible to specific user role only?

Hello!

Looks like there is no read access restrictions to a content type in Drupal user role settings. What is the best way to create content type visible to specific user role only?

Thank you!

Filter of my Drupal 8 filter module does not appear for text format configuration

I am attempting to develop the htmLawed module for Drupal 8 (D8). This is a filter module and allows the use of the htmLawed HTML filter with a text format.

I used Drupal Module Upgrader on the Drupal 7 module to generate the D8 module files. I am able to get the module to appear in D8's admin pages for installing or uninstalling. I also can view the module's help page.

Database support Disabled

Hostmonster shared hosting. I have successfully installed Drupal 7 sites under this account before. I am excited to begin with Drupal 8 but cannot continue.

PHP Version 5.6.15
MySQL Version 5.5.42-37.1-log

This is an issue related to the following during installation:

Database support Disabled
Your web server does not appear to support any common PDO database extensions. Check with your hosting provider to see if they support PDO (PHP Data Objects) and offer any databases that Drupal supports.

Drupal 8 install and data collection

Hi,

Is any data collected and sent back to Drupal during (or after) a new installation of Drupal 8 (and/or upgrade)?

Is this done automatically, without getting explicit consent (an opt-in process)?

Is there a way to opt-out of any data collection before it happens?

Many thanks,

Chris.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x