I rarely do any heavy structural changes to node edit pages, so until today I hadn't ever had a reason to disable vertical tabs on a specific content type, but there's a first time for everything.
Now there are people who recommend turning it off by editing the $conf variable in the settings.php file... however, this is not an option on this particular site since it is running on Aegir, which automatically rewrites the settings.php file. So I had to find another way. I took a look at the vertical tabs code and came up with an easy solution.
Every once in a while you run into a problem that forces you to either dig in and learn more than you really had the intention of learning, or return the client's down payment. I ran into such a situation recently with an odd Drupal multisite installation.
Drupal handles multisite installs by routing to the folder in the sites directory which has the name of the site in question. So test.pixelcever.com would run off of the settings.php file located in sites/test.pixelclever.com.
This tutorial starts with a situation that can easily occur if you are taking over an existing website from a different developer, and for one reason or another you need to move the site off of the old svn account and on to another one that you or the client control.
There are obviously many ways to achieve this goal, but this is the method that I prefer.
To start open a terminal prompt (or a cywin prompt if you are using Windows) and navigate to the working copy on you local computer. Once in the correct folder type the following command and hit enter:
I spent several hours banging my head up against the wall looking for a solution to the missing images on the Ubercart catalog and the checkout cart section. I searched and I searched and on google I found scores of other frustrated developers who had run into the same problem, but I didn't find any solution posted. It turns out that the actual solution is very simple, but downright unintuitive.
As of the date of this writing views 2 for Drupal does not have a canned method of accepting multiple arguments that are CCK fields. The case where this came up for me was in a CCK select field that had dynamically generated options (created through php). The options were years, and the user was allowed to chose multiple years. How then, can one set a view to dynamically filter for content that had been marked with at least one of the years sent in the argument?
When you want to create a list of years as a select field in CCK ranging from some set date in the past to the current date you have a couple of options. The first option would be to go through and manually enter every year from that date to present. This may be ok if you only are working with a date range of 3 or 4 years, but what if you want to list the years since the 1800s. Obviously that list would be painful to make, and what's worse you would have to make sure the site was updated every year by someone competent enough not to destroy the information.
There seems to be some debate as to whether there is an actual SEO penalty to using spaces or the encoded %20 in urls. I've spent some time researching the matter and I wasn't able to come away with any conclusive evidence one way or the other. However, when a client wants a site with no spaces or %20 in the urls that is in itself a deciding factor.
Apparently my client and I aren't the only ones that ran into this problem, and perhaps I wasn't the only one to come up with this solution, but I didn't find it posted anywhere else on the internet, so I am going to post it here.
There are two stages of understanding needed in order to create a template file for a form in a Zen subtheme. The first level in my opinion is to understand how to achieve that same result in a normal theme.
In a normal theme all we need to know in order to create a working tpl (template file) for a form is the form id in question and the format to connect that form to the tpl from within the template.php file.
This document is intended for module developers who wish to make use of JQuery to process an array of hierarchical data into a click and expand menu. It is written with the assumption that you are a programmer and that you know how to create multidimensional arrays through recursive functions.
The only function that third party modules need to call from JQuery menu in order to create a click and expand menu is as follows:
This calls the theme function menu_creation_by_array() and sends it two arguments:
The Views module for Drupal 6 (also known as Views 2) ships with several default views which allow you to override certain Drupal core list pages. One of the most useful of these views is the view provided for taxonomy term list. Just recently I decided to set up views to override my taxonomy pages so that they would show children terms, but when I jumped into the Views 2 interface and tried to actually do it I was left a little perplexed; if you are reading this page you probably were too.