D3 - namespace of templates

Date 2006-10-04 03:48:11 | Category: XOOPS

in englishin japanese
I'll name D3 modules with these rules.

XOOPS_TRUST_PATH/modules/(trustdirname)/templates/
- main_*     for main (value of $xoopsOption['template_main'])
- block_*    for block (parameter for XoopsTpl::fetch())
- admin_*    for admin (parameter for XoopsTpl::display())
- inc_*      for included from some template main,block, and admin.


Of course, these templates are identified by thier name in XOOPS like:

- (dirname)_main_*
- (dirname)_block_*
- (dirname)_admin_*
- (dirname)_inc_*


Tips: when you use <{include}> in D3 module's template, use backquote.

<{include file=`$mydirname`_inc_*}>






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