根據dedecms全局變量$GLOBALS['_sys_globals']['curfile']的值來判斷。
首頁parview
列表頁listview
文章頁archives
調用方法
{dede:php}if($GLOBALS['_sys_globals']['curfile'] == 'list') {echo '';}{/dede:php}