D3 - spec of block templates

Date 2006-10-03 03:19:46 | Category: XOOPS

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.




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