Categories
CMS Drupal Mastering Development

How State is specific to the specific environment, when its actually pushed to all environments with DB sync?

I am working with a Drupal 8 setup when production, test and development environments periodically sync database. In Drupal 7 it was easy to override the $conf variables in settings.php to force a site in maintenance mode. However, in Drupal 8, however, the maintenance_mode is not a configuration anymore, but a state that is not […]

Categories
CMS Drupal Mastering Development

How State is specific to the specific environment, when its actually pushed to all environments with DB sync?

I am working with a Drupal 8 setup when production, test and development environments periodically sync database. In Drupal 7 it was easy to override the $conf variables in settings.php to force a site in maintenance mode. However, in Drupal 8, however, the maintenance_mode is not a configuration anymore, but a state that is not […]

Categories
CMS Drupal Mastering Development

data-vocabulary.org schema deprecated

In Drupal 8, Search Console has identified that your site is affected by 1 Breadcrumbs issues: data-vocabulary.org schema deprecated Solution is: update code of data-vocabulary.org to schema.org. But data-vocabulary.org is not find in drupal. how to fix it.

Categories
CMS Drupal Mastering Development

data-vocabulary.org schema deprecated

In Drupal 8, Search Console has identified that your site is affected by 1 Breadcrumbs issues: data-vocabulary.org schema deprecated Solution is: update code of data-vocabulary.org to schema.org. But data-vocabulary.org is not find in drupal. how to fix it.

Categories
CMS Drupal Mastering Development

Best way to set up attributes/variations

This is probably an embarrassingly basic question, but I haven’t been able to find a definitive answer after a fair bit of searching. If you’re setting up a store with Drupal Commerce (2.x, in Drupal 8), and each of your products come in a variety of colours, but the range of colours is different for […]

Categories
CMS Drupal Mastering Development

Best way to set up attributes/variations in Drupal Commerce 8.x-2.x

This is probably an embarrassingly basic question, but I haven’t been able to find a definitive answer after a fair bit of searching. If you’re setting up a store with Drupal Commerce (2.x, in Drupal 8), and each of your products come in a variety of colours, but the range of colours is different for […]

Categories
CMS Drupal Mastering Development

Is there a way to redirect /index.php/SOME_PAGE to /SOME_PAGE?

In Drupal 8, we found some search engines have indexed pages as index.php/SOME_PAGE. We now blocked index.php/* in robots.txt but would like to redirect the index.php pages to remove the index.php part. For example, https://www.DOMAIN.COM/index.php/SOME_PAGE would become https://www.DOMAIN.COM/SOME_PAGE

Categories
CMS Drupal Mastering Development

Clear render cache with Rules [closed]

In Drupal 8, i want, every time I publish a node, to clear render cache. I have a Cover image in the homepage from a custom module, that doesn’t follow the caching defaults as the rest of the site. I am trying to do it with Rules, but I didn’t find the action to do […]

Categories
CMS Drupal Mastering Development

Render cache with Rules

In Drupal 8, i want, every time I publish a node, to render the cache. I am trying to do it with Rules, but I didn’t find the action to do it.

Categories
CMS Drupal Mastering Development

How save and get cookies after wrbform form submit

In Drupal 8, Create a form using webform. Display form by using block on every page. I want to save cookies after webform form submit. By using hook_form_alter(), and user_cookie_save([‘xyz’ => ‘abc’]). But cookies not save. and showing warning in log file Warning: Cannot modify header information – headers already sent by (output started at […]