Lesson 6.4: Capstone, an extension and a theme
A developer and a designer (or one learner doing both) deliver a small product for an invented organization: a theme for its public site, and an extension with one feature. The result must be ready for a first release, without the release itself.
Note
This is the trainer's own assessment, not an official certification. Work stays on the training installations and in local Git repositories: nothing is pushed, tagged or published, because a pushed tag is permanent.
At a glance
| Course | Assessments and practical exercises |
| Module | Module 6: Capstone projects |
| Duration | Two days: 15 minutes briefing, about 10 hours work with three checkpoints, 15 minutes presentation per pair, 1 hour scoring |
| Level | Advanced |
| Audience | Learners at the end of Developers and Theme design |
| Prerequisites | Those courses; a training installation from a Git clone, a shell, an editor and Git per pair |
Learning objectives
Pairs that pass this capstone have shown that they can:
- build a theme extension used by one siteaccess only, without inline code;
- build a functional extension with a protected view, templates and settings of its own;
- make the two extensions work together through loading order and overrides;
- keep metadata consistent and the history clean and readable;
- explain what a first release would take, without publishing it.
Trainer's notes
How to run it
- Before: one training installation per pair, from a Git clone, served on a local port, with articles in the content tree. Agree with each pair who leads the theme and who leads the extension; both answer questions on both.
- Checkpoints: day 1 midday (both extensions active, empty), end of day 1 (the feature's page works; the theme styles the site), day 2 midday (overrides and access control done).
- Presentation: the pair shows the site, the feature as an anonymous visitor and as a permitted user, the grep for
inline code,
php -land template checks, andgit log.
Pitfalls
- Scope creep. The feature is one page. Polish counts more than features.
- Global
SiteDesign. The administration turns into the theme. Scored.
Hands-on exercise
The brief, as handed to pairs.
The Greenfield Farmers' Market (an invented market) wants a fresh look for its site and a page that lists this week's stalls.
- Theme extension
<pair>theme: its own pagelayout, stylesheet loaded from the design, registered withDesignExtensions[], used by the public siteaccess only;ezinfo.php,extension.xml,LICENSE,README.mdthat documents theSiteDesignline. - Feature extension
<pair>market: a modulemarketwith a viewstallsthat lists the children of a folder named Stalls (created by you, with five folder or article items) through a template, with every printed value washed. - Access: the view requires a function
read; a role grants it to Anonymous Users only after you decide the page is public. Prove both states. - Settings: the folder's node is read from a settings file of your own (
<pair>market.ini), not written in the code. - Overrides: the theme overrides
node/view/full.tplfor articles; the feature's template uses the theme's stylesheet classes. The feature extension declares in itsextension.xmlthat it uses the theme where that is needed, or explain why it does not. - Quality:
php -lon every PHP file, the template check on both designs, and the inline-code grep returning nothing. - Git: one repository per extension, commits with the prefixes
Added:,Updated:,Removed:,Renamed:, version0.1.0inezinfo.phpandextension.xmlof each, no tag. - A one-page release plan: how you would choose the number from what is published, what you would check before the tag, and what you would do if a published version turned out wrong.
Expected result
- The public site uses the theme; the administration does not. The stalls page works and is protected as designed.
- The checks are clean; each repository has a readable history and consistent version fields; no tags exist.
- The release plan matches the release section of the extensions guide.
Scoring rubric
| Criterion | 0: Not shown | 1: Partly | 2: Mostly | 3: Fully | Evidence |
|---|---|---|---|---|---|
| Theme | Not used | Used everywhere (global) | Public only, gaps in files | Public only, complete files, README documents SiteDesign | Both sites, files |
| Feature page | None | Static page | Lists items, values unwashed | Lists the folder's children, washed | The page |
| Access control (must) | Unprotected | Declared, not required | Required, one state not shown | Both states proven | Anonymous and permitted views |
| Settings | Hard-coded | Settings file, unused | Used, not documented | Read from own INI, documented | Code, INI |
| Overrides and cooperation | None | Override without rule | Works, dependency not considered | Works, dependency declared or reasoned | Pages, extension.xml |
| Quality checks | None | Some files checked | All checked, one finding left | All clean, grep empty | Terminal output |
| Git and release readiness | None | One repo, no prefixes | Both, versions inconsistent | Both, prefixes, consistent versions, no tag, sound release plan | git log, files, plan |
Pass: 14 of 21 points or more and Access control at 2 or 3.
Quiz
Debrief questions after the presentations.
- Why is the stalls folder's node in a settings file?
- What did the inline-code grep protect the site from?
- In your release plan, what happens if
0.1.0turns out to be wrong after it is published? - Which extension loads first, and why does it matter here?
Answers
- So an installer can point it at their own folder without changing code (Extensions).
- Breakage when a site switches on a Content Security Policy (Removing inline scripts and styles).
- Leave it; publish
0.1.1with the fix and say in its notes what was wrong (Extensions). - The one earlier in the list (or ordered by
extension.xmldependencies); it wins for settings and templates (Loading order and which theme wins).
Further reading
- Developers, practical task and Theme designers, practical task
- Checklist: theme extension ready
- Extension development
Related pages
- Module 6: Capstone projects
- Assessments and practical exercises: 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.