{{ foo }} variable in twig not outputting anything even-though {{ dd(foo) }} shows the value is set

I have a views tpl where I set a variable but nomatter what I do, I can't get the output as a string ... even-though the drupal dump is indicating the value is set before AND after the output.

{% set foo = 'bar' %}
{{ dd(foo) }}
{{ foo }}
{{ dd(foo) }}
this is driving me absolutely nuts ... been looking at this for over an hour

How to remove "First name" and "Last Name" from Simplenews subscription form

Hello,

I have just installed the Simplenews subscription module on Drupal 8. I have activated the module but it shows "First Name" and "Last Name" along with "Email" field. I want to remove the fields, but unable to find them. After spending most 8 hours, I could not find. it. google was not help at all.

Please help.

Override a template for a specific content type in Drupal 8

I added a new content type naming 'Custom Page'. I want to create a new template for all of the content with the content type 'Custom Page'.

I added the below code into my custom.theme file:

function yan_theme_suggestions_page_alter(array &$suggestions, array $variables) {
  if ($node = \Drupal::routeMatch()->getParameter('node')) {
    $suggestions[] = 'page__' . $node->bundle();
}

I understand that it needs to create a file xxx.html.twig in theme/custom/templates, right?

Australian Nuclear Science & Technology Organisation (ANSTO)

The Australian Nuclear Science and Technology Organisation, (ANSTO) is the home of Australia’s most significant infrastructure for nuclear research. Thousands of scientists from industry and academia benefit from gaining access to state-of-the-art instruments every year. The ANSTO website is a key driver of the organisation’s external relations. In order to increase this engagement, ANSTO needed an up-to-date site that followed web standards. To reach that goal, we got together to develop a new website on Drupal 8.

Sectors: 
Government
Healthcare
Technology

Charles Darwin University

Charles Darwin University screenshots

Our partnership with Charles Darwin University (CDU) began with the highly successful, large-scale redevelopment of their current Drupal 8 site. After launch it was clear that there was a lot more we could achieve together to keep them delivering tertiary education at an internationally-renowned standard.

Sectors: 
Education

500er error after update

After an update I get an 500er error:

[01-Sep-2021 15:42:20 Europe/Berlin] PHP Fatal error:  Uncaught Error: Class 'ComposerAutoloaderInitDrupal8' not found in /homepages/16/d123456789/htdocs/drupal8/vendor/autoload.php:7
Stack trace:
#0 /homepages/16/d123456789/htdocs/drupal8/autoload.php(16): require()
#1 /homepages/16/d123456789/htdocs/drupal8/update.php(14): require_once('/homepages/16/d...')
#2 {main}
  thrown in /homepages/16/d154844430/htdocs/drupal8/vendor/autoload.php on line 7

Does anybody know what the problem is?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x