The right way to customize templates

Date 2006-08-05 17:03:14 | Category: XOOPS

in englishin japanese

for light customizing
1. intall altsys
2. altsys -> templates -> Create a new set -> Base: [(blank)] -> name: [custom] -> push [create]
3. system -> preferences -> general -> template sets -> set [custom]
(1,2,3 is a step for preparation. repeat 4 and 5 as necessary.)
4. select the template you want to customize in the default col, and select [custom] as to: in the default col. Then push [COPY].
5. edit the templates in custom col.

for heavy customizing
0. set up XSAS, and prepare templates folder just under theme folder (eg XOOPS_ROOT_PATH/themes/mytheme/templates¡Ë
1,2,3 same as light version
4. Copy all of templates from DB-default to DB-custom
5. download templates via altsys -> Advanced Templates -> Download Templates -> [custom]
6. extract the archive and copy each html files into the templates/ folder built on step 0
7. edit mainfile.php under XSAS, and insert a line like this.

	if (!isset($xoopsOption['nocommon'])) {
		include XOOPS_ROOT_PATH."/include/common.php";
		include XOOPS_TRUST_PATH."/libs/altsys/include/autoupdate_from_theme.inc.php" ;

	}


Edit each html files by Dreamweaver etc.
You can preview the site just by reloading browser.
After editing in local site, upload html files as a zip file to remote site via altsys -> Advanced templates.
That's all.






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=344