Categories
CMS Development Drupal

Tags in Vimeo searchable from the site

When hosting my video on Vimeo is there a way to make the Vimeo tags searchable from the site. I don’t actually have a build of the site to look for myself. Im just trying to get ahead of a possible problem.

Categories
CMS Development Drupal

Related nodes view block based only on child Taxonomy Terms

I have a 2-levels Taxonomy Hierarchy structured like this: Parent Term – Child Term 1 – Child Term 2 – … My goal is to create a view block, where related nodes based only on child taxonomy terms are displayed. How can I do that? Thanks

Categories
CMS Development Drupal

Override a function in a contrib module

My company received a maintenance contract for a website developed in Drupal 7. The Drupal 7 website uses the Quiz contrib module, ver. 7.x-4.0-rc10. The module is used to implement a feature where authenticated users answer questions to tests. When an authenticated user completes the test and views his result, the following notice errors are […]

Categories
CMS Development Drupal

Using nature sql query at migration

I want to use a nature SQL query for my source migration class, but I can’t find a way. I’ve tried to use the $this->database->query() but in that case, it will fail because there’s no countQuery() method defined. And for some reason, I not really want to convert every time the queries between the two […]

Categories
CMS Development Drupal

Installed module not working

I have a website hosted in Pantheon and I am trying to install the Security Kit module to the live website. I tried installing it on DEV (dev.website.com) environment, and then moved the code to both the TEST (test.website.com) and LIVE (website.com) environments. The module was configured successfully in DEV and TEST and it returned […]

Categories
CMS Development Drupal

Drupal commerce: Inline entity form field alter

I am using Drupal Commerce. For the Variations, I am using multiple add /remove via AJAX. I need to make field readonly. 0 -> <input type=”number” name=”variations[form][inline_entity_form][entities][0][form][field_stock][0][value]” value=”0″ step=”1″ placeholder=”” class=”form-number” /> 1 -> <input type=”number” name=”variations[form][inline_entity_form][entities][1][form][field_stock][0][value]” value=”0″ step=”1″ placeholder=”” class=”form-number” /> I have given example with 2 variations. How can I achieve it via […]

Categories
CMS Development Drupal

The provided host name is not valid for this server

I’m trying to migrate a drupal website from a server into my localhost but I trigger the error The provided host name is not valid for this server. I’ve seen I need to add the trusted host pattern, but looks like this is not working I still get the error My server is run on […]

Categories
CMS Development Drupal

Composer requirement

I have been installing/managing Drupal 8 sites without the use of Composer or Drush. Main reasons being that I’m not planning to have complex modules with dependencies and I’m comfortable to perform these actions manually or through admin theme. Going forward,I have the below questions. Is Composer and Drush going to become mandatory in future […]

Categories
CMS Development Drupal

drupal 8 execution order

I am looking for Drupal 8 execution order. So from settings.php to html rendering. The order in which scripts are called and executed. Is there an official page that shares this information?

Categories
CMS Development Drupal PHP

Increasing PHP upload file size in “.htaccess” and “php.ini” not having any effect

I have tried increasing the limits in php.ini and also in .htaccess as following. php_value upload_max_filesize 30M php_value post_max_size 30M However, “http://drupal-8.dd:8083/admin/reports/status/php” show no changes. post_max_size remains 8M and upload_max_filesize remains 2M Consequently cannot upload a Drupal Theme to my locally hosted Drupal8 learning site. The Theme is about 5M.