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 5: Fetch functions

The fifth module of the Developers course. Learners fetch nodes and lists, filter, sort and page them, use the fetches of the user, section and relation functions, and write a fetch function of their own. 3 hours 30…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/trainers/developers/module-05-fetch-functions/README.md

On this page

Module 5: Fetch functions

Templates get their data through fetch functions. This module goes from the first fetch( 'content', 'node', ... ) to a paged, filtered list on a real page, through the fetches of other kernel modules, and ends with learners writing a fetch function in their own extension.

At a glance

CourseDevelopers
Duration3 hours 30 minutes (with one 10-minute break)
Lessons4
LevelIntermediate to advanced

Lessons

LessonDurationWhat learners do
Lesson 5.1: Fetching nodes and lists45 minutesnode, list, list_count, reading function_definition.php
Lesson 5.2: Filters, sorting and paging55 minutesClass and attribute filters, tree and depth, sort_by, the navigator
Lesson 5.3: Fetches of other modules40 minutescurrent_user, has_access_to, sections, relations, site data
Lesson 5.4: A fetch function of your own60 minutesA module, function_definition.php and a function collection class

Preparing this module

  • The training installation needs enough content for filters and paging to show something: a folder with at least six articles or notes, and a few folders below node 2.
  • mysite_hello is active on each installation (lesson 3.1) and the override of lesson 3.2 is in place for the paging exercise.
  • For lesson 5.3, each learner has a site account (not an administrator) to compare signed in and signed out.
  • Rehearse lesson 5.4 once; keep a finished copy of the three files to hand out to learners who fall behind.

Timing plan

PartMinutes
Lesson 5.145
Lesson 5.255
Break10
Lesson 5.340
Lesson 5.460
Total210

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