PEAK XOOPS - D3 - namespace of templates in englishin japanese

Archive | RSS |
XOOPS
XOOPS : D3 - namespace of templates
Poster : GIJOE on 2006-10-04 03:48:11 (9218 reads)

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_*}>


0 comments

Related articles
Printer friendly page Send this story to a friend

Comments list

Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!