Index: openacs-4/packages/acs-templating/www/doc/guide/master.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/guide/master.adp,v diff -u -r1.5 -r1.6 --- openacs-4/packages/acs-templating/www/doc/guide/master.adp 25 Apr 2018 08:42:18 -0000 1.5 +++ openacs-4/packages/acs-templating/www/doc/guide/master.adp 3 Sep 2024 15:37:35 -0000 1.6 @@ -1,7 +1,11 @@ -{/doc/acs-templating {ACS Templating}} {Templating System User Guide: Using Master Templates} +{/doc/acs-templating/ {ACS Templating}} {Templating System User Guide: Using Master Templates} Templating System User Guide: Using Master Templates +

Using Master Templates

Templating System : Developer Guide @@ -45,8 +49,7 @@

Write the Master Template

A master template to implement the page layout shown above would have this basic structure:

-
-<html><body><table width="100%" cellspacing="0" cellpadding="0" border="0">
+
<html><body><table width="100%" cellspacing="0" cellpadding="0" border="0">
 
 <tr>
   <td><!-- LOGO --></td>
@@ -94,8 +97,7 @@
 user's name on every page to indicate that the site has been
 personalized. The Tcl script associated with the master template
 would include code like this:

-
-set user_name [your_procedure_to_get_the_current_user_name]
+
set user_name [your_procedure_to_get_the_current_user_name]

The template would have a section like this:

<if \@user_name\@ nil>
   <a href="/register.acs">Register Now!</a>