kenney的cms之functions說明(著色的為常用,字段屬性:自己查數據庫表...)
注意:以下的@其實是#符號哦
**0.輔助方法**
> 1.$cms.Cut('demo',12,'...')
> 2.$cms.Format('date','yyyy-MM-dd')
> 3.$cms.SplitStr(string str, int index, int type)
> 4.$cms.GetSplitCount(string str, int type)
> 5.$cms.IsContains(string vars, string var)
**1.獲取子欄目列表**:$cms.GetChildNode(int parentID)
> @foreach($node in $cms.GetChildNode(int parentID))
> $node.NodeID,,,$node.NodeName
> @end
**2.獲取字段列表**:$cms.GetDataFieldInfo(int fieldID)
**3.獲取欄目信息**:$cms.GetNodeInfo(int nodeid)
**4.賦值用法**:#set($cont = '123')
**5.獲取單個內容**:$cms.GetContentInfo(string ContentId)
**6.獲取單個內容**:$cms.GetContent(string GeneralID)
**7.獲取欄目最新單個內容**:$cms.GetTopContent(int nodeID)
**8.獲取若干TOP內容**:$cms.GetContents(int nodeID, string where, string orderBy, int getNum)
**9.獲取分頁內容**:$cms.GetContents(int nodeID, string where, string orderBy, int pageIndex, int pageSize)
**10.獲取內容-圖片文件集**:$cms.GetDownloadList(int typeId, string generalId, int pageIndex, int pageSize)
**11.獲取自定義表內容**:$cms.GetSQL(string sql)