DEDE 调用导航栏的两种方法

标签调用

 

{dede:channelartlist typeid='top' row='10'}

  • {dede:field name='typename'/}


  • {/dede:channelartlist}

     

    SQL语句调用

     


    $dsql->Execute('me',"SELECT * FROM `#@__arctype` arc WHERE ishidden = '0' AND topid = '0' ORDER BY sortrank ASC limit 7");
    while($arr = $dsql->GetArray())
    {
    echo '

  • ';if($arr['ispart']==2){ echo '';}else{echo '';}echo $arr['typename'].'

     


  • ';
    }
    ?>

     

    转载于:https://www.cnblogs.com/nonoleng/p/4701148.html

    你可能感兴趣的:(DEDE 调用导航栏的两种方法)