Tutorial‎ > ‎

Layout

Work Layout

Well, what do we need. First, a template file with main page layout and placeholders for different kind of information blocks like menu, headers and content. To get one we first need to create our sample page in GPC. Then we will use its layout as a template for our entire site. We choose a GPC layout for the page and enter the information in the following zones on the page:

g_title
"Tutorial"
g_description
"Home :: Download . . ."
g_body
"Work layout . . ."
g_footer
"© 2007 . . ."

At this point we only have to put one or two lines in the corresponding blocks since we only need to identify our blocks later in hte HTML code.

As soon as we publish the page we can access it on the internet by clicking on site address in GPC console. Now this page has all the stuff we need to turn it into the template and reuse it for all other pages. We save it on our machine in the template folder which is any directory outside your source folder. In the source folder you will store your source files which you can create right now:

start.src
tutorial.src
reference.src
support.src
links.src

All those are text files (empty by now) with .src extension. Notice that we don't have index.src file. The home page will be created and maintained within GPC. All .src files will be processed by OSB. Each file will be integrated into the template and stored under the same name but with .html extension in the target folder. So finally you'll get there your compiled web pages which you will then upload to GPC.


To better understand the method for naming source files see Appendix A: Resolving target filenames in Commands Reference.

Now let's look at the template file.

Comments