People are lazy by nature and love when something is done for them automatically. As web developers, we can always use this need in our website designs by creating different autocomplete fields to ease website visitor's experience. Being the best CMS platform outhere, Drupal allows us to create autocomplete fields within a blink of an eye. Here’s how to do this:

The task is very common, but in Drupal 7 you do this in a bit different way than in Drupal 6. Here’s how to remove format options from comments textarea in Drupal 7:

UPD: Well, the most easiest way to do this is to install Better Formats module (http://drupal.org/project/better_formats). But do we need another module installed to do this simple thing? Me, not, so let's dig into the code a bit.

Basically, we need to alter comment form. You can do this in two ways:

Almost a year ago I wrote a tutorial about How To Separate Drupal Taxonomy Terms Output By Vocabulary (which is the third most popular post on this blog to date!), the technique desribed in the tutorial was useful for Drupal 6, but not for Drupal 7. I got some requests to explain How To Separate Taxonomy Terms Output By Vocabulary in Drupal 7 and here it is. The explanation.

If you build a View with an exposed filter you may want to put this filter in a block. This is can be done to separate filter from view results and to display exposed filter in any part of your website.

To do this, go and edit your view.

It is so quick that I won't even publish an image with this post ;)

OK, I've recently switched to Wampserver for my dev box and noticed that it is somewhat slow with Drupal 7. Increasing the realpath_cache_size (this is to do with opening a lot of files) put things back to normal. Set realpath_cache_size = 2M in your php.ini file.

Enjoy and have a nice weekend (if you're reading this on Saturday / Sunday).

Just wanted to make a quick share on how to solve one weird Drupal 7 performance related problem.

Picture this. Yesterday, your Drupal 7 site run pretty ok, but today it as slow as a snail and you don't remember yourself changing anything. I myself encountered this problem today and spend a good hour looking for a problem source.

My problem was connected to a so-called "Avoid re-scanning module directory when multiple modules are missing" bug which is still not resolved. This problem happens if you have some missing modules in your Drupal installation. For example, you could delete or rename module while it's enabled (which happens often on a development machine).

The Solution

I've been busy with a migration work for my client recently. There is an established website built with some proprietary CMS with a decent amount of articles / pages, different categories and user comments. My team was hired to make a complete migration from this money-sucking old-fashioned proprietary CMS to a modern shiny open-source Drupal 7. I like this kind of tasks. It’s always a pleasure to help people get rid of an old and proprietary technologies.

Drupal distributions like Open Atrium and Drupal Commons consist of many modules, already preconfigured and installed. During the installation process of such distributions you can encounter several problems related to your server like ‘memory limit error’ and ‘time execution limit’. These are caused by a complex configuration and calculations being performed during the installation of these packages.

To secure yourself from such sad interruptions and to install everything quickly and smoothly you should do the following:

This post is for everyone who is currently making a decision whether to use Drupal 7 for a new project (or to upgrade Drupal 5/6 based project to Drupal 7) or not. Drupal 7 have been released more than a month ago and have already created a big buzz in the community. I tried to accumulate the knowledge I received during the reading of tons of blog posts, forum comments and making my own experiments.

I have been omitting Drush for a long time because of being too busy to spend time on another new feature. But here is what I’ll say you: I can't excuse myself for escaping Drush since I’ve discovered it. This is so huge time saver for any Drupal developer and you just can’t have a right to escape it. So if you still don’t know what the Drush is or don’t have it installed on your development machine read this short Drush Windows installation and usage tutorial.

Pages

Subscribe to TimOnWeb RSS