webCOMAND

Multi-Page Publication Tutorial

This tutorial continues the Single-Page Publication Tutorial to link our Presidents page to individual pages for each president, forming a multi-page website.

Watch the video above, or follow the step-by-step instructions below.

Create "President" Publication Procedure

Now we will create a Publication Procedure to publish a web page for each president.

  1. Click "Publication Procedures" under "Tutorials" in the folder tree in left panel.
  2. Click the New Button (New Menu) in the right panel's toolbar.
  3. Enter the Identifier "President".
  4. Select the List "Presidents" from drop-down.
  5. Enter the Filename "$Number/index.html", which will produce an index.html web page file in a unique folder for each president, where the folder name is based on the president Number field value.  Since the Number field is a Unique/Key, it is guaranteed to be unique for each president.
  6. Enter the Script:
    <html>
    <head>
        <title>$Name</title>
    </head>
    <body>
        <h1>$Name</h1>
        <img src="#OUTPUT('$OID.jpg',$Photo)" />
        <p>$Name was United States president number $Number.</p>
        <p><a href="#LINK(Presidents)">Back to List</a></p>
    </body>
    </html>
    
  7. Click Approve.

Update "Presidents" Publication Procedure

Now that we have an individual page for each president, we will link to them from each president listed on the Presidents page.

  1. Click "Publication Procedures" under "Tutorials" in the left panel.
  2. Click "Presidents" in the right panel.
  3. Edit the Script to read:
    <html>
    <head>
        <title>Presidents</title>
    </head>
    <body>
        <h1>Presidents</h1>
        <ol>
    #LIST(Presidents)
            <li value="$Number">
                <a href="#LINK(President,$Number)">$Name</a>
            </li>
    #ENDLIST
        </ol>
    </body>
    </html>
    
  4. Click Approve.

Update and Publish "Presidents" Publication

Finally, we need to add the Publication Procedure for individual contact pages to our Publication and publish.

  1. Click "Publication" under "Tutorials" in the left panel.
  2. Select Publication Procedure "President" in addition to "Presidents".
  3. Click Publish
  4. Click "index.html" in the Notification Side Bar.

You can now navigate to individual president pages and back.