πŸ‡©πŸ‡ͺGermany @johnnny83

Account created on 6 November 2016, over 7 years ago
#

Recent comments

πŸ‡©πŸ‡ͺGermany johnnny83

You can also use the Asset Injector module to add css to your admin theme: https://www.drupal.org/project/asset_injector β†’

Or with this short custom module: https://gorannikolovski.com/snippet/add-css-and-js-admin-pages

πŸ‡©πŸ‡ͺGermany johnnny83

Uh, this is six years ago and I absolutely don't remember why I needed this πŸ˜…, but I suppose I managed to solve it some other way. But thank you for asking!

Anyway, a hidden field can be embedded in other fields or used for grouping etc. so it is still available for other actions, so I think then it should also be accessible in twig.

πŸ‡©πŸ‡ͺGermany johnnny83

I had the same problem with exactly the same libraries when running composer install (strangely only on of two Drupal installation which I thought were duplicates). Deleting composer.libraries.json and copying it back after composer install solved the problem for me.

πŸ‡©πŸ‡ͺGermany johnnny83

Ah, you're right, sorry πŸ™ˆ

πŸ‡©πŸ‡ͺGermany johnnny83

I know with CSL, but I couldn't find any possibility in the markup to solve the problem.

πŸ‡©πŸ‡ͺGermany johnnny83

Nobody else has this issue?

πŸ‡©πŸ‡ͺGermany johnnny83

So, the solution is to prevent to pass NULL to the implode function analog to the Bibliography Module of D7 ( https://www.drupal.org/project/biblio/issues/3294931 πŸ› PHP 8.1: Deprecated functions Needs work ). Here is the relevant part of the patch:

-    $delim = $this->delimiter;
     foreach ($this->elements as $element) {
       $text_parts[] = $element->render($data, $mode);
     }
     // Insert the delimiter if supplied.
-    $text = implode($delim, $text_parts);
+    $delimiter = isset($this->delimiter) ? $this->delimiter : "" ;
+    $text = implode($delimiter, $text_parts);
πŸ‡©πŸ‡ͺGermany johnnny83

@adaucyj
Probably it doesn't show any errors, because there are no items on your page?

πŸ‡©πŸ‡ͺGermany johnnny83

I finally found the solution:
- The date field of the content type must NOT contain the time
- In the CSV file the date must be formatted as YYYY-MM-DD

But probably the initial mistake I made was not reading the documentation properly. Apparently the proposed way is to use the timestamp and not the date field.

πŸ‡©πŸ‡ͺGermany johnnny83

I tried to update to 2.5, but the module is constrained to core 8 now:

- Root composer.json requires drupal/content_notification ^2.4 -> satisfiable by drupal/content_notification[2.5.0].
- drupal/content_notification 2.5.0 requires drupal/core ~8 -> found drupal/core[8.0.0-beta6, ..., 8.9.x-dev] but these were not loaded, likely because it conflicts with another require.
πŸ‡©πŸ‡ͺGermany johnnny83

What is also weird (but a little bit off-topic): I have a content type "team member" and in each publication type (book, journal etc.) an entity reference field to team member, so you can connect every publication to a team member. Now I want to list on every page of a team member only some (not all) publications that are connected to them. That's why I created an entity reference field connected to a entity reference view that is listing the publications of the team member. So when I edit a team member page I can select which publications shall be shown. The problem is that the sorting by publication year is not always working. Many publications are in the right time order (and within a year also the sorting by last name is working), but some are not, so it looks like: 2022, 2014, 2021, 2021, 2021, 2020, 2020, 2018, 2017, 2017, 2016, 2014, 2021, 2018, 2018, 2011

πŸ‡©πŸ‡ͺGermany johnnny83

Similar for me, after a server upgrade the core/modules/views/src/Plugin/views/cache was missing, so I just rebuilt core

Production build 0.69.0 2024