• RESUME
  • LOGIN

balanced scale media

  • blog
  • projects
  • services
  • contact
Home

Drupal

Remote Drush

boz — Thu, 08/19/2010 - 22:36

I finally sat down to understand a recent post by lullabot on Drush 3 remote capabilities. Its taken me a couple of hours to set up, but this will save me hours in drupal updates. Thank you drush project!

My hangs were on setting up the ssh key, which I omitted at first and then realized that it was a requirement for drush. The second hangup I had was to make sure my *.aliases.drushrc.php files were wrapped in <?php ?> tags. Hopefully that helps some one else.

  • Drupal
  • boz's blog
  • Add new comment
  • Read more

Update CCK Fields In Custom Drupal Nodes

boz — Tue, 06/22/2010 - 13:17

This was a major hang up on my recent project. I thought I would share in hopes of saving someone else sometime. The explanation for the code being this tedious has to do with CCK's database structure. Each field is given its own table, so to avoid costly queries CCK has a database cache. Here is the code. I had to read through several other posts to find this. I'll try to link to those when I get time.

  • Drupal
  • boz's blog
  • Add new comment
  • Read more

Environment Based Database Selection In Drupal

boz — Mon, 03/15/2010 - 11:07

I needed to find a way to have only one settings.php file maintain my database configurations across both my local development and environment and my production server. Here is my solution. Is there a better way?

 

if($_SERVER['SERVER_NAME'] == "local.mydomain.com"){
	$db_url = 'mysql://username:password@localhost/databasename';
}
else{
	$db_url = 'mysql://username:password@production/databasename';
}
  • Drupal
  • boz's blog
  • Add new comment

Nid Based Panel Variants in Drupal

boz — Tue, 03/09/2010 - 20:47

For one of my recent projects, I had the privelege of learning how to use the Drupal panels module.  I needed a panel that swapped out content based on which page I was on.  Here is how to do it:

  • Drupal
  • boz's blog
  • Add new comment
  • Read more

Setup A Local Drupal Site Programatically

boz — Wed, 04/22/2009 - 11:13

I've been keeping documentation on my development life cycle processes.  Just recently, I realized that I could do away with a lot of these little tasks with shell scripts.  Here's a look at one of my "to-do lists" for setting up a Drupal site on my local Apache server.

  • Code
  • Drupal
  • Linux
  • boz's blog
  • Add new comment
  • Read more

Practical Usage of Symbolic Links

boz — Sat, 04/18/2009 - 14:12

Symbolic links work kind of like shortcuts in Windows.  I have found a couple of very useful scenarios.  The first is my local development environment.  For Linux users, it is best practice to keep all your files in your user folder.  For me, this is mainly to keep my system directories clean and to make backup of my files easier.  This leads me to my first usage:

1. Managing Development Files for Apache

  • Drupal
  • Linux
  • boz's blog
  • Add new comment
  • Read more

DrupalCon DC Session Videos

boz — Fri, 04/03/2009 - 13:20

Greetings.  I just stumbled upon a great resource from the Drupal Twitter feed.  The videos for each session of DrupalCon DC are posted on the DrupalCon DC website.  Check em' out!

  • Drupal
  • boz's blog
  • Add new comment

Installing FirePHP For Drupal

boz — Sat, 03/07/2009 - 07:55

I just found this and thought I'd pass it along. Firebug is an extension for the Firefox browser which provides a rich interface for JavaScript debugging among other features. FirePHP is an extension that allows use to leverage Firebug rich interface for PHP debugging. To install FirePHP for Drupal follow the instructions provided by FirePHP HQ.

  1. Download and enable devel-module from http://drupal.org/project/devel
  2. Create a folder FirePHPCore in the devel-modul-folder (modules/devel)
  3. Download the FirePHPCore library from http://www.firephp.org/HQ
  • Drupal
  • boz's blog
  • 2 comments
  • Read more

Essential Drupal Modules

boz — Fri, 01/16/2009 - 18:47

In the my experience of Drupal I've found a set of contributed modules that I keep coming back to. The features that they provide are, for the most part, useful on any site. Those modules include the following.

Menus

  • Menu Trails - Maintains a breadcrumb based on your menu hierarchy
  • DHTML Menus - Quick navigation via js menu


SEO

  • Path Auto - Automated and manual URL aliasing
  • Drupal
  • boz's blog
  • Add new comment
  • Read more
Syndicate content

Recent Posts

  • The Future of HTML5 Video?
  • Remote Drush
  • Update CCK Fields In Custom Drupal Nodes
  • Image Security Made Simple With jQuery
  • Simple Apache / MySql Backup Script
  • Environment Based Database Selection In Drupal
  • Comparing Syntax of MooTools 1.1 with MooTools 1.2 and jQuery 1.4
  • Nid Based Panel Variants in Drupal
  • Security Updates for 2010
  • Contribution to Sandy's Ankeny
more

Topics

  • Apace
  • Aptana
  • Bazaar
  • Code
  • Drupal
  • Eclipse
  • Flex
  • HTML 5
  • JavaScript
  • jQuery

Archive

  • February 2008 (1)
  • May 2008 (1)
  • July 2008 (3)
  • December 2008 (2)
  • January 2009 (2)
  • March 2009 (3)
  • April 2009 (5)
  • May 2009 (1)
  • July 2009 (1)
  • August 2009 (3)
more

Links

Firefox 3

drupal

ubuntu

 

  • blog
  • projects
  • services
  • contact

© 2010 Balanced Scale Media, LLC. All Rights Reserved.