最近phpcms官方發(fā)布了最新的v9正常版本,但是對于調(diào)用標(biāo)簽和說明相對較少。最近做了一個網(wǎng)站使用的最新版本,在這里陸續(xù)把一些常用到的調(diào)用方法列出來以供參考: V9中列表頁調(diào)用當(dāng)前同級欄目名稱列表方法!
{pc:content action="category" catid="$parentid" num="25" siteid="$siteid" order="listorder ASC"} {loop $data $r} <table width="198" border="0" cellspacing="0" cellpadding="0" class="news_5"> <tr> <td width="27" height="36" valign="middle"><img src="{APP_PATH}phpcms/templates/default/content/images/ly_r49_c6.jpg" width="27" height="12" /></td> <td align="left" valign="middle"><a href="{$r[url]}">{$r[catname]}</a></td> </tr> <tr> <td height="3" colspan="2" background="{APP_PATH}phpcms/templates/default/content/images/ly_r51_c6.jpg"></td> </tr> </table> {/loop} {/pc}
V9中內(nèi)容頁調(diào)用當(dāng)前欄目的同級欄目方法!
{pc:content action="category" siteid="1" catid="$top_parentid" num="25"} {loop $data $r} <table width="198" border="0" cellspacing="0" cellpadding="0" class="news_5"> <tr> <td width="27" height="36" valign="middle"><img src="{APP_PATH}phpcms/templates/default/content/images/ly_r49_c6.jpg" width="27" height="12" /></td> <td align="left" valign="middle"><a href="{$r[url]}">{$r[catname]}</a></td> </tr> <tr> <td height="3" colspan="2" background="{APP_PATH}phpcms/templates/default/content/images/ly_r51_c6.jpg"></td> </tr> </table> {/loop} {/pc}
|