

- Templates Admin Module -
NOTE) Developping this module has ended. Try altsys instead.
SUMMARY:
A module should be replaced "template manager" in system module.
I've made this module for recovering the features should be gifted in original DB template system.
I recommend tplsadmin module to all xoopsers with confidence.
DESCRIPTION:
- No hacks needed
- Easy to see differences of templates wholely
- Show "diff" from default or file
- Easy to copy&delete from any DB-set/file to any DB-set
- Easy to find the name of the target template (HTML comment or div border)
- Easy to edit the template just click links named the template in front side
- Generate specifications for template's variables dynamically as Dreamweaver Extension
- You can preview the site just by edit the template files (mainfile patch needed)
USAGE:
Just install it.
You can operate templates with no documents.
- To know the name of the template
-- go to "Cache Hookings" in tplsadmin
-- push "Implant comments" or "Implant div tags"
-- go to and display public pages of your site
-- you can find the template name as a HTML comment or a link in bordered div
- To get specifications for template's variables of your site
-- go to "Cache Hookings" in tplsadmin
-- push "Implant logics to collect template variables"
-- go to front sides of your site
-- go to and display public pages of your site
-- you can find the number of specifications as "Template vars info files:"
-- if enough, "Get info of template variables as DreamWeaver Extensions"
-- don't forget pushing "Normalize compiled template caches" after outputting
-- extract zip or tar.gz
-- run Macromedia Extension Manager
-- execute the files named (module_name).mxi
-- install them
-- you can see assigned names of template-variables as Dreamweaver's Snippets
-- you can also see assigned data in the variables in right side of snippets
- To download template set
-- go to "Cache Hookings" in tplsadmin
-- select DB-template set you want
-- push zip or tar.gz
- To upload templates into DB-template set
-- create a zip/tar.gz archive including template files
-- all files in any paths can be recognized
-- go to "Cache Hookings" in tplsadmin
-- select DB-template set you want
-- specify the archive
- To use the feature of "Edit and Preview"
-- edit mainfile.php (insert a line just after common.php)
if (!isset($xoopsOption['nocommon'])) {
include XOOPS_ROOT_PATH."/include/common.php";
include XOOPS_ROOT_PATH."/modules/tplsadmin/include/autoupdate.inc.php" ;
}
-- go to admin -> system -> preferences -> general setting
-- turn "Update module template .html files ..." on
-- put template files in the path of /themes/(your_theme)/templates/
-- edit the template files in the path
-- you can preview your local site with new templates.
COPYRIGHT:
I do not insist on the right of these codes, and don't guarantee.
I use PEAR::Text/Diff.
The rights of this code is under license of PEAR, perhaps.
Special thanks to the author - Geoffrey T. Dairiki -.
I use PEAR::Archive/Zip.
The rights of this code is under license of PEAR, perhaps.
Special thanks to the author - Vincent Blavet -.
CHANGELOG:
2006-03-24 1.01 modified comment/div implantation skips theme.html
2006-03-18 1.00 full model public release
added "auto update" templates from themes/(your_theme)/templates/
added downloading templates
added uploading/overwriting templates
added HTML-implantation for recognizing template names
added logic-implantation collecting template variables
added outputting templates variable infos as Dreamweaver Snippets
2005-02-03 0.20 updated module icon (thx argon)
fixed menu listing
modified the behavior on deleting DB templates
2005-12-30 0.13 added french language files (thx marco)
2005-12-22 0.12 modified some wrong documents

2005-12-22 0.11 fixed some typos
2005-12-21 0.10 the 1st implementation