History Factory's COVID-19 Corporate Memory Project

Homepage for History Factory's COVID-19 Corporate Memory Project

Using Drupal to Capture History in Real-Time

The teams at History Factory and Mediacurrent created a solution to capture real-time history of the COVID-19 pandemic for future crisis responses. 

Sectors: 
Non-profit

Using hook_entity_view_alter(), want to change the filed's title(label) with certain display_id

I've been trying to display netId through the display on the view.

So, I used hook_entity_view_alter to alter the title of the field and the field_content to be the netId.

But it doesn't seem to be working.
So, my question is 

1) Is $display->id() a machine_name of the display?

2) Is there any better way to go about?

function directories_entity_view_alter(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display) {

  if ($display->id() != 'team_directory') {

    return;

localhost/drupal = Page Not Found! (Using xxamp and postgresql)

I'm a communication trainee, I have only worked with webdesign, I'm not from IT, so this is really really new to me, so I'd be very thankful if you guys could give me a step-by-step explanation, since I haven't been able to understand other guides.

The IT team told me to install Drupal 8 with xampp and postgresql, and I have managed to do it (I tried to reinstall it, thinking something had gone wrong in the process and it said I already had Drupal running). The problem is: when I type localhost/drupal I get Page Not Found.

Plugin (block_field) instance class "Drupal\block_field\Plugin\Field\FieldType\BlockFieldItem" does not exist.

Hello,

I successfully migrated D8 site but I get this error when I visit the site. I googled but could not find any details. I am not sure where to start to debug. Please advise!

Problem with product translation in Drupal Commerce shopping card

Hello community, 

I just installed a clean Drupal 8.9.3 and Drupal Commerce 8.x-2.20 and I set 2 languages (French & German). 
I created a new product translated for both languages (title & body).
When I went to the product page (fr/product/1 or de/product/1) translations are OK but when I added the product to the cart and I checked the list of product (de/cart) product name and product URL are always in french (the default language)

Do you know if I have a possibility to change that ? Or it's a known problem ? 

Thanks a lot for your support

How to create an invitation system by email ?

Hi, I want to make a very simple custom module for users to send email invitations with templates.

Here is a module that I started :

https://git.drupalcode.org/sandbox/zenimagine-3170712/-/tree/main

Currently this module creates a blank page /user/ID/invitation

How to create an "Email address" field and a template selector ?

The "Email address" field must not keep the addresses in the database.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x