Drupal

A theming ninja

Drupal UE improvement/easier to remove body field

I had a custom content type that I needed to remove the "Body" field.  This custom content type was created by a third-party module, "content_profile" and the custom content type was a "Profile".  I did a search to figure out how to remove the Body field.  While I've done it before, I couldn't figure out how to do this.  The "Body" property in the Manage and Display tabs in the administrative interface only allowed me to move the ordering of the field, no functionality existed to remove it.

Drupal theming gotcha

I am modifying one of the default themes that come with drupal, garland.
I made a copy of the theme, renamed it and started editing the css.  Nothing happenned.  My css edits were not reflected in the css being sent from drupal.
In order to have your css edits saved, it is necessary to re-save the theme within the drupal theme admin.  Once I did this, all was well.

configuring content_profile

The site that I am working on currently was using the profile module.  The problem with this module was that the user had to be created first, before the user can manage those profile fields.  Create User, Login in, finish profile creation.  This 2 step registration process was not going to fly.  Here is the module in question:  http://drupal.org/handbook/modules/profile

 

Rules and Taxonomy Conditions

We use CCK in drupal (who wouldn't ?) .  One of my patterns is to use a taxonomy to create subtypes of my CCK objects.  For example, one could have an "Event" CCK object, and create a taxonomy to classify the Event as a Sporting event vs. Arts event. 

We had a requirement in which we needed to send emails when an event was submitted, but based upon the type (Sporting vs. arts) it would go to the appropriate person.

Enter RULES.  http://drupal.org/project/rules

CSS selectors 101 or How to hide your edit links for a view displayed as a block

While I have worked with css, I never do it long enough, or frequently enough to really remember it well.  At this point, I can always remember the difference between the ID selectors and the class selectors, but I just forgot how to combine them into a single css rule.

Give the following html, how would you write some css to hide the UL?

Down-n-dirty with Drupal Watchdog

I am dealing with some really wierd issues that need to be fixed.  The error is:

Attempt to assign property of non-object in /opt/sites/breilabs.com/dev/client/modules/node/node.module on line 1820.

In order to figure out what is going on, I am going use watchdog and start editing the core modules and basically trace my way through the problem.

First off, get a sql client and connect to your drupal db.  This will return your watchdog entries

select * from watchdog order by timestamp desc

Drupal flaw

I just ran into what is a race condition in Drupal.  When there is a lot of database operations, Drupal does not have a locking/long lived transaction system in place and it can really cripple a site, along with presenting a biziilion errors to a bewildered developer.
The issue is explained here:  http://drupal.org/node/352978
I really like the power of drupal.  Too bad they don't have something like hibernate (a java-based object relational library) for drupal, I think that would be pretty easy problem to solve.
 
 

Drupal overriding flag output

So I created a handy-dandy checklist using Drupal/CCK and Views.  However, I need to add some additional text to add a "Skip" link to the checklist.  This link will be the same as the "Done", but is there for UE, so the user can feel that the checklist is actionable.  The documentation on the drupal flag module is not bad, starting here as a guide http://drupal.org/node/295373
I got this working with the following newbie stumbing blocks:

sometimes flash is cool

Felt like doing something a little braindead, that is, install a drupal modal.  It's a drupal module called Cumulus, and it animates a tag cloud in a super cool animation.  Thanks for showing me this DK.  You can check out Cumulus on http://www.loseyourjob.com It's in the right navigation.

Syndicate content