5.x

Drupal Strikes Again

Finally the Beta of Mums+, the community site for parents, is live. I finished off the spit and polish today. Some way to spend a public holiday!

Anyway, if you're curious take a look:
http://www.mumsplus.com

The Beta version is focussed around the Stoke Newington area of North London, but if it is a success the idea is to branch out using Drupal's multi-site capabilities, or perhaps db_rewrite, and create area-by-area sub-domains. Hope it works. Both myself and my friend Liz have put in a lot of effort thus far.

SOA And Drupal - The Services Module

So, you want to create an SOA-based infrastructure for some or all of your business tools and web sites? Not sure where to start?

I'll admit I have worked a little with Microsoft web services, but I am fairly ignorant of the open source alternatives out there for SOA. What I can tell you is I'm hugely impressed with the new Services module for Drupal. It is still in dev, but it's pretty cool!

Stop Searching

There are times when you don't want people to search for specific content types. For example, you may not want to be obliged to theme a content type which is not supposed to be visible anyway, just in case it surfaces in a search. Or there may be a content type which you specifically do *not* want people to be able to search on.

There are two ways to skin this cat, that I know of at least:

Views Dependencies

I found an interesting "gotcha" the other day. I created a View with the Views module, exported it to code and was in the process of trying to make it appear on my website. Something it was resolutely refusing to do. I couldn't understand it. Clearly there was the View in my code. I'd cleared caches, run the update, uninstalled and reinstalled my module, even restarted Apache. Nothing!

Then I noticed this line:

<?php
  $view
->requires = array(node, node_data_field_media_embedded_video, image, node_data_field_mp3);
?>

Final Version of Views for 5.x Has Taxonomy Issues

The other day I decided to use the "Terms in XXXXX" taxonomy filter type in Views 5.x-1.6 and I noticed a little bit of a problem. In my list of taxonomy terms, the first/lightest term was missing so I couldn't select it. This was the same when the filter was exposed. Since I was using it on WhatTalent.com to allow people to select a community to view media from, it was a real problem!

Flexiforum Released

I have created a project page on Drupal.org for Ben's module, Flexiforum:
http://drupal.org/project/flexiforum

It's a great little alternative to the core forum which I sincerely hope will go from strength to strength. Please do download it and try it out. It should work with BBCode and Node Comments as well as supporting forum search and reply with quote - neat features. =)

Duplicate Keys: Repairing The Sequences Table

So normal service resumes. Well, just about, at any rate.

Just a quick entry today about the 'sequences' table in the Drupal database. If you've ever seen this sort of error and not known what to do, then you'll find this post extremely useful:

Duplicate entry '4' for key

Form Redirection: A Special Case

Most of you are probably familiar with using the Form API (either via hook_form_alter or when building your own form) to set the destination a user is sent to after submitting a form.

<?php
function mymodule_form_alter($form_id, &$form) {
  if (
$form_id == 'page_node_form') {
   
$form['#redirect'] = 'my/new/page';
  }
}
?>

This usually works, but today I came across a special case.

What if you want to redirect users back to the referring page after they submit a new node? Sounds simple enough, right? You'd probably do something like this:

<?php

Syndicate content