Recent ramblings... on Development

 
 
 

Sublime Text PlainTasks Tomorrow Night Theme

Sublime text is my go to text editor, I probably spend 90% of my day coding something in it and because of that I need a theme that will not increase eyestrain. The main theme I use is the popular pheonix tomorrow night dark theme which has some nice gentle font colours on a dark background.

I also like to manage my tasks in the plainTasks package, it's extreme popular and allows for some simple task management and tagging, the only problem is the default theme is bright yellow, which makes makes switching between a dark theme to yellow one a little unpleasant.

 
 

Get the subpages of a node in Drupal 7

Recently I have been doing a lot a Drupal 7 development for a new project, this project required quite a bit a custom programming to achieve the functionality that was needed.

I wanted a function that would pull out all of the menu items when a certain page or node template is called. A lot of seasoned Drupal developers first choice would be to use a module called Views to pull out the data but because I needed editable text (for the client to access easily) and images it was not going to be an option.

 
 

Get the current menu level for in Drupal 7

As part of a big Drupal 7 development I needed the ability to find out the level a node (page) is on a menu tree, Drupal doesn't associate a node in menu trees by default so it can't be queried from the page or node variables.

this function will identify the menu position based on the active trail flag in the given menu, just add the function to your template.php file and include the machine name of the menu that you want to query as the first parameter.

 
 

Flexible themes and layouts in CodeIginter

I still love CodeIgniter, the simplicity and robust core keeps me coming back even if it has fallen out of favour with the web community recently (I'm not going to get into that right now) but there has always been a few libraries that I felt were missing, a decent Auth library for one, but also a nicer way of dealing with views, layouts and themes. I can of course understand the reasons for leaving them out as both are not an every day need but I alway seem get to a road block in my projects where I suddenly have a need for them, especially the layout library.

 
 

Making the most of GIT with Tower

GIT by itself is an excellent tool, its version control done right, with awesome branching and tagging capabilities that allows you to make a workflow that your whole team can use. Check out my post on the reasons why we switched from SVN to GIT and haven't looked back. Unfortunately with all the great features that GIT brings there is a bit of a downside, how do you keep track of your working HEAD and those branches?