Thursday 28 February 2019

How to migrate content by admin in drupal 8?

It is easy way to import content in any content type in drupal 8 by admin. We just have to download module and install in our project that is `CSV Importer`. The link of `csv importer` module on drupal Org site is..

CSV Importer Download Link: https://www.drupal.org/project/csv_importer

Description: It supports Taxonomy, Users, Content migration service and this module is also available for Drupal 8.
We are going to attach demo CSV file format as screenshot in this article for better understanding.
Now going to add some screenshots for understanding module.
CSV Importer Module
Install Module process
Module Configuration
Choose entity for migrate
Now we can Choose here Entity type[Content type, Taxonomy, Users] and then content type dropdown will come automatically and in case of taxonomy then taxonomy's dropdown list will come.
Then Upload CSV file same as attached under file screenshot and upload content with easy way.

Demo CSV file Format:
Demo CSV file format

Note: If have any suggestions or issue regarding 'How to migrate content by admin in drupal 8?' then you can ask by comments.  

Thursday 7 February 2019

How to dynamically clear cache in drupal 8?

It's a easy way to clear or remove cache with using this simple code.

Code: \Drupal::service('page_cache_kill_switch')->trigger();

Description: Simple write this code on your function and when your code will hit or run on any page this page cache will automatically triggered and clear.


Note: If have any suggestions or issue regarding 'How to dynamically clear cache in drupal 8?' then you can ask by comments.  

How to resolve max execution time error in drupal ?

When you found error regarding 'max_execution_time' exceed, then you can follow steps for resolve this error: Steps:   You can put t...