EUCMS擁有強大的標簽系統,最基礎的是獲取任意欄目字段,介紹寫法如下:
{eucms table="class_eu" where id=1}{classname}{/eucms}
1可以替換為任何欄目的ID,這是獲取欄目名稱,是不是很簡單?
由此我們可以延深一下,欄目的單頁內容代碼如下:
{eucms table="class_eu" where=" id=1 and dh=1"}{classname}{/eucms}
這樣我們就可以做一個首頁的關于我們模塊了,代碼如下:
<div class="title"><span style="float:left">{eucms table="class_eu" where id=1}{classname}{/eucms}</span><span style="float:right"><a href="[clink]">詳細...</a></span></div>
<div class="content">{eucms table="class_eu" where id=1}{content fun="delhtml" len="300" /}{/eucms}</div>
特定信息鏈接為:[clink]
[clink] 為欄目鏈接
clink不是欄目表里的字段,為我們針對偽靜態、動態鏈接而特制的字段,-->