调用同级栏目:
{loop categories(getParentCid($catid)) $t} <a href="{$t[url]}"{if $t[catid]==$catid} class="sub_menu_on"{/if}>{$t[catname]}</a> {/loop}
父级栏目内容:
调取格式:
{getcateorygetparent($catid,'项目名')}
其中可调取项:
父级标题:catname
父级副标题:subtitle
父级栏目目录:htmldir
父级栏目图:image
父级栏目封面内容:categorycontent
父级栏目链接:parenturl
当前栏目链接:url
例如调取父级栏目名称:
{getcateorygetparent($catid,'catname')}
截取父级栏目封面内容文字:
{cut(strip_tags(getcateorygetparent($catid,'categorycontent')),300)}