Configure Real url in Drupal 8
Go to the folder /etc/apache2/sites-enabled Add an entry Restart the Apache sudo service apache2 restart
View ArticleConfigure netbeans drupal specific
Setting up Drupal-specific file extensions and Drupal core functions https://www.drupal.org/docs/develop/development-tools/configuring-netbeans
View ArticleMigration : making drupal database connection
target/key : The name specified is responsible for the database connection. In the settings.php it holds the connection information for the source database. source: # The "key" here refers to the...
View ArticleGet latitude longitude in drupal 8 based on city or zipcode
Geolocation provides latitude and longitude information. In order to search based on these values, when zipcode or city name is passed to this function, data is returned comma separated. $lat_lan =...
View ArticleMake distance solr search in miles in Drupal 8
If you need to do the solr distance search based on the city or the zipcode, latitude and longitude needs to be passed to the solr in query filter query (fq). With geofilt sfiled describes the indexed...
View ArticleUpdate multi dimensional data in the form in drupal 8
Case: update certain form field value during validation. $form[‘latlon’][‘value’] = 110001; $form[‘latlon’][‘distance’][‘from’][‘#default_value’] = 100 and need to change it to 200 during validation....
View ArticleAdd a controller: get duplicate term and associated nodes
A.Define path File path: custom/custom_core/custom_core.routing.yml custom_core.node_count_by_vid: path: '/duplicate/nodes/{vid}' defaults: _controller:...
View ArticleEvent System
Events Events in Drupal 8 allow various system components to interact and communicate with one another while remaining independent, or decoupled. The event system is built on the “Symfony event...
View Article