Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Module 2: The template language

The second module of the Developers course. Learners build a template playground and learn variables, conditions, loops, operators, wash, translations, the URL operators, include and the view functions. 5 hours.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/trainers/developers/module-02-the-template-language/README.md

On this page

Module 2: The template language

Everything a visitor sees passes through templates. This module teaches the template language from the first variable to the functions that assemble a page. Learners try every expression in a playground that renders a template on the command line, so nothing on a site changes until module 3 puts templates into a design.

At a glance

CourseDevelopers
Duration5 hours (with two 10-minute breaks)
Lessons6
LevelBeginner to intermediate

Lessons

LessonDurationWhat learners do
Lesson 2.1: Variables and output50 minutesBuild the playground; def, set, undef, arrays, hashes, wash
Lesson 2.2: Conditions and logic45 minutesif, comparisons, and/or/not, cond, first_set, switch
Lesson 2.3: Loops with foreach45 minutesKeys, delimiters, sequences, offset, max, reverse, break
Lesson 2.4: Operators, wash and translations50 minutesChain operators, wash types, dates, i18n, attribute( 'show' )
Lesson 2.5: Links and design files40 minutesezurl forms, ezroot, ezdesign, ezimage
Lesson 2.6: include, node_view_gui and attribute_view_gui50 minutesInclude with parameters, view modes, fields with their datatype templates

Preparing this module

  • Every learner has extension/mysite_hello from lesson 1.4 and a working ezexec.php run.
  • The training installation has content below node 2: a few folders and articles, so that $node.children and data_map show something. A fresh exp:install with the default package is enough.
  • Prepare a printed or projected cheat sheet of the syntax in Templates and design, part 6.
  • Rehearse each exercise in the playground; outputs depend on the content of your training installation, so note the expected names and IDs for your own installation.

Timing plan

PartMinutes
Lesson 2.150
Lesson 2.245
Break10
Lesson 2.345
Lesson 2.450
Break10
Lesson 2.540
Lesson 2.650
Total300

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x