2. Using LiteJazz on Your Site

The following sections describe how to use the features of the LiteJazz on your Drupal site.

2.1. Using LiteJazz Regions

LiteJazz provides 12 regions that you can publish blocks to (along with a region for the Suckerfish menu.) The LiteJazz Regions Page shows each of the available regions. Looking at this page will give you a feel for where the regions are in relation to the one another.

The Basics

First, let's get the terminology down. A Drupal page typically includes a Content area and, optionally, one or more Blocks, which are published to Regions.

The Content area is the main part of the page, and is made up of Nodes. A node can be a story, a blog post, a forum post, or a custom node type. For the most part, Drupal manages the Content area, and you direct it using the Drupal administion menus.

A Region is essentially a physical place on the page. For example, a left sidebar region might be provided to display something to the left of the Content area. Regions are provided by the theme, and different themes will provide a different selection of regions.

Tapestry Regions

A Block is a piece of content. Blocks can have a title and body text. In order to display a Block on your site, you publish it to a Region. In selecting a Region for a particular Block, you are determining where on the page that Block will be displayed.

Collapsible Regions

LiteJazz Regions are grouped into collapsible sections. The User1, User2, and User3 regions are the blocks below the masthead. We collectively call these three regions Section1. Similarly, User4, User5, and User6 make up Section2.

In order to display a Section, simply publish a block to one of the User Regions in that Section. If you publish to only one User Region in a Section, that Region will fill the width of the page. Publish to two or to all three User Regions in a Section, and the Regions will split the horizontal space accordingly.

Similarly, if you publish content to the Outside, Left or Right Sidebars, they will appear. Publish nothing to one of the sidebars and it collapses out of sight. And the same applies to the Banner Region below the Masthead.

If you publish nothing to one of the sidebars, the main Content area will grow to fill the horizontal space normally taken by the sidebar. Publish to none of the sidebars and the main Content area will fill the width of the page.

A region will stretch vertically as much as necessary to display the content you publish to it. You can publish as many blocks to an individual region as you want. When you publish more than one block to a region, the blocks are stacked vertically atop one another. You can determine the order that blocks appear within a region by configuring the Weight of each block.


2.2. Using The Primary Links Menu

LiteJazz displays a primary navigation menu below the mastehead. This menu can either be a two-level static menu or a suckerfish drop-down menu. This section describes how to configure the two-level static menus. Suckerfish drop-down menus are described in the next section.

Primary Links MenuLiteJazz displays the Primary Links menu at the top right of the content portion of the page, just below the masthead.

You can designate any Drupal menu(s) as your primary and secondary links menus. A standard Drupal installation will come with a menu named Primary links, but you can select another menu to act as your sites Primary Links.

Primary Links Settings
You can crate a new menu by clicking on the Add menu tab of the admin/build/menu page, or you can add and delete items from an existing menu to get the structure you want.

Once you've got your menu and menu items created, you need to tell Drupal that this will be the Primary Links menu. By pointing your browser to /yoursite/admin/build/menu/settings, you will have an opportunity to designate your Primary Links menu. Select your menu from the Menu containing primary links dropdown, and then click the Save configuration button.

Your new menu should appear immediately. You don't need to publish your new Prinary Links menu to a region. As long as you've designated a menu to provide the Prinary Links for your site, LiteJazz will display it.

The LiteJazz Primary and Secondary Links menus are designed to present a single horizontal row of top-level menu items. If you publish a menu that has too many top-level items to fit in one row, you're not likely to get the behavior you expect.


2.3. Using Suckerfish Menus

Suckerfish Menu

Suckerfish Menu AdminLiteJazz has son-of-suckerfish menus integrated into the theme. Using this feature, you can create a standard Drupal menu and present it as a dynamic drop-down menu that is compatible with most browsers.

LiteJazz provides a region called suckerfish menu. If you publish a standard Drupal menu in this region, it will be displayed as a suckerfish drop-down menu. However, there are a few things you need to do in order for everything to work correctly.

To start with, you'll need a menu. You can create a new menu in Drupal by pointing your browser to /yoursite/admin/build/menu and clicking on the Add Menu tab. After creating a menu, you'll want to add your menu items one at a time by clicking on the Add Item link and entering the item information. Use the Parent Item selection box to organize your menu items into the desired structure.

It is very important that all Parent Menu Items in a suckerfish menu have the Expanded checkbox enabled. This option instructs Drupal to generate HTML code for the entire menu structure. If you do not enable this feature for a particular parent menu item, you will not see its child menu items.

Suckerfish Menu EditOnce you've create a menu and enabled the Expanded option for all parent menu items, you can publish the menu to the suckerfish region. Point your browser to /yoursite/admin/build/block and select the suckerfish menu region from the selection box next to your menu block name. Then click the Save Blocks button.

The LiteJazz suckerfish menu is designed to present a single horizontal row of top-level menu items. If you publish a menu that has too many top-level items to fit in one row, you're not likely to get the behavior you expect.



Important! Internet Explorer 6 has a bug related to the CSS hover attribute that prevents pure CSS suckerfish menus from working correctly. LiteJazz provides a javascript file that will work around this problem and allow suckerfish menus to work correctly in IE. If you want to use this feature, you must enable the 'Enable Suckerfish Javascript for IE6' checkbox on the theme settings page. If you do not enable this option, suckerfish menus will not work in IE6.

2.3.1. Adding Admin Options to the Suckerfish Menu

A standard Drupal installation comes with a default menu named Navigation. Within the Navigation menu is a nested sub-menu of Drupal configuration options named Administer. Only site administrators will see the Administer menu.

The Navigation menu is usually displayed in a sidebar. By moving the Administer menu to the suckerfish menu region, you can gain easy multi-level drop-down menu access to common administration tasks.

Suckerfish Admin Menu
There are two ways to do this. If you want to move the entire Navigation menu structure to the suckerfish menu area, you can point your browser to /yoursite/admin/build/block and change the region of the Navigation menu to suckerfish-menu.

What if you already have a different menu in the suckerfish region, and you simply want to add the Administer sub-menu to your existing suckerfish menu? You can move the existing Administer sub-menu. Point your browser to /yoursite/admin/build/menu, find the Administer submenu in the list of menu items, click the Edit link next to it, and change the Parent-item parameter to be your existing suckerfish menu.

Remember that you will need to enable the Expanded option on all parent menu items in the Administer menu. Otherwise, the child menu items will not be available in the suckerfish menus.


2.4. Using the Block Theme Module

Block Theme SelectThe Block Theme Module allows LiteJazz to provide site administrators with the ability to assign a CustomTheme to each block on your site. Assigning a Custom Theme to one of your blocks will change the appearance of that Block. LiteJazz provides many different custom block theme templates that you can use to change the appearance of the blocks on your site.

To get an idea of the custom block themes that are available in LiteJazz, take a look at the Block Themes Page. This page shows a sample block for each of the Custom Themes that are available. Each of the LiteJazz color styles have a unique assortment of custom block theme templates that can be used on your site.

Before you can use the LiteJazz custom block themes, you will need to configure the Block Theme Module. These instructions assume that you have already installed and enabled the Block Theme Module, and successfully configured the Block Theme Module.

Once you have correctly installed and configured the Block Theme module, you will be able to assign a custom block theme to any block on your site. Point your browser to /yoursite/admin/build/block and click the configure link next to the block you want to modify.

On this page, you will see a drop-down box named Custom Theme. Select a custom block theme from the list and then click the save block button.

Using these same steps, you can assign a custom block theme to any or every block of your site. Use this feature to add variety, color, and interest to your site's pages.

LiteJazz also includes a couple of special purpose utility block themes:

The No Margins block theme eliminates the padding and margins that LiteJazz normally applies to blocks. This might be used, for example, to create a block containing an image that extends the full width of the page.

The Rollover1 and Rollover2 block themes will produce a rollover effect for blocks that contain unordered lists of links (which is something that Drupal modules frequently generate.)

2.5. Using LiteJazz Custom Typography

LiteJazz provides several custom styles that you can use in your node or block content. You can see examples of these styles on the Typography Sample page.

You can use the custom typography styles on your site by inserting a small amount of HTML code into your node or block content. Each of the examples on the Typography Sample page specify the HTML code necessary to use that style.

For example, the alert style example on the Typography Sample page specifies that you'll need to wrap your content in a set of <span class="alert">...</span> tags.

Within your block or node body, you could enter the following code:

<span class="alert">This is really important!</span>

You will need to change the Input format of your node or block to Full HTML, or else Drupal will filter out your HTML code.

If you've done everything correctly, LiteJazz will display this as:

This is really important!

Similarly, if you create a block or node with the following code:

<blockquote>This is a really famous quote from a really famous person that 
was taken from a really famous story out of a really famous book.</blockquote>

LiteJazz will display it as:

This is a really famous quote from a really famous person that was taken from a really famous story out of a really famous book.

2.6. Using Images in LiteJazz Regions

Add Banner BlockDrupal provides a myriad of options for displaying images, and numerous modules provide some variation of this capability.

However, you can create a banner block like the one above with a standard Drupal installation by simply inserting HTML code into the block body. You can place images in any LiteJazz region. We'll use the Header region as an example, but the things covered here apply to all regions.

LiteJazz provides a Header region below the Site Title. It is visible on this page as the fabric image. If you want to duplicate the style of banner used on this page, you'll need to start with the image. We placed our image in the /files/images folder of our Drupal site. If you choose to place your images in a different folder, you will want to ensure that Drupal can access this folder and that the file is is readable by Drupal.

Next, point your browser to /yoursite/admin/build/block, click on the the Add Block tab and enter a block description (we called ours 'Banner Block'). For the block body, you'll want to enter the HTML code necessary to display the image. The block body for the banner image on this page looks like this:

<img src="/files/images/banner.jpg" />

Finally, and this is important, change the Input Format of your block to Full HTML. If you do not change the input format to Full HTML, Drupal will not display your image. Then click the Save Block button.

Now that you have a banner block, you can publish it to the banner region. Point your browser to /yoursite/admin/build/block, select the banner region from the drop-down list next to your new banner block, and click the Save Blocks button.

2.7 Using The IE PNG Fix

Internet Explorer versions 5.5 and 6.0 do not display transparent PNG files correctly. Instead of applying the image transparency, the browser displays transparent images in an ugly gray box. LiteJazz includes a javascript-based fix for this bug. To enable the use of the IE PNG fix, simply select the IE PNG Fix checkbox from the theme configuration page.

The LiteJazz IE PNG fix is implemented using Drupal's built-in jquery framework, so it should not interfere with any additionally installed modules. However if you do experience a problem (or if you just don't use PNG files on your site), try disabling the IE PNG fix.