Automating orientation switch

Hello,
I have implemented a responsive design for my website,  using breakpoints, responsive images (<picture>,...), media queries, etc.
However, when I now change the orientation of my smart phone from portrait to landscape (and vice-versa), I have to refresh the page manually. Only then is the display adapted to the new orientation. What is the best way in Drupal 8.7.6 to achieve an automatic reload/refresh of the page on switching the orientation? Using a media query such as @media ... and (orientation: landscape) is obviously not enough.
Thanks for any help

How to find the local drupal database

Hello, 

I am developing a D8 site locally using acquia dev 2. Something is wrong with the software. I cant open the site. I was able to find the files. But I am not able to find the database. I looked here C:\Program Files (x86)\DevDesktop\phpmyadmin. How can I find the database?

Thanks!

load custom twig depending on a field value

Hello,

I have a news website and I want to print the node's page each time in a different way depending on a field value.

The problem

I have a content type named "Article" in the article there are a number of fields that are going to be visible/invisible depending on a field called "Theme" (Conditional fields) also the "Theme" field is responsible to determine the twig that is going to be used.

Let user select site theme in Drupal 8?

For a few weeks, I have been developing a site based on Drupal 8 and so far, everything's working fine. Only recently I found a functionality that I had expected to be there, but that now seems to be missing...

Select option for languages in custom forms

Hi,

I am trying to add a field where the languages could be selected from list of available languages in Drupal 8. The code to handle the language dropdown looks like:

$form['text_info']['fieldset']['source_formats']['selected_langcode'] = [
'#type' => 'language_select',
'#title' => $this->t('Language'),

'#languages' => \Drupal::service('language_manager')->getLanguages(),
];

But the form field is showing as (I have a screenshot):

How to fix a PHP error?

Good afternoon, May I know how to fix the following error message? It is showing up on the top of the site.

error_reporting(E_ALL); ini_set('display_errors', TRUE); ini_set('display_startup_errors', TRUE);

The site address is as follows.

https://zetra.japanesemachines.com/

Thanks and regards

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x