PEAK XOOPS - D3 - spec of block templates in englishin japanese

Archive | RSS |
XOOPS
XOOPS : D3 - spec of block templates
Poster : GIJOE on 2006-10-03 03:19:46 (10559 reads)

in englishin japanese
For block, use main templates instead of block's template.


	$tpl =& new XoopsTpl() ;
	$tpl->assign( 'block' , $block ) ;
	$ret['content'] = $tpl->fetch( 'db:'.$mydirname.'_block_(template_name).html' ) ;
	return $ret ;


This is excellent way than block template, because you can specify the template -file or db- for each blocks by block's option.

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!