Module 4: Content classes and datatypes
Templates show content; this module is about the content itself, from a developer's side. Learners create a small class, find its identifiers from PHP, change the view of one field with an override, write content from a script, and finish with a datatype of their own written by the RAD wizard.
At a glance
| Course | Developers |
| Duration | 3 hours 40 minutes (with one 10-minute break) |
| Lessons | 4 |
| Level | Intermediate to advanced |
Lessons
| Lesson | Duration | What learners do |
|---|---|---|
| Lesson 4.1: Classes, attributes and identifiers | 50 minutes | Create the Note class, list its attributes from PHP |
| Lesson 4.2: Datatypes and their templates | 45 minutes | Read datatype templates, override the title of notes |
| Lesson 4.3: Reading and writing content from PHP | 55 minutes | Create and update a note with eZContentFunctions |
| Lesson 4.4: A datatype of your own | 60 minutes | Generate a datatype with the Datatype wizard, add it to a class |
Preparing this module
- Every learner needs an administrator account on their own training installation: the module creates a class, writes content and generates an extension.
- On a shared installation, each learner uses their initials in class and extension names (
note_ab,mysite_rating_ab) and their own course folder. - Lesson 4.4 writes files below
extension/: the web server user must be allowed to write there on the training installation (never on a live site). - Rehearse the wizard once on your own installation and keep the list of files it wrote for the discussion.
Timing plan
| Part | Minutes |
|---|---|
| Lesson 4.1 | 50 |
| Lesson 4.2 | 45 |
| Break | 10 |
| Lesson 4.3 | 55 |
| Lesson 4.4 | 60 |
| Total | 220 |
Related pages
- Developers: course overview
- Trainers: start here
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
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.