Lately I’ve been giving a lot of thought to my local development environment. When I have a new Drupal project to start, I usually start by creating a new hosts file entry and adding an apache virtual host for the project. But why? I don’t do this when I start a new ruby project. Whether it’s Rails or Jekyll, I just start a webserver right from the project root, and when I’m done with it, ctrl+c and it goes away. I want this for my Drupal and PHP projects.
I’ve been hard at work lately on my new pet project, the Dialog API module. My goal for this module is simple. Take the incredibly simple CTools ajax command framework, and merry it to the jQuery UI Dialog widget, to provide an incredibly simple api for creating dynamic dialogs. The basis of this module comes from CTools’ modal framework (which I wrote about previously), so if you’ve used that in the past, using dialog should be a breeze.
Last week I wrote about the awesomeness that is the CTools ajax framework. If you’re anything like me, your mind immediately started racing about all the cool possibilities this opens up. One of those cool possibilities is yet another hidden CTools gem, the modal framework. If you’ve ever used panels, then you’ve seen CTools modals in action. In this post, I’ll show you how to use modals, in the same way that panels does.