An environment to edit templates for module developpers

Date 2006-05-29 05:13:28 | Category: XOOPS

in englishin japanese
I wrote yesterday "it is non-sense for users to udpate the module for customizing its templates."

I also write today "it is non-sense for module developpers to udpate the module for comfirming its templates."

First, install altsys.

Then, insert 2 lines into mainfile.php like this:

	if (!isset($xoopsOption['nocommon'])) {
		include XOOPS_ROOT_PATH."/include/common.php";
		$tplsadmin_autoupdate_dirnames = array( 'piCal' ) ;
		include XOOPS_TRUST_PATH."/libs/altsys/include/autoupdate_from_module.inc.php" ;
	}

You can set any module's dirname as array.
Since new templates in dirnames are inserted as DB templates automatically...

"Edit templates -> Preview by just reload"
This is the right way.




You can read more news at PEAK XOOPS.
http://xoops.peak.ne.jp

The URL for this story is:
http://xoops.peak.ne.jp/md/news/index.php?page=article&storyid=116