User Tools

Site Tools


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

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
Prepend No when set to 1, if several section has moveTo parameter that point to the same section, then the content will be added in first to the moveTo section

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.txt · Last modified: 2013/06/13 21:51 by svanderclock