User login

note

Drupal as a Relationship with a Happy Ending

Notes from the presentation by Julia KM:
http://www.juliakm.com/drupal-love-story

Great security
modular
core very lightweight
(
used by lots of smart, helpful people

The Rough Period
not all modules are created equal - must evaluate quality
CRM + E-commerce = Pain

Hacking core until
i decided to write my own menu system - not a good idea
always a good idea to work within the constraints of Drupal

Marginalia

In searching for the perfect name for my dreamed-for annotation module, i found Marginalia. And through the name, i found a JavaScript tool already built to do it!

http://webmarginalia.net/

The search is over:
http://en.wikipedia.org/wiki/Marginalia

A few left-over notes from DGD7 DBTNG select info from block table

Also, the isset variables discovery!

Note that non-dynamic select queries such as these should NOT use the DBTNG query builder. The below should be instead SQL statements with db_query.

RDFa for telephone, IRC links that open, and other spiffiness for Agaric's client support page

RDFa-ing up our support page.

http://www.w3.org/TR/xhtml-rdfa-primer/

recommends FOAF for most contact stuff, and there is a FOAF:Organization for companies and weird hybrid collective

The tel URI for Telephone Numbers
http://tools.ietf.org/html/rfc3966

Must use ->fields() method in select statements in Drupal 7 database layer (DBTNG)

An error like this one:

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM block block WHERE (theme = 'bartik')' at line 1: SELECT FROM {block} block WHERE (theme = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => bartik ) in xray_block_statistics() (line 80 of /home/ben/workspace/dgd7all/sites/default/modules/xray/xray.module).

Stumbling through DBTNG, Drupal 7's new database layer

Order matters. condition() before countQuery()

This fails (note it trying to do a subquery):

<?php
return db_select('block')->countQuery()->condition('theme', $theme)->execute()->fetchField();
?>

Prevent LibreOffice/OpenOffice from splitting a string of text on symbols in the text

OpenOffice was insisting on splitting a line a string of text !$has_money between the exclamation point and the dollar sign.

As far as i can tell the only solution is to insert a special character, the "zero-width non-breaking space": U+FEFF.

It's something like fifth from last when using the insert special character dialog.

Render in Drupal 7 notes

Drupal 7 Render Arrays (and the new Render Example) by rfay
http://randyfay.com/node/79

Using the theme function: drupal 7 theme() should always take an array, a string is not officially supported. See Handing theme() function an empty string or NULL as its second parameter triggers a fatal error.

Syndicate content