drupal

awesome Drupal Modules for a killer instant site

This is a list of Drupal modules that I try to start with.

monetize

  • adsense
  • adsense injector
  • amazon tools

analyze

  • google analytics
  • nodewords

automate

  • pathauto
  • service links
  • category
  • textile

As you may see, my tool-set is google-centric and my focus is usually on blogging and monetization. Much like this site, you can tell that I like to whore my blog to AdSense, Amazon, and whatever other residual income type things I can cram on the page without looking too tacky. However, tacky is subjective. I strive to make mine the NASCAR of blogs.

How to make a FAQ that has a Table of Contents at the top in Drupal.

The Table of Contents module will make an FAQ for you automagically.

You would think this isn't such a hard thing to do but I had a hell of a time figuring this one out. By default, most people expect you to use Drupal's Book module to create a FAQ that has page-by-page navigation and a menu that lists all the questions.

E.g.

====

  • Why am I here?
  • What is this?
  • Who cares?

Why am I here?

NObody knows.

What is this?

An freakin' FAQ man.

Who cares?

Not you. Not me.

Drupal API for Themeable functions

I had to mess around with Drupal theming a little bit. Overriding theme functions, especially for item lists has been helpful. Once you figure out how to override one function, the others. See the link for the full list of themeable functions.

Link

Configure Drupal on LigHTTPD

Since I use Drupal quite a bit for this website I thought it would be a good idea to setup a test environment for myself so that I can tinker with themes and explore the system some more. Unfortunately Drupal's community documentation is terrible because the support forums get off-topic frequently and the search mechanism they have a wretched search system.

These 2 sets of instructions have been particularly helpful in setting up the environment.

  1. Install Drupal to Ubuntu
  2. Then Configure LigHTTPD fastcgi for Drupal
  3. Remember to (1) restart your Lighttpd server OR (2) run from the command line to get errors and warnings.
    1. sudo /etc/init.d/lighttpd restart
    2. sudo lighttpd -D -f /etc/lighttpd/lighttpd.conf

If you try to run it before step 2 you will get an error because FastCGI isn't configured yet.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /usr/share/drupal/themes/engines/xtemplate/xtemplate.inc on line 42.

Long story short, this chunk of LigHTTPD config that I use that let's me get to drupal on http://localhost/drupal.


var.drupal="/var/www/drupal"
$HTTP["url"]=~"^/drupal" {
        #rails-stuff
        fastcgi.server = (".php" =>
                          ("localhost" =>
                           (
                             "min-procs" => 1,
                             "max-procs" => 2,
                             "socket" => "/tmp/drupal.socket",
                             "bin-path" => "/usr/bin/php4-cgi"
                         )))
}

Syndicate content