Blogs

changing elements with jQuery when Drupal dynamically assigns ids

I find myself really enjoying jQuery these days because it provides an easy cross-platform shorthand for things that I like to do to make the user experience better.

Our form to answer reference questions is a regular Drupal node form, but I want to change the 'Submit' button to be more descriptive, depending if the librarian is answering a question, requesting clarification, saving a draft, or whatever.

Our form looks something like this, just imagine a submit button at the bottom labeled 'Send answer'.

tuning drupal's search index with hook_nodeapi and $node->build_mode

I've been working on getting our search index to exclude certain fields from custom content types so that hidden information isn't available by searching for it.

Modules can affect what content a node displays through their hook_nodeapi function by modifying the $node object's 'content' parameter.

For example, to add a simple phrase near the bottom of every node when it is viewed:


function my_module_nodeapi(&$node,$op) {
if ($op =='view') {
$node->content['extra_info'] = array(
'#value' => 'The moon is made of cheese.',
'#weight' => 100,
);
}

restoring a single node from backup

Now and then I have to restore a MySQL drupal table from backup, and I've been using the instructions at Mike's *NIX notes to do it. It works great.

Except when the table in question is {node_revisions}, which contains the default body field for most Drupal content, and your site has changed enough that you really just want to restore one entry, not the entire site.

ALA issues CMS RFP

(Posted on behalf of Louise Gruenberg, Information Technology & Telecommunications Services, ALA)

The American Library Association (ALA) is seeking a vendor to handle the migration of http://www.ala.org, which includes 11 division subsites, a number of online publications, and their site for the public (I Love Libraries http://www.ilovelibraries.org) to a new content management system. Proposals are due February 15, 2010.

Drupal Done Right

Karen Coombs has published a great article in the November 15 Library Journal profiling several Drupal library projects. Disclosure statement: one of the projects in Karen's article is my own library's thesis submission app.

The New York Public Library launches public beta of new Drupal powered site

We're proud to announce the public beta of our new site, available at http://new.nypl.org. Please use the feedback mechanism available on the site if you would like to give us your input.

LITA Drupal Interest Group at ALA Midwinter in Boston

The meeting of the LITA Drupal Interest Group at ALA Midwinter in Boston is scheduled for Saturday, January 16, 2010 from 4:00-5:30, Boston Convention & Exhibition Center-Room 157B.

Library DrupalCamp 2010 (Pre ALA Annual)

Momentum is building for a Library DrupalCamp to be held in Washington (or close by) immediately preceding ALA Annual. I would like to consolidate discussion of this to the groups.drupal.org library group. There is also a thread about this on the drupal4lib mailing list.

Should there be a ALA affiliation?

My thought is that this should be a free or very inexpensive event, so affiliation might be impossible.

Thanks!

Excellent paper on Drupal and the Semanitc Web/Web of Data/Linked Data

Anyone interested in how Drupal can leverage Linked Data should take a look at this blog posting by Stéphane Corlosquet and more specifically the paper he is giving at the 8th International Semantic Web Conference (ISWC 2009) next week.

Sorry about the new quiz notification

Members of Drupalib who get email notifications of new content will have seen that today I created a quiz and two inane questions. I'm sorry to have polluted your inboxes. This test quiz was not meant to be publicized, but by marking it as published, I triggered the notification that you received.

I've configured Notify to not alert members about the creation of new quizzes, since I set up that module with no particular intent of making it a general feature of Drupalib. Again, I apologize for the inbox static.

Syndicate content