Drupal 6 Tutorials

These are just my own notes—not intended as quality technical writing. If you find errors or omissions, please let me know. I'll fix! — David

To set up your own front page:

  1. Create your preferred front page. (Create content > Page).
  2. Click Publishing Options; select Promoted to front page.

To set up things like window title, mission, slogan, etc. (stuff that shows on front page):

  1. Go to Home > Administer > Site configuration
  2. Make changes to Slogan, Mission, Footer, etc.
  3. Save

How to set up a menu in the left sidebar:

  1. Imagine you want to have Mars Characters, Mars History, Interesting Mars Links in the left sidebar.
  2. First, create those three pages. When you do, enter both Title and Menu link title (click Menu settings to get this). You won't be able to set the menu yet. Very useful to have Automatic alias checked (under URL path settings) which you get by installing Pathauto.
  3. Next, create a menu called Mars Main Links. Remember that Menu name is techie: Instead of Mars Main Links, use mars-main-links. Enter that and a Title. (Description not necessary?)
  4. Now go back to your three pages and associate each with Mars Main Links. Use the weight numbers to establish their vertical sequence.
  5. To get the Mars Main Links on the Drupal interface, click Blocks. Scroll down to Mars Main Links. For example, select left sidebar. You would think you'd need to setting visibility but apparently not. Also, there should be a way to vertically sequence the blocks in the left sidebar. Don't know how.

How to enable rich-text editing:

To enable rich-text editor, specifically NicEdit, you first have to install a module called Wysiwyg:

  1. Go to Home > Administer > Site building > Modules and click the link to contributed modules.
  2. Scroll down and click on the title Wysiwyg.
  3. Scroll down and under Recommended releases, select and download version 6.x-2.1.
  4. Go to cPanel > File Manager > /public_html/drupal/sites/all/modules (you may have create these directories).
  5. Upload the wysiwyg file to that directory (/public_html/drupal/sites/all/modules).
  6. Select that file and click Extract. It should create a wysiwyg folder, which should be located in /public_html/drupal/sites/all/modules.
  7. Now go to Home > Administer > Site building > Modules, and click update.php. Take all the defaults.
  8. (I'm not sure about this step; may need to skip) In Home > Administer > Site building, select Wysiwyg to enable it, and click Save Configuration.

If you get Wysiwyg enabled, next you download NicEdit, upload and install:

  1. Now go to Home > Administer > Site configuration; click Installation instructions to see the list of editors.
  2. Choose NicEdit -- note very carefully that you are to extract it to public_html/drupal/sites/all/libraries/nicedit.
  3. As necessary, create these folders in justhost.
  4. Download NicEdit and then upload it to public_html/drupal/sites/all/libraries/nicedit/.
  5. Select NicEdit and click Extract. Just a few files, most importantly nicedit.js and the .gif file, should appear in public_html/drupal/sites/all/libraries/nicedit/.
  6. Now go to Home > Administer > Site building > Modules, and click update.php. Take all the defaults.
  7. Click Home > Administer > Site configuration > Wysiwyg. Click Wysiwyg.
  8. Select NicEdit for both Full HTML and Save (I don't know what the point of Filtered HTML is.)
  9. Try it out: click Create content and select Page. You should see the NicEdit icons. To enable all that nice formatting, click Input format (below the input box) and select Full HTML.

How to set up automatic aliasing with Pathauto:

Note: This is another one that is so necessary I can't imagine doing Drupal without it.

Extract this module to the sites/all/modules/pathauto, update Drupal, and then enable it. No other configuration needed. To test, start creating a page and scroll down to and click on URL path settings. You should see Automatic alias with a checkmark. When you have finished creating the page, come back and take a look at the Automatic alias name.

How to create customized content types:

I had not understood the value of this when I read Feiler's discusion. In case you don't either, consider the blanks and boxes in the Page or Story content type. What if you wanted a custom content type called Resume that would have headings like Summary, Experience, Education, etc., each with its own input box? That's what you'd use the contributed module called Content Construction Kit (CCK) for.

  1. Go to Home Administer > Site building > contributed modules.
  2. Download CCK. Make sure you get ones recommended for Drupal 6.
  3. Log in to your justhost account.
  4. Use File Manager to go to drupal/sites/all/modules (recommended area for CCK).
  5. Upload the tar.gz or .zip file to all/modules/ (You may have to create the modules folder.)
  6. Select the tar.gz or zip file and click Extract All CCK files will be stored in the subfolder cck.
  7. To enable, go to Home > Administer > Site building, and click on update.php in the text.
  8. Back in Home > Administer > Site building, you should see CCK in the list. Check to enable iti and click Save configuration.
  9. To create a new content type, go to Home > Administer > Content management > Content types and click Add content type.

    Note: I have not created one of these yet. Looks like you have to create fields and pull them into your new content type.

How to create an ordinary user:

To manually create a new user:

  1. Go to Home > Administer > User Management > Users.
  2. Click Add user.
  3. Fill everything out, supplying an e-mail and checkmarking Notify user of new account. Click Create new account.
  4. You've probably created an authenticated user, so go to Home > Administer > User Management > Permissions. You'll probably want this type of user, in addition to the default permissions, to have the following enables: create page/story content, delete own page/story content, edit own page/story content. I don't know what revert revisions or view revisions are, but they sound like something this type of user needs as well.

Lots of questions here: My new user can create a page or story, but I see nowhere that user can go back and edit that page or story. Nor does that user have any means of associating the page or story with an existing menu. Okay, in Permissions, click Administer menu. And if you really want to have a happening, site click Administer blocks!

To enable new users to create their own accounts:

I believe the default setup is that users can request an account and that you get e-mail that enables you to approve the request. You can choose to let users create accounts without our approval. To see the options, go to Home > Administer > User Management > User settings.

How to enable comments:

  1. First, you need to enable this module: Home > Administer > Site building > Modules. (You don't have to download it.)
  2. Next, you enable permissions for commenting, except perhaps for the administer comments option.
  3. Owners of individual nodes will have to enable commenting for their pages. Go to a node you own, edit it, click Comment settings, and select Read/Write, for example. (I don't know if there is a site-wide way of enabling comments on all nodes.)
  4. When a would-be commenter goes to a page, story, whatever to make a ckmebt, an Add new comment button will be visible.
  5. Notice that as admin, you can delete or unpublish comments. Go to Home > Administer > Content management > Comments.

How to set up for blogs:

coming soon . . .

How to set up forums:

Actually, disregard everything you see below on forums. I simply cannot get my head around this function. I get this far: you create a forum topic, for example, should Mars be terraformed? To participate in that discussion, users add comments. I see no way to provide a link to this forum on the main page. I got totally upside down this way with menus and blocks.

  1. First, you need to enable this module: Home > Administer > Site building > Modules. (You don't have to download it.) Check Forum and click Save configuration.
  2. Go to Home > Administer > Content management > Forum.
  3. Click Add forum and fill out the form. (Containers are groupings of forums.)
  4. However, I am stumped: how do I get the forum over in the left sidebar?

How to set up an opinion poll:

  1. First, you need to enable this module: Home > Administer > Site building > Modules. (You don't have to download it.) Check Poll and click Save configuration.
  2. GNext, go to Home > Administer > User management > Poll module, and for authenticated users, check vote on polls, cancel own vote, inspect all polls; create poll content, cancel, delete,, edit own poll content; cancel, delete, edit any poll content. (This last one for any is surprising.
  3. As usual, Feiler provides no clue as to modifying poll settings: go to Home > Administer > Content management > Poll. Here isc where, if necessary, you can ensure your poll will appear on the front page.
  4. To create a poll, go to Home > Create content > Poll.
  5. Create a poll by entering a question (Do you favor terraforming Mars?), the choices (yes/no), making sure its status is active, and under Publishing options, click all the options. Ooops, also indicate a Parent item; I have a left sidebar block called Mars Main Links so I put it in that block. (Maybe this is what I need to do with forums!)

I was crazy-happy how easy this was!!!!

How to set up a calendar:

coming soon . . .

Information and programs provided by hcexres@prismnet.com