Cant install Drupal with composer anymore because of git.drupal.org

I tried to install Drupal 8 like I always do but ran into something new. An error occurs and the entire Drupal project files and folders fail to install because composer hits a snag at git.drupal.org. I came across this update but I'm not sure how to implement this new authentication, especially using something like WAMP locally or installing Drupal on a Windows machine via composer.

Using a variable inside a field name in Twig

I have 16 fields that are numbered (e.g. node.field_1.value, node.field_2.value, etc.). Rather than call each of these separately, I'd like to use a loop in my Twig template. So, I've got:

{% for i in 1..16 %}
{{ attribute(_context,"node.field_"~i~".value") }}
{% endfor }}

Using the attribute function from Twig.

But this doesn't work. It seems like it should, but I'm not doing something correct.

How to rewrite the field of a Drupal 8 view with TWIG ?

In drupal I created a view with the machine name cgv_product.

This view contains the fields "Product Name" and "Custom Text".

In the "Custom Text" field, the {{ name }} token is available to display the product number.

I created a template with the name `views-view-fields--cgv_produit.html.twig` it works but if I put the token {{ name }} in the code, the token is not rendered.

How to display the product name token in my template ?

Moving Drupal 8.5.8 site to new server

I want to upgrade D 8.5.8 site to Drupal 8.6.14

Before doing it on live site I try to do it on a test site.

I created a test domain using PLESK, but this domain is accessible only from my local computer using the "host" script.

I did:

Configuration | Maintenance Mode | on

Configuration | Performance | no caches, Bandwidth optimization (off,off), Save Config, Clear all caches

Using Backup and Migrate module: backup the whole database

Using PhpMyAdmin: Import MySql file to the new database

Updating Drupal core when using Acquia Dev Desktop

In this post I am not asking for help. Instead, I want to post it here in case anyone out there is managing their site via Acquia Dev Desktop.

After (quite) some pain, searching, trial and error, I have managed to update Drupal core (8.6.13). My site was built and is managed via Acquia Dev Desktop. I had tried various update methods, manual, composer, etc, each time getting errors. Finally I found a few posts and pieced it together how I was able to update D core. Leave it here in case anyone will bang their head into the wall as well.

Override a specific image field instance inside of a view

I have a view with multiple instances of 'field_image'. I need to override *one* of those instances with a twig template.

Using the template name "views-view-field--[my-view-name]--field_image_1.html.twig" I can override the output, but the image isn't there. Using image.html.twig as a starting point (basically just <img{{ attributes }} /> ) I get an empty <img> with no attributes. Is there a way to have the image uri, etc print inside this template? Thanks!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x