Drupal Configurations Updates move to other sites

I am having multiple sites (around 50+) with paragraphs module. Now i have one issue that all sites are different so we can use drupal configuration sync process directly. Some how i make / export all options which i need by using drupal console command (https://drupalconsole.com/docs/vn/commands/config-export-entity) now i have drupal configuration with all dependencies.

Sum in views

In a views, I have only one content type, with a field_import. In _views_pre_render I have entered this code to calculate the sum
              foreach ($ view-> result as & $ row) {
                $ Total + = $ row -> _ entity-> get ('field_import') -> value;
              }

CiviCRM

Hi there
Can anyone recommend the best place to find a CiviCRM developer? I have CiviCRM installed and need some tweaks but not sure where CiviCRM developers hang out.
Thanks
Paula

Problem adding background image via css

I am trying to add a background image in my body tag. I am using Drupal 8 and have created a custom theme. My css code in the styles.css file is:

body {
     background-image: url(images/bg_body.png) no-repeat;
     }

file structure:

barron-

           css-

                 styles.css

           images-

                      bg_body.png

           js-

           templates-

           barron.html.twig

           barron.libraries.yml

           

Help updating D8.9 to D9

I'm old school used to updating drupal via tar ball, dragging over the new via FTP.  I can't get a grip on composer or drush so I would like to hire someone able to update the most recent Drupal 8 to D9.

I don't suspect I will need extended help other than the basics. Server is up to date, have tested drupal 9 already and everything works perfect.  I use Bartik as the theme, no customization with CSS etc.

Chris

Twig creating <br> on its own [fixed/solution]

I have a tempalte file that i render like this

$image_ = [
  '#theme' => 'amazon_detail',
  '#item' => $item,
  '#detail' => $action,
  '#attached' => [
    'library' => [
      'amazon_pa/amazon_pa',
    ],
  ]

];

The problem is that twig is converting my formatting into <br> code

If i press enter to format code taht happens. If i remove all of these linebreaks it works

This twig templatecode

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x