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.
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:
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?
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.
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.