User login

note

A new Settings API for Drupal

Update, there is an active real project doing much of this: http://drupal.org/project/variable

This is primarily a matter of deployment and developer sanity, but it is also a performance issue: large variables that aren't used on most pages shouldn't be loaded on every page.

The variable table has to change, and we need to distinguish variables that are needed on (most) every page load from those that clearly are not.

Update disabled

Until drush upc is fixed for disabled modules, this is the fastest way to fully upgrade

rm -rf logintoboggan; drush dl logintoboggan
git add -u logintoboggan

Installing Drubuntu

This is for Ubuntu 10.10 with the intention of doing primarily Drupal 7 development.

Get the link to the current version of Drubuntu from the Drubuntu project page, and use it thusly:

wget http://ftp.drupal.org/files/projects/drubuntu-7.x-10.10-beta1.tar.gz
tar -xzf drubuntu-7.x-10.10-beta1.tar.gz

Host's shared home folder in VMWare Fusion

/mnt/hgfs/

Insert the current data and time

No button, but it's pretty slick. Just type the day of the month, slash, and hit enter or tab. There's today's date.

Just type the time, "10:14", and it records it properly as a time.

Credit: http://user.services.openoffice.org/en/forum/viewtopic.php?f=9&t=32263

Adding a Node Build Mode

Q: if you need to add a dead simple view mode to theme a node template differently, basically give Views in addition to "full node", "teaser", a "bastard step-child" option, quick custom code or is a module?
http://drupal.org/project/buildmodes ?

A, by Fox: just do the hook. the hook is simple as hell

Q: and Views sees it automatically?

Amazon irony and incompetence

"We didn't receive the e-mail message below because it was directed to an e-mail address that can't accept incoming messages."

To: "cust.service03+A3LQ39B2K6FLT3@amazon.com" cust.service03+A3LQ39B2K6FLT3@amazon.com
Subject: Re: Your Amazon.com Associate Inquiry

Dear Caitlin C.,

Disabling or moving node/add/[content-type] links from beneath "Add content" in the navigation menu also removes them from the Add content page (node/add)

Short story: Turn the navigation menu off on any site for which you are customizing the user experience, it is only going to cause you pain.

Seeing "You have not created any content types yet. Go to the content type creation page to add a new content type." when you know darn well you have content? And node/add/page, say, still works?

Is it a bug, a feature, or 'gee. huh' that moving a content add form out from under "Add content" in the navigation menu will also remove it from the node/add page?

How to override block.tpl.php and node.tpl.php from your module

After much thought, and not being sure if it needs a hook_theme and a template_preprocess or what

Decided that it is not something we should be doing anyway. Overriding block.tpl.php or node.tpl.php from a module just messes up themes! We can have our own templates for the content we print if we want.

Please leave a comment if you think this conclusion is incorrect!

Syndicate content