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 ?
Hmmmm....
UPDATE 2006-08-28: for Audean.
"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.
Data Model for Drupal 4.7 core
Wouldn't you like a diagram of Drupal 4.7 with complete data types and referential integrity constraints ? Here's one.