This forum is for assistance with theme development.

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:

Olivero, working with styles

Pretty new to Drupal ecosistem. Fell in love with Olivero theme and I want to make some visual changes like changing the accent color. If someone could help, how it can be done? I am accustomed with plain css, compiling less/sass, and with custom css files. Here I see none of them to figure out. Also I see teasers of Olivero with multiple color palettes. This could be a future implemented feature or do I have to install a module for it?

Thank you in advance.

Pages

Subscribe with RSS Subscribe to RSS - Theme development