Time field

In a Content Type I need 2 fields now.
In a 3 field I must have the difference between the time of arrival and that of departure.
In order not to install a new module, I would prefer to use the DateTime field but as far as I could see the date field I cannot hide it.
Any suggestions?

Can't update from 8.8.4

Hi, I am trying to update from core 8.8.4 but whatever I try, I am stuck.

Here is my composer.json

default_value for entity reference in form_alter

Drupal 8.8

In a C.T. I have various entity reference fields and set them with a value taken from another C.T.
The problem is that I can only set it in this way 

$a = Dato();

$form['field_a1']['widget'][0]['target_id']['#value']   = $a;

and it works

Instead I would need to set it in this.

$form['field_a1']['widget'][0]['target_id']['#default_value']   = $a;

but it does not work

User clicked on Add to cart button it should open in Commerce Cart Flyout

Hi,

I want when user clicked on Add to cart button it should open in Commerce Cart Flyout (sidebar cart layout) but as of now it not going to Commerce Cart Flyout.

I also add into block header region when i enable Commerce Cart Flyout then in header region commerce cart (default )featured disappear.

Update alias after edit a node PATHAUTO

I have some content type with a pathauto alias, that is to say, they were created due to a pattern of pathauto.

 I have 2 entities called "Trophy" and "Football", 'Football' has a entity reference field to 'Trophy' and the pattern that it was used to create 'Football' uses the title of 'Thophy'. The problems appears when I update the name of Trophy and the  path alias of Football is outdated, dont update it!

Someone know something about this or how to do this?

Thanks!!

DirectoryNotReadyException for a temporary file after a fresh 8.9.3 installation

Hello everyone,

i've just installed a new 8.9.3 drupal site, like this : 

composer create-project drupal/recommended-project

composer install with custom composer.json and scripts directory

Create database 

put custom exported config in config/sync directory

run drush si --existing-config minimal

put $settings['file_temp_path'] = '../tmp'; in settings.php

create directory tmp : 

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x