标签名称 |
描述 |
SQL调用方法 |
{dede:channel} |
显示当前栏目信息 |
SELECT * FROMdede_channel WHERE id = #{栏目ID} |
{dede:channel type='self'} |
显示当前栏目信息(包括父级栏目) |
SELECT * FROMdede_channel WHERE id = #{栏目ID} OR pid = #{栏目ID} |
{dede:channel type='son'} |
显示当前栏目的子栏目信息 |
SELECT * FROMdede_channel WHERE pid = #{栏目ID} |
{dede:channel type='selfson'} |
显示当前栏目及其子栏目信息 |
SELECT * FROMdede_channel WHERE pid = #{栏目ID} OR id = #{栏目ID} |
{dede:channel type='allson'} |
显示当前栏目及其所有子栏目信息 |
SELECT * FROMdede_channel WHERE pid IN (SELECT id FROMdede_channel WHERE pid = #{栏目ID}) OR id = #{栏目ID} |
{dede:channel type='tree'} |
显示当前栏目的树形结构 |
SELECT * FROMdede_channel WHERE pid = #{栏目ID} ORDER BY sortrank ASC |
{dede:channel type='list'} |
显示当前栏目的列表信息 |
SELECT * FROMdede_channel WHERE id = #{栏目ID} |
{dede:channel type='sonlist'} |
显示当前栏目的子栏目列表信息 |
SELECT * FROMdede_channel WHERE pid = #{栏目ID} ORDER BY sortrank ASC |
{dede:channel type='selfsonlist'} |
显示当前栏目及其子栏目列表信息 |
SELECT * FROMdede_channel WHERE pid = #{栏目ID} OR id = #{栏目ID} ORDER BY sortrank ASC |
{dede:channel type='allsonlist'} |
显示当前栏目及其所有子栏目列表信息 |
SELECT * FROMdede_channel WHERE pid IN (SELECT id FROMdede_channel WHERE pid = #{栏目ID}) OR id = #{栏目ID} ORDER BY sortrank ASC |
{dede:channel type='position'} |
显示当前栏目位置信息 |
SELECT * FROMdede_channel WHERE id = #{栏目ID} |
{dede:channel type='positionlink'} |
显示当前栏目位置信息及链接 |
SELECT * FROMdede_channel WHERE id = #{栏目ID} |
{dede:channel type='positiontitle'} |
显示当前栏目位置信息及标题 |
SELECT * FROMdede_channel WHERE id = #{栏目ID} |