Drupal is up and running but how do I ...?

[solved]order of css files is different from what I expected

The order of css files loaded is different from what I expected.

mysubtheme.libreries.yml

global-styling:
  js:
    js/theme.js: {}
  dependencies:
    - core/jquery
  css:
    base:
      css/theme.css: {}
      css/custom.css: {}

and custom.css is rendered BEFORE base.css in most cases which I can see in Elements tool on browser's dev tool.

How can I manage order of css files, especially my customized css file? I want to have custom.css file always loaded last.

After Drupal 10 upgrade, CSS/JS aggregation causing 404 response on first page request

​I have a site working locally but not functioning on the server, which is running NGINX for serving files.

Problem:

After enabling CSS / JS aggregation, the first time you load any page, admin theme or front end theme, the CSS/JS aggregated files throw a 404, I have checked the files directory and they were generated, and they have the correct filenames so should have been served to the user.

og:image not working

I've installed meta tag module, and activated meta tag, open graph tag and twitter card.

Then, I tried this:

https://www.drupal.org/docs/contributed-modules/metatag/frequently-asked...

Sample of above article is for article content type but I don't have article pages in my site, in my case the content type is customized one.

Entire Content type with fields from D9 to D10

I am running a 'staging' site version with D 10.1.7, while the production site is still at version D 9.5.11.
Between versions 9 I was using 'Content Type Clone' to clone an entire content type with all its fields, but the module has not been upgraded to version 10.

Is there any method to copy a content type with all its fields from D 9 and export it inside D 10?
I've done a bit of research, but I don't seem to have found anything similar.

Thanks for any suggestions
 

Suggestion on a task

Hi, I need to do a page where my users (each one with his own credentials) can flag some box and for each day of the month, and then create a report with the info provided. Example: 01/01/1970 box 1 and 4 checked, 02/01/1970 box 2 and 5 checked, and so on. Clicking on Submit will create a summary page with all the info provided. I tried with Webform but I can't understand how to create such report, I'm a beginner.

Any suggestion?

Displaying multiple levels of parent terms referenced in a node in Views

Hi, not sure if I am missing something, but in Views I can't get the "Taxonomy term: Term Parents" field to display more than 1 level deep, when there are clearly 2 parent items for a term referenced on a node.

Steps to reproduce

1. Create a vocabulary which is 3 levels deep...
    Vocabulary
    -  Term (level 1)
      -  Term (level 2)
         - Term (level 3)

2. Create a entity reference field in a content type that references this vocabulary's terms.

Pages

Subscribe with RSS Subscribe to RSS - Post installation