


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
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
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
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
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
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
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
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
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