This forum is for assistance with theme development.

Unable to update.php

Hi

I have successfully updated to Drupal core 8.9.11

However when I try to run update.php I get the pink message:

+++++++++++++++++++++

MISSING OR INVALID MODULE
The following module is marked as installed in the core.extension configuration, but it is missing:
evergreen
Review the suggestions for resolving this incompatibility to repair your installation, and then re-run update.php.+++++++++++++++++++++++

How to Cache external stylesheet (D7)

I am trying to add the same Stylesheet for all my Subdomains / Sub-sites....

All my Sub-sites (should) have the same CSS, and I am tired to run & update each of my 14 Sub-domains whenever I want to make a small change; and if I forget to run around them all, a big Chaos ensues, and I don't remember what I have updated and what not....

In Drupal 7 - I can do it only putting my stylesheet in a root folder and adding my Stylesheet as External Stylesheet, with Absolute URL - into Template.php file, as far as I understand?!

Is it possible to get roles / users assigned to content type?

Hi,

is it possible to get list of roles / users which are assigned or have access to nodes of particular content type?

Example:

I have content type Teams that can be managed by users which has these roles Editor, Moderator, Finalizer.

On hook_node_update() I want to get all users which can have access to the particular Team node.

Thanks

Kaleem

How to get Moderation State label?

Hi,

I am trying to get Moderation State label on hook_node_update() hook. I am able to get moderation state machine name using following code.

$node->get('moderation_state')->getString(); // this return "saved"

Machine name is saved and label is Submit for Review.

Is it possible to get label here?

Thanks

Kaleem

Drupal 9 vs Drupal 8 .info file

I need to know if there are any differences in the meta data in the .info files of Drupal 8 and Drupal 9. Furthermore are there any differences in the themeing process as a whole from Drupal 8 and Drupal 9?

thanks

mark

Error when trying to enable Twig debug

I'm getting this error when I add and execute the code below in the development.services.yml file to enable twig debugging.

parameters:
twig.config:
debug : true
auto_reload: true
cache: false

 

The error is:

Pages

Subscribe with RSS Subscribe to RSS - Theme development