User Tools

Site Tools


en:public:developer:template_system:tags:string:section

This is an old revision of the document!


Table of Contents

<#section>

Use this tag to define a “section”. The main advantage is that you will have after the possibility to move the section. Exemple: move some <style>..</style> sections declared in a template in the <head>…</head> of the html

Parameters

Name Mandatory Description
Id No The ID of the section
MoveTo No Instruct to move this section to the section that have ID equal to the value of this parameter
Body No The section content

Literal

<#section moveto=“head”>..body..<#endsection>

Example

<html>
  <head>
    <#section id='head'></endsection>
  </head>
  <body>
    <#section moveto='head'>This must be in the header</endsection>
  </body>  
</html>

The above example will output:

<html>
  <head>
    This must be in the header
  </head>
  <body>
  </body>  
</html>
en/public/developer/template_system/tags/string/section.1364810854.txt.gz · Last modified: 2013/04/01 14:07 by svanderclock