Articles

Helvetica, gone

Submitted by bas on Thu, 06/12/2012 - 23:28

As much as a I liked the design by Rob Krijgsman of the Code Culture logo and style, I was never really keen on the use of Helvetica as the body typeset. Reading this smashing article convinced me to make some changes to the typography of the site. Helvetica seems really stern, and I could really do with a slightly more vivid font. A sans-serif which has a serious tone but which is less formal than Helvetica.

Drupal Association Membership

Submitted by bas on Sun, 25/09/2011 - 13:27

Thanks to this tweet by webchick, I enrolled for a Drupal Association membership.

Drupal 7 upgrade

Submitted by bas on Sun, 29/05/2011 - 01:43

I just finished the update to Drupal 7 for this website. Well, finished, it's a work in progress. Let's say I struggled my way to were the site's now. And it's been a bumpy road. I've played a bit with the betas, the release candidates and the first stable release. But this upgrade is the first truly in depth experience I've had with D7. My impression? The user experience is a lot smoother than it was in previous incarnations of my favorite CMS. However, there is a lot of work to be done still. And the upgrade path is far from smooth.

Joomla-dagen 2010

Submitted by bas on Mon, 01/02/2010 - 17:06

I'll be attending the Dutch Joomla Days. This year the event takes place on 23rd and 24th of April in Utrecht.
Joomla!dagen Nederland, 23 en 24 April 2010, Utrecht

HTML style guide

Submitted by bas on Wed, 16/09/2009 - 14:49

When designing websites graphic designers often draw a neat picture in photoshop. The day to day use of a website greatly differs from this ideal scenario. The design shows a calm and readable site with demo text. But the actual website in use everything but serene and readable. The text style is usually the first aspect of a site that gets diluted. Both users and visitors create content or leave comments which just don't fit the initial picture painted by the designer. A lot of problems stem from the use of wysiwyg editors in content management systems.

JRoute and module visibility

Submitted by bas on Sat, 12/09/2009 - 20:04

Correct SEF routing in Joomla is pretty easy thanks to the class JRoute. If you want to redirect to a clean url just use the basic method _(); like so:

JRoute::_('index.php?option=com_example&task=view');

Unfortunately, this method isn't aware of url aliases created in menu items. JRoute just alters a dirty url like /index.php?option=com_example&task=view in a clean url like /components/example/view. Let's say you've created menu item to this components task with the alias: /view-example. JRoute doesn't redirect to the alias, just to the cleaned up system url. This is a problem because menu items are essential if you want to define page parameters or module visibility. These parameters are only visible if the url matches exactly. If you want to create redirects to url aliases in your Joomla modules or components you can try the following snippet.

$menu =& JSite::getMenu();
$menu_items = $menu->_items;
foreach($menu_items as $item) {
    $match = 0;
    if($item->query['option'] == 'com_example')    $match = $match+1;
    if($item->query['task'] == 'view') $match = $match+1;
 
    $matches[$match] = $item->route;
}
if(key_exists(1, $matches)) {
    array_shift($matches);
    array_reverse($matches, false);
 
    $action_url = JRoute::_(JUri::base(true).'/'.$matches[0]);
}

This will create a path to a single alias created in a menu item if a matching menu item exists. You can also do this for other components by specifying the match criteria. For example:

Related nodes and custom breadcrumbs

Submitted by bas on Fri, 21/08/2009 - 17:38

Sometimes, having an easy to use CMS like Drupal or Joomla is just one more excuse to keep on tweaking. Just now I added a related nodes block to the article and project pages. Let's say I write an article like this and I tag it drupal. A couple other articles on the same topic are shown in a block in the right column. Hard to do? I don't think so! Just use the views module an some view arguments, like so.

Further tweaks

Submitted by bas on Sat, 15/08/2009 - 02:49

Codeculture.nl just got a bit better. The site was (and still is) in dire need of some tweaks to the interface. There were a couple of problems that needed addressing:

  1. I wasn't happy at all with the placement of the search box, it just took too much space and broke the flow of the first lines on the front page. Also I wanted to include the search box on every page and remove the search option from the main menu.
  2. The breadcrumbs looked dull and were hard to read on the striped background under the header.
  3. I started colour coding the pages with a simple rotator, so you get a fresh look if you refresh the page. However I didn't fully implement this. In the near future I'll probably dump the rotator and use the colour codes to brand specific pages.
  4. I found the main menu font colour to be a little too light. Click stats affirm this.
  5. There were some very serious cross browser issues (well, IE issues really, but let's be kind on microsoft for a change). There still are some problems especially with IE7, but at least the site functions properly on all major browsers.
  6. The project thumbnails on both the project gallery and the project nodes were inconsistent and badly delineated.

SEO and performance

Submitted by bas on Tue, 21/07/2009 - 15:46

Discussions on Drupal site optimisation are usually technical discussions. But many a time they boil down to philosophical discussions. Search engine optimisation (SEO) and performance tweaks aren't necessarily good for the manageability of your site or for your potential visitors. I ran across a couple of these dilemmas in recent days while trying to optimise my own site.

Business cards

Submitted by bas on Sun, 28/06/2009 - 01:29

Business card front, back in rolloverLast week I got my new business cards. The folks at Zalsman did a great job printing the range of colours carefully selected by Rob Krijgsman.

Pages