-
Magento tip: Number of products in category, subcategories of a store
I had need today of counting the total number of products in a category and all its subcategories in one of the magento stores that New Internationalist runs. It took a little while to write the code so I am putting it out there in case anyone else has the same problem. Most probably my future self. …
- On:
-
Stop MediaWiki thinking that a .ppt is a .doc
New Internationalist, along with teacher friends Linda Ruas and John Shepheard runs an Easier English wiki, which provides simplified versions of many of the stories from New Internationalist magazine. We are just running MediaWiki, nothing fancy. A few weeks ago after upgrading MediaWiki we hit …
- On:
-
UK Postcode Lookup — My First Drupal7 Module
Update 2012-02-26 I updated this module in a few ways. It now uses the Drupal presave hook rather than the form_alter hook -- meaning that if there is a postcode and no lat/long it will always look up your postcode. That is a much better way to do it in my opinion. I’ve also changed the defau …
- On:
-
My Drupal Life Aggregator
I have a slightly unhealthy obsession with RSS. Its just simple enough that you can make something in an evening. But just complex enough that the thing could potentially be a bit interesting. So, I set out to learn a bit more about Drupal, especially about theming it. I wan …
- On: