User login

Benjamin Melançon

Drupal wish: Configuration setting to make all content types default to create new revision

Update: All this is superseded by an existing module, http://drupal.org/project/content_type_overview

Requests for this feature go all the way back to the days of Drupal 4.6, at the least:

create new revision by default
http://drupal.org/node/53149
(4.6 era post!)

This feature remains wanted-- here is the manual instructions, for Stanford.edu!

Creating a Subtheme in Drupal 7

Bear with us, and Drupal 7. There are some non-intuitive steps in the subtheming, but the power, simplicity of modifying, and relative ease of upgrading is worth it.

Agaric wants an emacs orgmode-style input format for Drupal

There is apparently no such thing yet and this may be silly, but the idea is to have an input filter that would make a copy-paste of an emacs org-mode document look good-- perhaps even with collapsible sub-sections using JQuery.

Or, there's the obvious approach: let emacs export to HTML. http://www.randomsample.de/dru5/node/76

Overview of Development to Live Deployment Strategies

General

Plain Everything-in-code

There's more than one way to span a date...

In theory you can put HTML code right into a custom date format declaration. Actually, this did not quite work for some reason... somewhere in class year the code just gave up and pled for mercy.

\<\d\i\v \c\l\a\s\s\="\m"\>M\<\/\d\i\v\>\<\d\i\v \c\l\a\s\s\="\d\y"\>d\<\/\d\i\v\>\<\d\i\v \c\l\a\s\s\="\y\r"\>Y\<\/\d\i\v\>

Slick top-level-domain style URLs for your local development sites on Ubuntu (and Mac OS X running Ubuntu in a VM)

In order for the cool myprojectname.dev style addresses for sites you are developing locally (rather than 127.0.0.1/myprojectname) from my Mac OS X environment as well as Ubuntu running in a virtual machine, this method uses the IP address available locally that you can find out by typing ifconfig in a shell terminal. It's what follows the text "inet". With luck that is a stable IP address, running in bridged mode (i think) with VMWare Fusion this seems to be working so far. The problem with bridged mode is that it only works with your own internet connection.

Add a subsection class to Drupal page body for theming Views and other parts of a site that can be defined by parts of the path

I had wanted to add the name of the view with its display to the body classes (Views apparently provides everything but that combination, and not all browsers we need to support deal with matching on two sibling classes). Looked in Zen for how to do it first though and as a consequence saw a way to add new sub-section body class with the first two parts of each URL.

This goes in your zen subtheme's implementation of preprocess page:

Customize breadcrumbs (for node_gallery module, using custom_breadcrumbs module)

Here is how i customized the breadcrumbs for galleries to remove the username, building on the documentation at http://drupal.org/node/544748#breadcrumbs and contributing back to that page what you see below:

Mysterious insertion of paragraph tag (in DOM only, not in code) inside span

.section-aboutus .date-display-single {
  color:#2d95c1;
}

.section-aboutus .date-display-single p { margin:0px; padding:0px; }

Can that second CSS rule call the p tag into being?

Definitely one of the freakiest things I've seen. The source code contained no p tag within the span. The code shown by Firebug and Safari's inspector both had the the paragraph tag.

Actual source code:

<p>Tri Star Pictures <span class="date-display-single">2009</span></p>

Syndicate content