Server Certification
Submitted by system on Tue, 08/23/2016 - 15:55Checking Passphrase for private key: openssl rsa -check -in keyfilename
Changing Passphrase: openssl rsa -des3 -in keyfilename -out newkeyfilename
Installing or trusting certificates:
Extensions .crt, .pem and .cer are interchangeable, just change the file name extension, they have the same form. Try this:
sudo cp mycert.cer /usr/share/ca-certificates/mycert.pem
sudo dpkg-reconfigure ca-certificates
sudo update-ca-certificates
Getting the RSA public and private key from conf file.
Actions in Views Bulk Operations
Submitted by system on Wed, 07/27/2016 - 18:12Views Bulk Operations come handy when doing bulk operations over a selected list. This is great because it combines the power of views to filter the selection and specific actions to do on each selected entity. For Ex: Updating some field in the record, deleting selected entity and so on.
Views also provide an easier way to define your own set of custom functions to perform on each selected row of entities.
First, we need to define an action :
Drupal 8 Theming
Submitted by system on Wed, 03/16/2016 - 14:49Templates are the default option for hook_theme: https://www.drupal.org/node/2231673
Advanced Theme Settings Change Record: https://www.drupal.org/node/2382645
Drupal 8 theming guide: https://www.drupal.org/theme-guide/8
API changes in Drupal 8 in comparison to Drupal 7
Submitted by system on Wed, 03/16/2016 - 13:51This post would reflect on few essential APIs in Drupal 7 and how they were changed in Drupal 8:
drupal_get_title()
: Gets the title of the current page. Link to changelog here .
Drupal 7:
Drupal 8 Entity Manipulation
Submitted by system on Tue, 03/15/2016 - 12:43Drupal 8 has done a great overhaul in terms of entity management. Lets have a look on how can be access and set data for fields in entities.
All entities implement Drupal\Core\Entity\EntityInterface
Access Entity Title:
Opcache with Drupal
Submitted by system on Mon, 09/28/2015 - 13:52OPcache is an opcode cache for PHP. It is bundled with PHP 5.5.0 and later.
The following settings work really well with Drupal. For Ubunti 14.04 , these following file can be modified to incorporate the changes
/etc/php5/apache2/php.ini
Configuration:
Drupal Table Display
Submitted by system on Sun, 08/16/2015 - 12:28Drupal provides nice theming options for table display. However, various options available using tabular display are not documented well. This article will try to list various options to use when creating tables using drupal theme functions.
Creating a table display:
Troubleshooting: Node Reference field always displaying 10 results when using the Advanced View option in Drupal 6
Submitted by system on Thu, 04/02/2015 - 12:37This problem particularly occurs when the views is upgraded to 3.x in Drupal 6. The nodereference field which gets list data from a view returns only 10 results irrespective of whatever is set on the views page.
There is an easy solution to alter by modifying the items_set_per_page using views hooks.
Installing Drush using Composer
Submitted by system on Sun, 03/29/2015 - 13:36With the advent of Drupal 8 and composer integration, there is a better way of installing Drush.
Install Composer:
curl -sS https://getcomposer.org/installer | php
Enable Composer access for All Users:
mv composer.phar /usr/local/bin/composer
ln -s /usr/local/bin/composer /usr/bin/composer
Install Drush: