I just got through moving my application to VelocityOnlyLayout.  I have
a replacement pull tool for TemplatePageAttributes called
HtmlPageAttributes.  Here is how it works:

Since ECS is no longer used to construct the HTML, HEAD, BODY, etc tags,
the pull tool tool is simply a container for your page attributes.  You
use the tool to set the attributes in the screen template, layout,
action, etc.  You also use the tool in the layout to construct the tags.

Example default layout:

## Add scripts here that will be used by all pages with this layout.
## You can still add scripts in the HEAD tag on individual screen
templates with the same syntax.
$page.addScript($content.getURI("file1.js"))
$page.addScript($content.getURI("file2.js"))

## Add body attributes here that will be used by all pages with this
layout.
## You can still add additional body attributes on individual screen
templates with the same syntax.
## To replace bodyAttributes, simple readd with the same name.
$page.addBodyAttribute("topmargin","0")
$page.addBodyAttribute("leftmargin","0")

$page.setTitle("Default Page Title")
$page.addStyleSheet("$content.getURI("sampleStyleSheet.css")")

<html>
  <head>
    #if( $page.Title != "" )
    <title>$page.Title</title>
    #end
    <meta content="text/css" http-equiv="Content-Style-Type">
    #foreach( $styleSheet in $page.getStyleSheets() )
    <link href='$styleSheet' type="text/css" rel="stylesheet">
    #end
    #foreach( $script in $page.getScripts() )
      <script type="text/javascript" src="$script"
language="JavaScript"></script>
    #end
  </head>

  <body
    #foreach( $attributeName in $page.BodyAttributes.keySet() )
      $attributeName = "$page.BodyAttributes.get($AttributeName)"
    #end
  >
  $screen_placeholder
  </body>
</html>

I will check in the code shortly.  I will also try to get some
documentation written on both using this pull tool and the move from
VelocityECSLayout to VelocityOnlyLayout.  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to