


CSV migration always returns "id is defined as a source ID but has no value"
I have a freshly composer installed Drupal 8.6.13. I tried to migrate csv sources and allways got the error message [error] Migration failed with source plugin exception: id is defined as a source ID but has no value. I switched to an example that is running in... read more
Contextual links in block disabled when using Twig Tweak and UUID
In my taxonomy-term–NAME.html.twig I use a reference field to load a ‘block_content’. {% for item in term.field_blocks %} {% set uuid = item.entity.uuid.value %} {{ drupal_block(‘block_content:’ ~ uuid) }} {% endfor %} The block is... read more
How to override theme for quicktabs which actually renders a view
In D8, I want to display a view through quicktabs. For this, at first I have created a view file and call the view through QT. The view is displays well through QT. Now, I want to change the look & feel of the view. Please look into the screen of view which... read more
How to render language select block in page template?
Background information: I used the following script to list all the twig blocks: drush ev “print_r(array_keys(Drupal::service(‘plugin.manager.block’)->getDefinitions()))” and when I tried the following twig : {{... read more
How to remove the click event on an Ajaxified form’s submit buttons?
I’ve created several forms with Drupal 8 directly in admin or with Form API. I’ve added some client side validation with this jQuery plugin : jQuery Validation Plugin. Everything works very well. Now my client asked me to open one of these form in a popin.... read more
Contextual filter Term OR Empty
I have a view using taxonomy CONTEXTUAL FILTERS. taxonomy vocab 1 terms AND taxonomy vocab 2 terms Both are set to get the taxonomy id from the url, limited to a specific taxonomy vocabulary and share any of the terms. But on taxonomy vocab 2, I would like to have an... read more
I cannot translate the action label
I’m using Umami profile and choose Spanish is default language. Almost of the interface has been translated into Spanish. But some places did not translate like user page. I’m going to admin/config/regional/translate to check. But This text already... read more
Three Rivers Park District Seeks Vendor For Web Maintenance Contract
Hello! Three Rivers Park District is looking for a vendor to partner with on a maintenance contract for its website: ThreeRiversParks.org. In the request for proposal, you will find information about the Park District, the website, future projects of interest,... read more
View that shows all children content of parent
Been searching and cannot find this anywhere for Drupal 8. Very basic view request, can’t figure out why it’s not straightforward. I want a View that shows Parent content and under it all Children content. Nothing to do with taxonomy, just want this to... read more
Submit your site for the Global Splashawards before march 20th!
Hi all, next week March 20th is the deadline for sending in your best work for the Global Splashawards! Anyone can join so make sure you sent in your project! Get nominated in one or more categories and earn global fame! Don’t wait, just do it, you’ll love... read more
Get raw and relative path of a file uri
I have a file with an uri and I want to get its raw and relative path. Uri: public://videos/Test Video.mp4 Path: /sites/default/files/videos/Test Video.mp4 I found already a way to do this: $file_uri = $file->getFileUri(); // public://videos/Test Video.mp4... read more
Get fields of referenced entity in view
I have two content types, Project and Resource, I have a view displaying fields from Projects, and I would like to display fields from resources referenced by projects in that view. If I Twig debug, I can see the resource fields are available in the view, but I cannot... read more
How can I add a product SKU field to the search filter for the orders view?
In the administrator interface, there is an Orders view which shows all orders. Within this view, I would like to add a Product SKU field to the search filter. On the edit form for the Orders view, I clicked on the Add button shown for Advanced » Relationship, but I... read more
Migrate: Create term(s) if they do not yet exist
Question similar to this question here, but this time, I am not doing a separate migration later. I want to create taxonomy terms if they do not exist while processing a record. Does entity_lookup do this in the same way migration_lookup does for stubbing? In this... read more
How to fix drush issue "Could not bootstrap at phase 5"?
I installed drush via Composer. I am using drush 9.5.2 with Drupal 8.6.4. I mention that everything is fine on local. However, in a docker instance in GitLab CI, when I execute vendor/bin/drush updatedb -y -vvv, I get: [preflight] Config paths:... read more
How to migrate content of one content type to another content type
I have two content types. Content type A and Content type B I have some nodes of content type A and want to migrate them to content type B but the content of type A should remains in the system. I have tried the node_convert module but it simply changes the node type... read more
How can I see all the places an asset or entity is referenced?
In Drupal 8, I have a requirement from a client that they be able to find a reference of a given asset (file, node, entity, etc) throughout a Drupal site. The ultimate goal is to know that if they want to delete this asset, it’s not going to create 404 errors... read more
Avoid random number cached in preprocess hook
I have a random set of images that appear on the homepage which needs to show each time the page is refreshed. My holding page was doing this comfortably in PHP, but since building the whole site and migrating the PHP into Twig I ran into issues with the cache. I... read more