"With CatBase we were able to produce a complex 150-page catalogue in about a week – a project that would have taken 3-4 weeks doing it manually. " (See the Case Study)

– Gary Reid, Nude Design

Publish a Telephone Directory with InDesign

 

CatBase makes it easy to publish your phone bookusing InDesign. It does all the hard, boring work for you! The process, in a nutshell, goes like this:

1. Get your data into the CatBase database. You can either enter it manually, import a delimited text file, or (Data Chameleon Edition) retrieve it from a MySql or ODBC-compliant database or spreadsheet (such as Microsoft SqlServer, Access, etc.)
2. Set up Publishing Style Sheets in CatBase. These tell CatBase what data you want to publish and how you want it sorted and formatted. You can have any number of Publishing Style Sheets, so you can publish your data in lots of different ways (and to various publishing destinations).
3. Select the records you want to publish.
4. Export the data to a text file, using one of your Publishing Style Sheets.
5. Import that text file into your InDesign template. All the text is automatically formatted exactly as you want it to be, even with pictures included if appropriate! (Including pictures requires the use of the XTags plugin for InDesign).

OK then, let's see just how easy it is!

For the purposes of this Tutorial, we are using the Demo Database that is supplied with the CatBase Demo. If you would like to follow along and try it for yourself, you can download the fully-functional Demo from here. We're going to create a "Yellow Pages"-type of telephone directory, with entries formatted in different ways depending upon whether they have paid for a listing or not, like this:

Yellow Pages Directory

Step One: Set up a Publishing Style Sheet

Publishing Style Sheets tell CatBase:

The Publishing Style Sheet we are using for this project is called Telephone Directory (to view or edit Publishing Style Sheets, click on the Style Sheets button on the main window and choose Publishing Style Sheets from the pop-up menu). It looks like this:

telephone directory style sheet

Perhaps the most important thing here is the list of Paragraphs. This is where we specify exactly what data is going to be published and how it will be formatted. In this example, we've set up one Paragraph for each different formatting style. When the data is transferred to InDesign, CatBase will decide how to format each photographer's details depending upon which Listing Level they have selected (Plain, Bold, Boxed, or Extended).

Elements are the building block of Paragraphs; each Paragraph can contain any number of Elements. There are seven Element types:

A quick look at the Plain Entry paragraph (double-click on it in the list of Paragraphs) shows us that it is comprised of six elements:

Publishing Style Sheet

As you can see, the first Element is a Formula which reads "If Listing Level equals Basic then Include this Paragraph otherwise don't include this paragraph". Each Paragraph in this Publishing Style Sheet contains a similar Element, and this is what controls how each photographer's entry will be formatted. The Formulas are created using a simple point-and-click interface - this is how the one shown here looks:

formula.

The detailed workings of Publishing Style Sheets are covered in a separate Tutorial.

Step Two: Select the data you want to publish

We're going to include all the Photographers in this directory, so we've created a Set called All Photographers.

Step Three: Create a Publishing Project

Publishing Projects help to automate the publishing process. A Publishing Project tells CatBase which set of data to use, which Publishing Style Sheet, and where to save the data when it's published. We've set up a Publishing Project called Telephone Directory - InDesign .

Step Four: Transfer the data

Click on the Publish Data button on the main window and choose Telephone DIrectory - InDesign from the pop-up menu. CatBase publishes the data and lets you know when it's done. It tells you the name of the file it has created and where it has been saved; if you haven't changed any of the settings in the Demo Database, it will have created a file called Tel Directory and saved it into a folder called Data Exports on your desktop.

Step Five: Import the transfer file into your InDesign template

Note: We use the Xtags Xtension for importing the file into an InDesign document, as this facilitates the creation of text and picture boxes. We have included a demo version of Xtags with our demo (you'll find it in the 3rd Party Demos folder). Install the appropriate version of Xtags into the Plug-ins folder in your InDesign application folder.

Open up your InDesign template, or create a new two-column document. We have included a simple template in the Goodies folder with the CatBase demo.

Now for the fun part ...

Watch in amazement as the directory is created before your very eyes! It should look like this:

Directory Example

Mohammed, John, and Mike have paid for a Bold listing.

Ferdinand and Kate have a plain listing.

Sheila has paid for a Boxed listing.

Jenny has an Extended listing.

... and it was all formatted automatically!

It really is that simple!

What's Next?

About Us | Site Map | Privacy Policy | Contact Us | ©2009 CatBase Software Ltd.