IList<CategoryInfo> GetChildCates(int intParentID[/string strIdentifier])

定义和用法

获取指定分类的直系下级列表

语法

${shop.GetChildCates(int intParentID[/string strIdentifier])}
参数 描述
int intParentID[/string strIdentifier] 指定的分类ID或者分类标识

返回值

返回指定分类的直系下级列表。

提示和注释

提示:仅返回直系下级分类,不包括多层子级。

例子

            #foreach($item in ${shop.GetChildCates(0)})
                ${item.CategoryName} ${item.Sort}<br />
            #end
        

输出:

            电子狗 1 
            点烟器 2