Garry Heaton wrote:

I have a web page which has 3 potential content areas spread across 3 table
columns. Following the lead in the O'Reilly book, I can define the page
layout with:

[% WRAPPER html;
    WRAPPER layout;
      content;
    END;
  END
%]

How can I get content into 'leftcol' and 'rightcol' since the WRAPPER
approach above only services the central column? If I use an INCLUDE I'll
get the same content on every page, which I don't want.



This is what my "layout..tmpl" wrapper has in it as the main page body. (Well, heavily simplified and from the old non-css version, anyway. The includes actually have defaults and are overridden only when set and other dandification.)
<table id="topbar">
<tbody>
<tr>
<td id="cornernav"><!-- HTML here --></td>
<td id="navbar">[% INCLUDE $NAVBAR %]</td>
</tr>
</tbody>
</table>
<table id="main">
<tbody>
<tr>
<td id="sidenav">[% INCLUDE $SIDENAV %]</td>
<td id="well">[% content %]</td>
</tr>
</tbody>
</table>


HTH...

--mark mills
Xodiax Engineering

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to