While the summer is coming to an end the last of the VvAA summer campaigns are being launched. Within the span of a mere 2 weeks we've deployed this site designed by CoR. The site consists of a lot of custom styling. Especially in the various modal boxes. Although the amount of different pages is limited it's been a bit of a challenge to both grant the editors the maintainability they need and have all this custom styling within the site.
Thanks to this tweet by webchick, I enrolled for a Drupal Association membership.
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.
Early 2010 I've redesigned the templates of the Flevoziekenhuis. The old templates really needed an update. This assignment was granted very late in the process of introducing the new corporate identity. The Flevoziekenhuis hospital building was already decorated with the new logo. And print communications and other media outings were already branded according to the new style designed by Different View.
The Independent Brokers Group is a large collective of real estate agents. Three of those agents asked 2Value to build their new website:
Harm Henstra is a coach and interim manager based in Haarlem. He needed a small, straightforward website to present himself and his services. So rapidly I put up a new Joomla installation. After a short planning meeting Harm wrote most of the content in his new website. I structured it and filled the site. We jointly choose a stock template and I adapted the colours and feel to his corporate identity. Next, we put up the "pawn" images and portraits to finish the global layout.
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.
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:
2Value is a network organisation. In this organisation I am among a growing number of associates who create high quality open source software solutions for the web. The network character is one of the great strengths of such a company. However, you need a set of effective procedures and collaborative tools for such an organisation to work effectively. In the last couple of months I worked on implementing Subversion and localised environments in 2Value.