Welcome to DeCaf:Net

DeCaf:Net Product Page Producer

DeCaf:Net Logo DeCaf:Net the poor mans solution to the world of the web.

The NTS Page Producer Wizard main goal is to create a group of HQL pages using a Structure file of page names and a Template file. The Wizard is using a To Do List to do its magic.

The To Do List has the following steps: Select Project, Use Structure, Use Template, Output folder, Produce Pages, and Exit. Note: Future function will also have a Convert step for converting HQL pages to HTML pages.

The first step is to select a Project. From here you can also create a Project or delete a Project. The Project is stored in a XML file, named after Project in the Project Path. This path can be configured from the System | Configure menu option Input tab. A Project includes three items: The Structure path and file, the Template path and file, and the Output path. You can add and maintain as many Projects that you want.

What is a Structure? It is a simple CSV (ASCII comma delimited) file and can be edit in either a standard ASCII editor like NotePad or WordPad. However if you have Excel loaded it will properly be set as the defaulted editor for CSV files. That is OK since you will have the feature of using the cells in the Excel spreadsheet as a guide to build your web site Menu Structure.

A Menu Structure represents the inner page connection of your web site. It starts with a home (that is normally the index.html page). Like any Windows program you will have a root menu. The NTS Page Producer Wizard has the System and Help menus as its root menu.

So the CSV file will in the first line have:

System

>

Help

Since the System page real name should be index we can add that to the CSV file:

System {index}

>

Help

If we want to use revisions we can also do that in the CSV Structure file:

System {index}

>

Help {+01}

The Page Producer will create two HQL files called: index.hql and help01.hql.

To create a sub menu under Help and sub menu under the sub menus we can use the "V" and ">" characters to connect the menus.

System {index}

>

Help

   

V

   

More Help

   

V

   

About

The Wizards New Button will create a sample Structure file and launch the CSV editor so you can edit the file per your spec.

If you already have a Structure file you can use the Browse button to locate the file and the View button to launch the CSV editor with the selected file. From the System | Configure menu and the Editor tab you can associate a CSV editor to edit the Structure files.

From the Use Template step you can select a pre-existing Template to build your web site from or you can let your Wizard produce one with the New button. From the System | Configure menu and the Editor tab you can associate an HTML editor to edit the HQL files. Remember the HQL file is nothing more than an HTML file, with HQL code.


<html>
  <head>
    <title>{PAGEID}</title>
    <style type="text/css">
      <!-- A:hover {background: #FFFF00;} -->
    </style>
  </head>
  <body bgcolor="#C1F5F5">
  <table width="100%" border=2 cellspacing=0 cellpadding=3 bgcolor="#FFFFCC">
    <tr>
      <td width="1%" valign="top"  bgcolor="#76828F">
      </td>
      <td width="71%" valign="top" bgcolor="#FFFFCC">
        <table cellspacing=0 cellpadding=3 border=0 width="100%">
          <tr align="left" valign="top">
            <td bgcolor="#76828F">
              <font face="Arial" color="White">
              {PAGEID}<br>
              </front>
            </td>
          </tr>
          <tr align="left" valign="top">
            <td>
              <#hql
                $lf = <br>;
                Echo 12/27/2001 2:06:04 PM + $LF;
                Echo $LF;
                Echo Menu File="{HOME}design.csv" PageID="{PAGEID}" 
                          Extension="html" Direction="Horizontal" 
                          Border="0";
                Echo $LF;
              #>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <p>
  <#hql
    Echo Include {HOME}copyright.txt;
  #>
  </body>
</html>

You can easily role you own HQL template. Remember the effort you put into this page will be duplicated into all the pages in the Project so creating a real nice basic Template is worth a million.

Before we can start producing the HQL pages the Wizard will need to know where to save all the files. Use the Browse button to locate the appropriated folder.

Note: If an HQL file is already present in the Output folder the Wizard WILL NOT overwrite the current version. The reason should be clear and that is that you may have edited the file. If you need an updated version either delete the current version of the HQL file or use the {+01} revision function of the Structure file.

If the Structure file is not found in the Output folder it will be copied to the folder. If an older version of the file is found it will be overwritten.

Yes we are now ready to Produce some HQL pages. Use the Start to begin the production. You can cancel at any given time with the Stop button.

After a Project has been setup you can in step one select the Project, click on the Produce Pages label in the To Do List to go directly to this step, hit the Start button and you are in business.

Use the System | Configure menu to display the XML setup. Each tab will explain the function of the tab and its settings.

Use the System | Project Setup to display the current Project XML setup. Each tab will explain the function of the tab and its settings.

{ More about the Tools menu to come at a later time }


DeCaf:Net Product Page Producer


Robot tips!
robot tips

[Question] How do I add a new page to a Project?

[Answer] First you need to update the Structure CSV file. This can be done using the NTS Page Producer Wizards View Button under the Use Structure step, or you can open the CSV file in either Excel or any ASCII editor like NotePad.

System

>

Help

   

V

   

More Help

   

V

   

About

Insert the new menu is the schema as need and save the file.

System

>

>

>

>

>

Help

V

         

V

Open

>

File

>

URL

 

More Help

           

V

           

About

If you need more space just use more connection signs "V" and ">", like in the sample above. This is easily done in Excel by inserting columns and rows.

Run the NTS Page Producer Wizard with the new Structure CSV files to create the new HQL pages. In this case open.hql, file,hql and url.hql will be created.

To update the Project regarding having the correct menus on all the pages you will also have to convert the all the pages in the Project. Note: Currently that is done with the HQL Converter and at a later time the NTS Page Producer Wizard will be able to do the work.

[Question] If I change my Template file after I have created all the HQL pages with the Page Producer what will happen?

[Answer] New HQL pages will have the new look and feel, whereas the old once will have the old look and feel. If you have minimum of HQL code in the old pages you may think about saving them before deleting them from the Output folder. This will give you new HQL page with the new look and feel, but you will have to manually updating all the HQL files with the correct HQL code found in the saved files.



Augury!
At Work
This page is under going transformation so bear in mind to check back, at a later time, to see all the new good "stuff" (like in "matter" and "anti-matter") that we are providing to you.
Rev: Thursday, December 27, 2001
Copyright (c) 2001 New:Team SoftWare, Inc..
All rights reserved. Reproduction in whole or in part in any form or medium without express written permission of NTS is prohibited.
NTS and the NTS logo are trademarks of New:Team SoftWare, Inc..