User login

Public

Views display naming practices: don't rename the Default display

[note] The Default display is always the Default display. Changing its name will just confuse ourselves and others, and should not be done. [/note]

And in Views 3, we cannot change the name of the Default display anymore.

If this software keeps getting better and more intuitive, how am i supposed to <a http://definitivedrupal.org/node/95">write about how to use it?

Getting a git diff with a relative path (no a/ b/ prefixes)

--no-prefix

Do not show any source or destination prefix.

Reference

http://www.kernel.org/pub/software/scm/git/docs/git-diff.html

Display the word count of a piece of content

In the most useful comment on a thread of useful comments, Greg Harvey describes how to get the word count for a node in the template level: access just the body portion of the content variable for a node in and count the words in template.php, then output this variable in node.tpl.php.

Upgrading from Drupal 7 alpha to Drupal 7 alpha

Alpha to alpha upgrades are officially unsupported and the HEAD2HEAD module focuses on precisely that, continuous changes in CVS HEAD not upgrades between the alphas.

UPDATE: Head2Head does have an alpha2alpha module, use that. Consider the below a learning exercise... in examining existing modules that may solve your problems carefully!

Newer update! See Upgrading from Drupal 7 alpha 6 to Drupal 7 beta 2.

Upgrade between Drupal versions using a diff shell script

[This should be on its way to being obsoleted by drush, but i'm using it for Drupal 7 alpha so thought i'd finally make sure it was shared.]

Download this and other useful scripts from their public repository on gitorious.

(Please use the code from the repository, the below may be out of date.)

Do not allow users to select parents in a term hierarchy, but only the lowest-level terms

This would be quite useful functionality, and i'm sure i've seen it implemented or at least requested somewhere.

In effect, it makes the hierarchy in a vocabulary just an organizing tool, preventing the grouping labels higher in the hierarchy from being used as terms.

Prevent twitter from shortening URLs

http://www.seoconsultants.com/uris/conversion/

If you've really got all your ducks in a row, your URIs will be short to begin with. You'll have followed the suggestions made back in the early 90s that URIs should be concise and never change. Planning for that type of scalability is a bit challenging and definitely has its long term rewards.

Finding fixed-width fonts

Courtesy mgifford:

grep -ir px themes/seven/* | grep font

Background

Why they aren't wanted:
Thread: WCAG 2 and browser ZOOM and font units (link courtesy Everett Zufelt)

Syndicate content