Caching in Drupal

The $variable[‘messages’] is not always available and, thus, it fails in situations where you need to have messages be available anytime and everywhere in the code during single request. As solution to my problem, I utilized Drupal Caching In search for solution, I started by creating the following function: This works well, however. The messages […]

Read more...

Sharing via Samba Instead VirtualBox Shares

The performance was so largely effected by using the VirtualBox shares on Apache server that I had to find a better solution to share directories between my VirtualBox Dev environment with Web server,database,etc and my machine Mac with the editor software. I turn to Samba Service as solution since it is one of the well […]

Read more...

Setup Dynamic Virtual Hosts To Automize Drupal With WorkFlow

A tool WorkFlow has a new functionality “construct-container” that sets up a new container, so you can spin(i.e. drush spin-it) new Drupal instances automatically. Besides creating database, directories in file system, the construct container task also sets up and configures virtual host for the new Drupal instance. In this post, we cover the approach that […]

Read more...

VirtualBox Gotchas

This is ongoing post listing different challenges and how those can be overcome when utilizing VirtualBox for your development needs 1. VirtualBox host only supports 32bit guest OS This was a problem on Windows 8 Intel processor machine that didn’t have vt-x enabled. The vt-x is feature of Intel processor that allows the virtualization of […]

Read more...

jQuery Snippets

Here are list of JQuery code snippets updated ongoing bases 0. Attach Custom Function to HTML Element Here, we put everything in parentheses so it executes on page load while passing jQuery object and assign it to “$” symbol. Afterwards, search the html element with class ‘image_button’ and assign click event with our function. This […]

Read more...