hello
I wrote a new modification for webSPELL 4.2.* (Successfully tested on 4.2.1a and 4.2.2a).
Zum deutschen Thema
About:
The Unified Template Modification, short UNI template mod combines multiple templates into one file. From originally 293 templates it creates 73 uni templates. The goal is the make template adoption easier. As by-product it allows to have multiple templates installed and change template with one click in the admin center, a front end implication hasn't been done yet. The quality of uni template mod is it's sleek implication into webSPELL. Only 6 standart webSPELL files are edit automatically, including 2 languages files and admincenter.php with the link to the template manager. The mod itself contains 3 files.
Installation:
Follow the instruction in readme.txt. It's a easy 3 step installation.
Performance:
With a freshly installed webSPELL without any content it takes about 0.005* seconds per request longer than without. However the number varies a lot depending the page and content. But with lots of content this modified 'gettemplate' function will start to perform better since it has a cache.
If someone would like to do a extensive unit test I would appreciate it and be very interested in the results.
* Tests run on a XAMPP Installation on Mac OS X 10.6.2 with a Intel Core 2 Duo 2.4 Ghz with one template installed
Debug mode:
If you activate the webSPELL debug modus in _settings.php you can edit your template files live without reimporting them over the admin center. If you're done editing templates it's important to deactivate debug modus again to increase performance.
Download:
FILE NAME wsutm05alpha2.zip
DOWNLOAD LINK
http://www.crying-wolves.net/ws/wsutm05alpha2.zip
VERSION v0.5 Alpha 2
MD5 9da578452b98f998562bb63dea3a6559
SIZE 11.0 KB
FORMAT ZIP -> 3 PHP files
NOTE This is a alpha release, ment for development and testing purpose. I do not recommend using it on a live page just yet. Wait for a beta!
Information:
NAME Unified Template Modification
COMPATIBILITY webSPELL 4.2.*
NEWEST VERSION v0.5 Alpha 2
LICENSE GNU GPL v3
COPYRIGHT 2010 by warcry <Thomas Preusse, Switzerland>
Changelog
0.5 Alpha 1 to 05. Alpha 2
- + Caching templates to increase performance when get_template() is used in loops
- * Fixed problems with converting index.php to a unified template
Kind regards
warcry