Latest sites

Quick news

  • 2014-03-27: MongoDB Watchdog module ported to Drupal 8 at the Szeged Dev Days.
  • 2014-01-26: My post on the Symfony web profiler in Silex selected in Week of Symfony. w00t !
  • 2013-10-18: My first commit went into MongoDB today. And, guess what ? It's in JavaScript
  • 2013-09-20 to 29: Working on Drupal 8 EntityAPI at the extended code sprints during and around DrupalCon Prague
  • 2012-08-19: Working on Drupal 8 EntityAPI at Drupalcon Munich
  • 2012-06-15: Working on Drupal 8 EntityAPI at DrupalDevDays Barcelona
  • 2012-03-23: Working on the future Drupal Document Oriented Storage at DrupalCon Denver. D8 or later ? Bets are on Later

Force valid HTML with valid_node module

Having non-HTML-skilled contributors input content on a Drupal site seems to often lead to invalid HTML tag soup being input. And even with seasoned coders, a HTML input error happens sometimes, which can be a problem until someone fixes the post.

So I figured I'd force valid HTML from user input, and here is the proof-of-concept valid_node module: it will force any node to be saved as a XHTML fragment.

Drupal admin: the importance of the sequence, redux

Some months ago, I noticed Arnab's blog note about the importance of the sequence table, albeit in a multisite context.

This table also needs special care when copying a drupal site: logically enough, its rows contain the name of the prefixed tables for which a sequence is maintained. For instance, this means that, if you defined the source site as using, say, oldsite_ as a prefix, the name field on the row for the next nid will look like: oldsite_node_nid.

Most popular blog entries

20 most popular entries in this blog, based on data from the statistics module. And, of course, the code to build such a list.

The img_relocator module for Drupal

The problem: IMG elements and relative SRC paths

Is it Web 2.0 enough ?

Since the designer is still on holiday, I created a fake logo for the upcoming OSInet 5.0 site, due this winter, and tried to give it a Web 2.0 look.

Did it work ? Any suggestions to increase the connotations ?

fake web 2.0 logo for OSInet 5.0

Hmmmm....

UPDATE 2006-08-28: for Audean.

fake web 2.0 logo for the Audean wiki

"nested" : a drupal theme without columns

For quite a long time I'd been wishing this blog had an original theme. Not that I dislike Marvin, but I felt it was time to create my own theme, especially after doing work on adding settings to drupal themes.

Since today was bank holiday for the Assumption day, I decided I'd use it to create a theme after one of my pet peeves: white space on web pages.

Dokuwiki vs Google

For some months now, I've been noticing that the Audean wiki, which I use as a live documentation site for various aspects of my sites, appeared comparatively rarely in Google search results, although it was referenced in various places and Google cache info (cache:-prefixed queries) showed the site was indexed.

Now, the Audean Wiki is based on Splitbrain's Dokuwiki very convenient Open Source wiki, which often appears in relation with Drupal for documentation purposes, and it appears there are three problems with a default Dokuwiki installation, which prevent effective search engine optimization:

Here's how to overturn these hurdles.

How to add settings to custom Drupal themes

One feature I used to find missing in Drupal was the builtin ability to have themes include their own settings, like modules do.

For instance, a theme might allow switching renderings on the fly, without needing activation of specific stylesheets, or CSS or code tweaking, just by choosing parameters in an administration UI. But it was impossible. That is, until tonight.

Since a direct implementation in core seemed unlikely to see the day before 4.8/5.0, I created a proof-of-concept module just for this, called "themesettings".

The details and full source are available as a small demo which adds a "background" setting to a variant of the box_grey PHP theme, to define the background color of all nodes on the fly, just by choosing it from admin/themes/settings2/<chosen theme>. To read and download the code involved... :

Grokking drupal: the project module for 4.7.x

The project module is at the heart of drupal.org. Here is a UML model of how it stores its data:

As of Drupal 4.7.3, project.module uses a set of tables in addition to core tables node and users. This UML diagram shows how they are logically related together.

Web sites as graphs

Well, someone had to notice HTML pages were trees and do something visual about it, instead of the same usual "computer science" views of DOM trees. Here is the blog entry that implemented the idea and was overloaded by its success two months ago:

Web sites as graphs, on Aharef

And now for some samples of what hints it can give us about Drupal themes.

Syndicate content