Define Table Layouts

Typically the pages of a website are given a navigation area and an area for the actual content. If you use tables (instead of Cascading Style Sheets, CSS) for this type of layout it is recommended that you place wildcards for navigation bars in the global layout and then for each folder create a layout which generates the navigation bar.

This type of layout can be realized with code in a layout in accordance with the following example:

<head>
  <title><npsobj name="title" insertvalue="var"/></title>
  <npsobj name="field-name" insertvalue="meta"/>
  ...
</head>

<body>
  <!-- Upper navigation-->
  <center>
    <a href="/german"><img src="/images/germangif"></a>
    <a href="/english"><img src="/images/englishgif"></a>
    <a href="/email"><img src="/images/emailgif"></a>
  </center>

  <table>
    <tr><td>
    <!-- Wildcard for side navigation-->
    <npsobj name="nav_side" insertvalue="template"/>
    </td>

    <td>
    <!-- Insert main content-->
    <npsobj name="body" insertvalue="var"/>
    </td></tr>
  </table>
</body>

This layout references a further layout, nav_side, that is created in all subfolders that are to contain a side navigation, and that is provided with the respectively required links and images.

Layouts should always call further layouts if this generalizes the website structure and simplifies its creation.