Derived theme tutorial and some fixes
Hi,
I went through the derived theme tutorial (
doc/en/tutorials/DerivedTheme1.md
), and found that it was not entirely up to date. I've updated it, but also made some changes to core to improve on the process, and to make it actually work.
The main change is that I've made the
extends
attribute a first class attribute of the theme info array. (This should really be a class, but that's for another time.) This means it can now be specified in the comment in the theme info file, like this:
- <?php
- /*
- * Name: Mytheme
- * Description: Sample Derived theme
- * Version: 1.0
- * Author: Your Name
- * Extends: redbasic
- */
I've also added the tutorial to the help table of contents. It should have further lessons, like "Customizing the theme", "Adding more configuration options", etc. But it's a start.
Here's the
Merge RequestI especially would like feedback from the implementors of themes. I don't think I should break anything for you, but please let me know if you think the change will cause trouble for you.