Drupal Technical
| 3
min read
As the name suggests, a preprocess function is a precursor to a theme function. It runs first, irrespective of the fact that the theme function can also be implemented as a template (.tpl file) rather than a function. Preprocess functions can be implemented in both modules and themes. However, the preprocess implementations from modules run first, and those by themes run only last.
Drupal Technical
| 2
min read
We were working on creating a custom Drupal 7 module for making the comment management better. At some point, we started getting an error. Since the error came during the development, we were almost sure that it was from the custom module only.
Drupal Technical
| 4
min read
If you are using the Views module to create a page that only specific users should be able to access, then a simple configuration will do the trick for you. Basically, we can set views access control by role or by specific type of permission that a user has. Here is how this can be configured in each view.
Technical Solution
| 1
min read
We were setting up a development environment for one of our sites for maintenance purposes. During that process, we've copied the Drupal code to the 'dev' folder from live. Everything was set proper, including database, settings.php and 'files' folder. However the site was showing 500 internal server error. When we checked the error log we found the following error:
Drupal Technical
| 2
min read
We recently moved our Drupal code to a newly created 'public_html' folder for some reasons and set up the website. But then, our website was showing a 500 Internal Server Error.
Technical Solution
| 2
min read
Occasionally we might come across 500 Internal Server Errors on our website. Are you getting the same error? If yes, let us find out more about it.
Drupal Technical
| 3
min read
We were on a venture to convert all our Drupal 7 themes to their responsive versions and we got stuck in between. The issue was with the main menu that it was not displaying sub links. We have gone through the code carefully and we found that only the top level menu items are being set to the main menu variable. To render all menu items from main menu, we should have defined it in theme's template.php file.
Technical Solution
| 3
min read
One of our clients had a security issue with their Ad Server. The OpenX Ad Server has been reported with a Remote Code Execution Vulnerability for the version OpenX-2.8.10. Since the OpenX Ad Server downloads contain backdoor.
Drupal Technical
| 3
min read
l() function is a beautiful thing available in Drupal. It is a simple and secure way to create an HTML anchor tag. Usually we think of l() function to format an internal anchor tag which supports things like clean URLs. You can still create an external URL link with the l() function as an anchor tag.
Drupal Technical
| 3
min read
If you have a multi-site installation that has multiple settings.php files, say '/sitename1.com/settings.php' and '/sitename2.com/settings.php' and so on. Trying to run Drush commands to clear cache from different directories and changing directories all the time is going to be a mess.