Syndicate content

How To Selectively (or Completely) Delete Drupal Content By Node Type

Lots of times during the development of a Drupal site, I need to quickly delete all node content, often of a particular type. I've found that a quick and easy way to accomplish this is with the Devel Generate module, which comes as part of Devel project.

  • Download and install the module. I'm using Drupal 6.15 and Devel 6.x-1.18
  • Go to admin/generate/content
  • Select which node types you want to operate on.
  • Check the box for "Delete all content in these node types before generating new content."
  • Set the value for "How many nodes would you like to generate?" to zero.
  • Submit the page and content be gone.

Very handy tool indeed. Thanks "Devel"opers.

Bread-Crumbs for Static Files & Directories with Mootools

Recently we were tasked with implementing bread-crumb links on a client's site and not surprisingly, there were some obstacles. Being written initially using Dreamweaver templates (don't ask me why) and leveraging only the most static of technologies throughout, a server-side solution was out of the question.

And so a Javascript solution was only natural; leveraging the ever handy Mootools framework and the already existing, directory structure's naming convention to derive the bread-crumb links and names- the resulting solution was pretty elegant. Mootools v. 1.11 was likewise chosen for reasons unknown, but the example below could be converted to 1.2 version pretty easily.

Exclude Directories in Bash Find

I have a directory tree with lots of nested sub-directories, some of which are named .svn, containing sensitive, internal Subversion mojo. I need to change the permissions and/or ownership on the everything in the directory tree, but am hesitant to use the shotgun approach because almost every time you monkey with ownership of the hidden .svn stuff you risk unleashing armageddon on your development process.

My Brightest Diamond
Mirah
Jolie Holland
LastFM
 


			Pro Drupal Development
		,

			The End of America: A Letter of Warning To A Young Patriot
		,

			Deadwood: Stories of the Black Hills
		,
Good Reads
 

rocketballrules.com

this is the by-product of many long hours invested in open-source, interrelated technologies.
nothing more.
any info found here should be utilized with the utmost caution.