Since my previous pair of drupal shoes were a bit worn out (normal after wearing them for a year non-stop). I started designing a new pair: another model, a different accent color.
Yesterday I was installing a server. I needed a stack to run drupal on top of Ubuntu. Lately I have been playing with NGINX, php-fpm and MariaDB. And since Oracle took over mysql, I wanted to use the more "opensource" version of it, being MariaDB.(By the way, drupal.org is also using MariaDB)
As so many, I became a proud iPhone 4 user back in March. I really enjoy this smartphone instead of a normal phone. There's so much more you can do, and the device works well.
Then iOS5 was released on the 12th of October. As I couldn't wait to get my hands on it, to see all those new features, I installed it that evening. I was lucky not to encounter any problem during the upgrade process. The OS was upgraded and everything got recovered without a single error. So far, so good.
When working on a site, there was a feature that enabled a new content type with certain fields. Apparently there was no need for a body field on the content type. I recreated the feature, but when deploying this feature, it will not remove the body field, as this could mean a loss of data.
I had to make use of hook_update to remove the field. Since it was a drupal 7 site, this means using the Field API. But in order to do this programmatically, you first need to understand the terminology.
I suppose you read my blog post on custom RSS feeds. I wanted to give a small update, as the solution described there was not sufficient. In the end I needed to output an XML file and every item had to be in the same format. As I was outputting the last node for three different content types, I needed to do some custom coding. The node_feed function was not the ideal solution.
I ended up making my own node_feed function. Here's the code:
I saw this movie yesterday. To my opinion it is a great video trying to describe what motivates people and also giving an explanation as to why opensource software and opensource communities are so great!
Last week I went to the drupal government days. On thursday I was able to have a quick chat with Dries. And apparently my friend Nektarios Sylligardakis took a picture of it. Thanks!
For a client I needed to make an RSS feed with the latest item of three content types. The feed needed to contain three items: one for each of the three chosen content types.
I was first thinking about using views, to make a selection and then make a feed display. But it's impossible to make union queries in views 2. I was able to make a display containing the three content types, limiting it to three items and sort the list on post date descending. But that didn't guarantee me to have an item for each content type.