6093 comments
2357 subscribers
6246 on Twitter
Subscribe! Feed reader E-mail

IBM Drupal Drop-in Clinic

I love this! I’m practically running an IBM Drupal drop-in clinic at 120 Bloor E, helping five developers on two projects become that much more productive. They’re all working with Drupal 6, but my experience with developing and debugging on Drupal 5 is still helpful, and I can navigate through Internet posts pretty quickly too. I get to help with the tough and interesting bits without needing to set up my environment or work on the boring bits. ;)

This is definitely worth the subway ride. I create more than CAD $4.50 of value and save people more than 60 minutes of time total. Besides, I usually get to sit down and write a blog post during the commute.

Some things from today:

  • Want to protect files from being downloaded? Set your Drupal file system handling to Private, manage your view uploaded files permission, and don’t forget to add an .htaccess in your files directory with the following:
    SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006

    Options None

    Options +FollowSymLinks

  • Use hook_form_alter to print out the form_id if you want to change where a form redirects. After you figure out the form_id, set the appropriate form’s #redirect property.
  • var_dump may look different if you don’t have xdebug installed. Check the HTML source for your expected output.

Lots of other HTML- and Drupal-related things, too.

Good leverage on time and experience. =D I wonder how to get even better at this…

Short URL: http://sachachua.com/blog/p/6549
  • Jamie

    One important thing to not forget is to install the devel module. DPR works great for printing out arrays when debugging. The theme developer is a life safe for figuring out what theme hook you need to latch into, and being able to clear the cache by a simple click in a block is a life safer – especially with the enhanced caching going on in Drupal 6.

  • Pingback: Shared Items – August 26, 2009 | disruptive by nature

  • http://sachachua.com Sacha Chua

    I love the devel module. Also, for Drupal 6, you can set it to not cache your theme files while you’re doing development. =) Thanks for sharing!

  • http://www.arnelbornales.site90.net Arnel

    Use hook_form_alter to print out the form_id if you want to change where a form redirects. After you figure out the form_id, set the appropriate form's #redirect property.

    If you have a firebug in firefox then you don’t need to print out the form id just inspect the form. look for the name=”form_id”.

    ex.

    input type=”hidden” name=”form_id” id=”edit-search-theme-form” value=”search_theme_form”

    then the form_id of your form is search_theme_form

  • http://sachachua.com Sacha Chua

    Drupal for Firebug is good for this too. =)

  • http://adamdicarlo.com Adam DiCarlo

    Once you have the form ID you can use the Custom Destination module to set the form’s redirect. But if there is a reason to use a short custom module instead, I’d like to hear it!

On This Day...

  • 2012: Weekly review: Week ending August 24, 2012 — There’s paint in my hair, but that’s okay. It matches the shed. From last week’s plans Business [X] Earn: [...]
  • 2011: Re-setting up my computer — (From Wednesday night): With dozens of tabs open in a browser, dozens of buffers open in Emacs, and a virtual [...]
  • 2010: Keeping in touch with diffuse networks — Soha wrote: I’m a long time reader of your blog and I must say it’s pretty amazing and inspiring. [...]
  • 2009: Growing as a presenter — After attending a full-day IBM course on creating effective presentations last Friday, I felt like challenging myself to figure out [...]
  • 2005: Argh. Got my own number wrong. — I’ve been writing down “832″ instead of “834″ as the first three digits of my cellphone. Argh.
  • 2005: The faint smell of burnt protein… — … wafts up from freshly-dried pillows. Hmm. Maybe they’re serious about “tumble-dry low-heat for several hours”.
  • 2005: Planner tip: What day is it? — I sometimes forget what day it is, so I changed my planner template to something that fills in the day, too. (defun [...]
  • 2005: Wow! Cleared my mail inbox! — Finally unticked everything in mail.misc and mail.planner. All the ticked mails are now represented as tasks in my planner… Yay! =) That [...]
  • 2005: Burst of productivity, thoughts on maintenance — It’s 9:17 and I’m looking at a neat list of completed planner tasks, mainly thanks to Sergey Vlasov’s attention to detail [...]
  • 2004: Day 1: Orientation — From 9:30 to 12:00, people from AOTS, METI and other organizations talked about the course we are about to take. In [...]
  • 2004: Org maintainer ultra-active! ^_^ — The org.el maintainer seems to be as compulsive as I am; probably Googles for org.el just like I check for PlannerMode [...]
  • 2003: *** Attendance — Vision The SMIT-Ed Program will become a recognized center for competency, research, and educational policy in math, science and IT education, [...]
  • 2003: Bootstrapping Debian onto Bleeding-Edge Hardware — http://twiki.iwethey.org/twiki/bin/view/Main/DebianChrootInstall http://lists.debian.org/debian-user/2003/debian-user-200308/msg01080.html

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging

Free sample!