SMbullet2 pictureNews
SMbullet2 pictureMap
SMbullet2 pictureAbout

SMbanner picture

 

SMship picture

Tools Table Work

As part of the development of your web site, you will need a special outline and macro to build the navigation menu. These will reside in the #tools table of your site table.

tocOutline work

The new outline is called tocOutline (short for "table of contents Outline). This outline will tell Frontier what should be contained in the menu. To create this outline, copy the #nextPrev outline by selecting it in your site table, then selecting the "Edit --> Copy" command. Open the #tools table in your site table, select the first element in the table, then paste the #nextPrev outline into the #tools table using the "Edit --> Paste" command. Now, rename the outline you just pasted to "tocOutline". You can do this by selecting the name of the outline, then typing the new name.

Double-click on tocOutline and move the outline entries around until they are in the order that you came up with when we talked about organzing your material. Remember, the #nextPrev outline has an entry for every wp text in your site table. You may not want every page in your site included in your navigation menu. If you do not want certain pages in your menu, delete those entries from tocOutline. Also, when the #nextPrev outline is built, Frontier creates an entry for an index page for the main site table and for each sub-table. If you do not have any wp texts named index, you should delete those entries from tocOutline.

leftlinks work

Open the sample website table that you installed earlier in your Frontier root (myACWebSite) and open the #tools table. You will see a copy of an script called leftlinks. Copy the script and paste it into the #tools table of your site table. Now double-click on the script. This script is a set of three short scripts. Sometimes, this is referred to as a macro, because it is called from a HTML page or outline as it is rendered. The scripts are written in the Frontier programming language, UserTalk. You do not need to write any scripts for this standard web site, but you do need to make a modification to the leftlinks script so that it will work for your site.

There is a line in the script that looks like this:

 target.set(@websites.myACWebSite.["#tools"].tocOutline) 

You need to change the part that says "myACWebSite" to the name of your site table. This tells the leftlinks script to look at your copy of tocOutline when it builds the links for your navigation menu. When you have done that, close the script window.

The leftlinks macro is executed as part of the rendering process when the template is applied to each of the wp texts in your site table. The macro creates the HTML code for the links to the pages in your copy of tocOutline. If you are interested in learning more of the details about the leftlinks macro, see my Leftlinks Macro description page.

Now you are ready to build and release your site.


Page 1: Description of A Standard Web Site
Page 2: Organize Your Material
Page 3: Create Site Table
Page 4: Glossary Table Work
Page 5: nextPrev Table Work
Page 6: ftpSite Table Work
Page 7: Template Work
Page 8: Tools Table Work
Page 9: Build and Release!
Page 10: Wrap Up


News - Map - About ScriptMeridian

This tutorial was written by Andy Sylvester in Sherman, Texas, USA.
Page last revised 6/1/98; 10:25:09 PM.
Copyright © 1998 ScriptMeridian. All rights reserved
All trademarks are the property of their respective owners.
7:01:54 AM Thursday, June 4, 1998