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?

Link field in database table with BLOB. How to insert

Hello,

I have created a link field and in the database we have tables for it as node__field_link and node_revision__field_link  . I am able to added contents programmatically but there is a field field_link_options with the type BLOB which is supposed to be binary, but opening it in text editor we I see only a:0:{}. 

my questions: 

1-How can I add that a:0:{} into this field? will simple insert of a:0:{} as string work?

Authenticated users in Drupal

Environment : Drupal 8.8.6 on Cloud

Scenario:

I have configured OIDC for SSO using company provided facilities to do so. (clientid, redirect uri, authorization endpoint-we get this from our corporate tool and configure this in custom jquery/js file)

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x