How to make a chart in Views with date as x-axis (using the charts module)?

How to make a chart in Views with date as x-axis (using the charts module)?

I want to make a simple view using the Charts module. The x-axis will be a custom field of type Date that I want to show in Y-m-d format and grouped by the same date. The y-axis will be NID with COUNT aggregation. This seems so easy but the problem is the aggregation... read more
How to make a chart in Views with date as x-axis (using the charts module)?

When I create a backup of a site, which directories and files should I include?

When I create a backup of a Drupal 8 site, which of these directories and files should I include? core modules profiles themes sites/default/ sites/default/files/config_* sites/default/files/css sites/default/files/js sites/default/files/php sites/default/files/styles... read more
How to make a chart in Views with date as x-axis (using the charts module)?

Is there a module for migrating data from a SQL file?

I have an SQL file containing the data for a Drupal 7 site. I want to migrate data from this SQL file to a fresh, minimally-installed Drupal 8 site that already has all the needed modules. Is there a module that could load the data from that SQL file and create the... read more
How to make a chart in Views with date as x-axis (using the charts module)?

Conditional display of paragraphs items

We use Paragraphs quite extensively in our site. We have about 10 bundles available. What we’ like to do is alter how the paragraphs are displayed on various pages; Ie, we’d like to remove bundle a and display only bundle b. Then, in an alternate view, we... read more
How to make a chart in Views with date as x-axis (using the charts module)?

fastest between hook_js vs hook_menu to get JSON via REST

I’m trying to figure out if in my case it makes sense to use the High-performance JavaScript callback handler module. Between js/MODULE/example.json (hook_js()) and example.json (hook_menu()), the difference of time is not huge, but I think hook_js() is faster.... read more
How to make a chart in Views with date as x-axis (using the charts module)?

Theme settings to include different PHP files into template

I’m trying to include a template section into another template under conditions based on the themes settings. page.tpl.php <header> <?php $theme_header_style = theme_get_setting(‘header_style’);//the value is 1 $header_path =... read more
Embed a TinyMCE text Editor in a Textarea in Drupal Form API

Embed a TinyMCE text Editor in a Textarea in Drupal Form API

I have a code below, that embeds TinyMce Editor in a text area. See image below: $form[‘myid_templates_editor’][‘text-modal’] = array( ‘#type’ => ‘text_format’, ‘#title’ => t(‘Description’),... read more
How to make a chart in Views with date as x-axis (using the charts module)?

Configuration Menu Items

How can I add a section to the admin/config route and populate it with my own modules? In Drupal 7 it was easy, but I can’t figure it out now in Drupal 8. The closest I can get is adding my modules to the Configuration Menu List that appears in the sidebar.... read more
How to configure a Slideshow with thumbnails in modal window

How to configure a Slideshow with thumbnails in modal window

I have tried to get the following scenario to work, with no success. I have 3 images. They are displayed in thumbnail form, in the bottom of a div. A main, preferred image, is displayed in a larger size above the thumbnails. I need that, when clicking on the... read more
How to make a chart in Views with date as x-axis (using the charts module)?

Htaccess 301 redirects after switching language detection method

We have a multilingual Drupal installation with a domain for each language. Like this: domainexample.com domainexample.no domainexample.de etc… We want to switch to a single domain and use domain prefix instead: domainexample.com/en domainexample.com/no... read more
How to make a chart in Views with date as x-axis (using the charts module)?

Error messages aren’t displayed when submitting the form

I want to display an error message when I submit a form. I added an AJAX callback to the form, and the error message appears after I refreshed the page. I first tried the following code, but it doesn’t work. $response = new DrupalCoreAjaxAjaxResponse(); $message... read more