{include file='ebcms@common/header' /} {php} $channel = \app\content\model\Channel::order('sort desc,id asc') -> select(); $channels = []; \ebcms\Tree::leveltree(\ebcms\Tree::tree($channel),$channels); {/php}

内容管理

{foreach name='channels' item='vo'} {switch name='vo.type'} {case value='jump'} 跳转 {$vo._level|str_repeat='   ',###}┣ {$vo.title} {/case} {case value='page'} 单页 {$vo._level|str_repeat='   ',###}┣ {$vo.title} {/case} {default/} {$vo._level|str_repeat='   ',###}┣{$vo.title} {/switch} {/foreach}
{include file='ebcms@common/footer' /}