新版本的 PC编辑器中 也采用了该功能

			
				
admin			
			2016-12-9
		
1.5.1 版本中新增了 板块分组
类似于 DZ 这样的

目前官方模板中已经使用



板块分组数据 并没有在论坛初始化时 自动获取到自定义变量中, 因为该分组数据是少用的
所以需要手动去获取分组数据
例子可以从 /View/hy_boos/forum_index.html 中查看
1.5.1版本中才会有这个文件
{include h}
<div class="container">
	<?php 
	$forum_group = cache('forum_group');
	if(empty($forum_group)){
		$forum_group = S("Forum_group")->select('*');
		cache('forum_group',$forum_group);
	}
	?>
	{foreach (array)$forum_group as $v}
	<div id="" class="wrap-box forum" style="margin-bottom:10px">
		<h3>{$v.name}</h3>
		<ul>
			{foreach $forum as $key => $vv}
			{if $vv['fgid'] == $v['id']}
			<li> 
				<a href="<?php echo WWW.URL('forum','',EXP.$v['id']); ?>">
	            	<i class="cc_logo"> 
	            		<img src="{#WWW}upload/forum{$key}.png" onerror="this.src='{#WWW}upload/de.png'" align="left" alt="" width="97" >
		            </i> 
		            <strong>{$vv.name}</strong>
		            {if view_form('hy_boss','forum_html_on')}
		            <p>{$vv.html}</p>
		            {/if}
	            </a>
            </li>
            {/if}
            {/foreach}
        </ul>
	</div>
	{/foreach}
</div>
{include f}
其中的
<?php 
	$forum_group = cache('forum_group');
	if(empty($forum_group)){
		$forum_group = S("Forum_group")->select('*');
		cache('forum_group',$forum_group);
	}
	?>
既是调出 分组数据 并进行 数据缓存
下面的就是循环输出分组 然后从板块的 fgid中 判断是否属于 分组id