Arshad's blog

Dropbutton with Ctools

Earl Miles aka merlinofchaos, has a knack for introducing new UI elements to Drupal. See View UI , Panels UI, Modal forms ...etc. With the new revamped Views 3 interface comes a new element, the dropbutton.

The dropbutton provides a javascript based dropbutton menu. It shows up as a button with a clickable twisty pointer to the right. When clicked the button will expand, showing the list of links. This allows you to focus on the main tasks, like edit, while less-used action are within a single click. It's a neat thing that you can use on your custom modules too.

Here's how.

The Drupal.org Link filter

How many times have you typed <a href="http://drupal.org/project/modulename">module</a> to help someone find new modules or <a href="http://drupal.org/users/9999999999">username</a> to link to user profiles? It's a real PITA to go type all that html everytime, right? Wouldn't it be awesome if you could just write the module name or the user id and your editor would automatically find the correct module title, the right username and turn these into links? Well, there's a module for that. It's called the Drupal.org project link filter.

Hit read more to see it in action.

Moving an element across browsers

What do you get with a shiny new toy minus sleep? This.

Yeah? Source codes? Will upload later today. ;)

Is there a module for that?

What's the answer to 80% of all Drupal noob questions?

Only for people who click read more below.

Multi Steps Form in Drupal 7 with Ctools

Creating multi steps forms, forms with fields over multiple pages, is not a given for most developers. It requires handling user input over several pages, several page refreshes, keeping track of the workflow and at the same time not compromising over usability. Drupal has had multi steps forms support for years.

There are several modules and FAPI techniques that allows form to span over several pages. Using fieldgroups, you can break your custom content type into pages, defining which cck field show on which steps. Pagebreak is another way of creating multi steps webforms.

In this post, we look at two different ways of creating multi steps form using the FAPI and the Chaos Tool Suite.

Pages

Subscribe to RSS - Arshad&#039;s blog