Blog posts tagged with Drupal

These are all the posts tagged with Drupal from newest to oldest. Simple enough.

Drupal 7 Read-Only Fields

Posted on 2013-08-14 14:00:00+00:00

If you want to make node form fields read-only in Drupal 7, I'll show you an easy and safe technique to do so. Read on to find out about this method.

Drupal Custom Elements API Errors

Posted on 2013-07-29 20:00:00+00:00

The Drupal Form API is powerful, but very extensive and complicated. In another post we discussed how to add a custom element from scratch. Watch out for the errors and mistakes highlighted in this advanced-level post.

Custom Drupal Elements for Forms

Posted on 2013-07-09 00:41:17+00:00

One of the most cryptic tasks in Drupal is defining a custom form element. That is, defining your own element types to be used and resused in your forms. This post will walk you through the basics. And there's no better way than to learn by example.

Advanced Drupal 7 Form Element Theming

Posted on 2013-02-28 23:22:00+00:00

Ever wanted to give form elements a custom look? Theming entire forms is straightforward, if laborious. But theming individual textboxes, checkboxes and radio buttons is slightly more obscure. Keep reading to find out how to fully customize your form elements, from the input itself to the label.

Custom Autocomplete Path on CCK Node Reference Fields

Posted on 2012-09-03 17:59:00+00:00

In a recent post, I explained how to dynamically alter the AJAX behavior of an autocomplete field in Drupal. But what if you have the similar node reference field, and want to modify the result set? This post will show you how.

Optimizing Drupal Views the Right Way

Posted on 2012-07-23 03:54:29+00:00

The Views module is one of the most impressive features Drupal offers. With some clicks here and there, you can build a rich display of data in minutes. But to offer this kind of flexibility, Views makes some assumptions that can hamper your site's performance. In this post, you'll find out how to improve performance dramatically.

Changing Drupal's autocomplete path with JavaScript

Posted on 2012-07-18 02:54:10+00:00

Ever had an interface that needed an autocomplete field? Happens all the time - and Drupal makes that task trivial. But what if you need to change the autocomplete URL without reloading the page? Use these steps, and you'll find out how to do so with JavaScript.

Drupal 6 and Memcached on MAMP 2.0

Posted on 2012-06-03 20:05:50+00:00

Setting up Drupal 6 to use memcached is anything but trivial. There are plenty of instructions out there, but many of these are for MAMP 1.x, or involve MacPorts. This post will show you how to quickly set up memcached locally. Best of all, this guide will leave your system ready to install other PECL extensions quickly.

Making CCK fields read-only in Drupal 6

Posted on 2012-05-14 04:00:00+00:00

Once if a while, you want to make a CCK form field readonly in Drupal. Unfortunately, using form alter + disabled will not work. This post will show you what to do.