From the wizard's output to the first commit
This page is for designers who just generated a theme with the design extension wizard. Follow it once, in order; at the end you have a theme that renders and a clean first commit.
Step by step
Look at the tree:
find extension/mytheme -type f | sortCompare with The design wizard's parts.
Check the PHP and XML files:
php -l extension/mytheme/ezinfo.php xmllint --noout extension/mytheme/extension.xmlExpected:
No syntax errors detectedand no output fromxmllint.Fix
composer.json: check thatextrahas"ezpublish-legacy-extension-name": "mytheme"(written by the wizard from Exponential 6.0.15 on; add it to the output of an older wizard), set the PHP versions you test, addhomepage,supportandauthors(composer.json for a theme). Check:composer validate extension/mytheme/composer.json.Make the three edits of the generated head and layout (the title,
{ezcss_load()}and{ezscript_load()}, a plain<meta charset="utf-8" />) if the theme was generated by a wizard older than 6.0.15 (Three edits the generated head and layout need).Switch it on for the installation and choose it for one test siteaccess (Activating a theme, The design settings a theme ships).
Make it visible:
php bin/php/ezpgenerateautoloads.php -e php bin/php/ezcache.php --clear-all --allow-root-userOpen the test siteaccess in a browser. The page uses your
pagelayout.tpl; with template debugging on, the path comments name files inextension/mytheme/design/mytheme/.Read the README the wizard wrote and correct anything that is not true for your theme.
Commit:
cd extension/mytheme git init -b main git add . git status --short git commit -m "Added: The mytheme theme extension"Read
git status --shortbefore committing: only the theme's files should be listed.
What usually needs changing next
- The pagelayout's head: stylesheet and script loading (Loading stylesheets).
- The example override for
article(Override basics). ezinfo.phpandextension.xml: website and copyright.
Related pages
- Putting a theme under Git
- Checklist: the theme extension is ready
- 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.