Showing posts with label Drupal 6. Show all posts
Showing posts with label Drupal 6. Show all posts

Friday, January 2, 2009

Drupal Administration theme 1.0 released for Drupal 5 and 6

The Drupal 5 version gives you the possibility to use the administration theme when editing posts. This feature was introduced in Drupal 6 core and is with this module now available in Drupal 5.

Use the administration theme on more pages then possible with Drupal 5 or Drupal 6 core. You can allow the theme on a predefined set of pages and on a custom set of pages. The inverse is also possible: specifying a set of custom pages on which you don't want to use the theme. An example of this might be that you want to use the administration theme (all pages having a path starting with "admin" (admin/*)) but not on "admin/content/node".

Hooks! All modules can now add some pages to the administration theme settings page using the hook_admin_theme hook. By doing so you give inexperienced users the possibility to just tick a checkbox to use the administration theme.

A permission is introduced to allow or disallow certain users to use the administration theme.

Read More..

Tuesday, December 9, 2008

Drupal: Making Life Easier with Installation Profiles

This is the first in a series of blog posts we'll be writing about Drupal, the open-source Web content management platform that I have come to know and love over the past year or so. If you have used Drupal, if you are evaluating different CMS solutions out there, or if you don't know what I'm talking about, read on and keep checking back for more posts about this popular and powerful community-driven software.

For this first post, I will skip over the question "What is Drupal?" and let you visit drupal.org to get some basic information for yourself. Once you have that, come on back...

OK. You're back. Let's get started.

So, what's the first thing you do with software? You install it. Right! This process for Drupal has a few requirements, which I will gloss over in this post, but if you've run any LAMP-based software, you should be good to go (see "Helpful Links" below). Now, whether you're new to Drupal or you've gone thru the installation process many (MANY) times, you should know that Drupal has a very helpful aspect built right into its core: Installation Profiles.

An installation profile "turns on" functionality and pre-configures a Drupal installation so that, instead of starting with a blank slate after install, you have a customized installation tailored to your needs and closer to being production-ready. For a developer, this is an ideal scenario - installation profiles help us eliminate redundancy in our work. Because, really, who wants to do the same ten or twenty tasks every time you start a new project? I sure as heck don't. Also, for a Drupal newcomer (welcome!), finding an installation profile can be helpful to jump-start your site.

Drupal has a directory of contributed installation profiles here. You may find a helpful profile in this list that fits the kind of site you want to build. However, if you don't find the perfect profile, or if you find one that's good but outdated, don't despair! Look for a similar profile, or go ahead and download the outdated one. Install Drupal using that profile, play around with it, and look at the list of modules used. From that pre-configured site, even if you don't end up keeping the installation, you will have an idea of the settings and modules you will want to use on your actual site.

Read More...

Friday, November 28, 2008

Updating Drupal 5 Modules to Drupal 6

About 5 months ago I was worried when the department I was working with in NYC was getting ready to migrate sites from Drupal 5 to Drupal 6. I had started working with Drupal during the late 4.6 days but wasn't really a developer until a few months into Drupal 5. Even then I was making beginner mistakes of hackng modules (but not core) to get my desired results.

Fast Forward 1 year and a few months, after hours of reading other people code, blog post, going to DrupalCamps, DrupalCons, and Lullabot trainings, I finally feel comfortable developing in Drupal 5. Of course this is all in relativity, you have modules like Views and Panels which remind you there is so much more to learn.

I moved onto a new position here in San Francisco right before major migrations started at the other company. I'm thinking "Phew, saved my ass from having to do that, more Drupal 5 sites here I come." But sure enough, after a few months the overwhelming power of Drupal 6 came along and of course this new platform I'm working with is needing to be upgraded.

Because the Drupal community is so awesome (understatement), a majority of contrib modules have already been migrated. We're basically building the platform from the ground up and eventually migrating old sites to the new platform when all custom pieces are in place and well tested. Till then we're able to release new sites based on Drupal 6 that aren't dependent on all features from the previous platform. The flexibility of this is great for numerous reasons and the person streamlining this process has done a great job of laying out the groundwork to build upon.

Custom modules appear to be the only things we needed to migrate to D6. It finally felt like enough time had been provided to learn the major changes that effect modules from D5 to D6. Well, it appears not much time was needed at all. With the assistance of Coder module, I began seeing a pattern of; change hook_menu, fix l() and url(), use menu_get_object(), hook_form_alter() with $form_states. I'm sure there's plenty more but these appeared to be most common.

So i'm gaining confidence in the types of changes being made using Coder for module upgrades. I've heard of a module called Deadwood that will do most of these changes automatically. After dropping a Drupal 5 module into a deadwood folder in the files directory clicking a few buttons a Drupal 6 module would magically appear in a goodwood folder. This worked great, the easy stuff that I was accustomed to was getting done and I would spend a just little more time using Coder to catch some things that were missed.

Read More..

Thursday, November 27, 2008

Getting my hands on Drupal

If you happened to visit CodeTRAX, my (at the moment) personal software publishing spot, during the last two months, you would have noticed that I’ve started using Drupal on that website. My alternative options had been WordPress and a custom CMS based on Django, but I finally rejected both and I am glad I did so. Although I like WordPress, which I proudly use on G-Loaded, it cannot be compared to the flexibility and maturity of Drupal. I am sure it will get there some day, but there are many things that need to be changed in the organization of this project until it becomes as serious as Drupal is.

On the other hand, after trying Django for about 2-3 days during the last summer, I realized that this is far from what I was actually looking for. I recall that at some point I had felt like trying to re-invent the wheel. Well, Django is not a CMS. It’s a framework. I should have known better! CodeTRAX is not just about content. It is about the integration of different software: a CMS, bug trackers for projects, project wikis, download center, notification system, community-based support forums, statistics. In order to build all this around an open source CMS you need the best available open source CMS; and I think this is Drupal.

Read More..

Tuesday, November 18, 2008

Drupal 6 vs. Drupal 5

Drupal 6 is stable and it has a lot of great features that aren't available in Drupal 5. The only reason I would use Drupal 5 for a new site is if using a module that were only available for Drupal 5. Ubercart is one that comes to mind. (I haven't used Ubercart, but it was recommended to me as the ideal way to to ecommerce in Drupal.)

Drupal 6 is great. There's no reason not to use it except if there is a module that isn't available yet. I can't think of any modules that I use on a regular basis that aren't available for Drupal 6.

Drupal 6 gives you things like:

More AJAX - you can drag & drop things to order them instead of setting weights by numbers in select boxes.
Views 2 - this version of the Views module is incredible, and only available for Drupal 6.
Trigger and Actions - built in.
Status updates - Drupal 6 emails you when new versions of your installed modules are available.
and much more...

Read More..