获取指定分类的直系下级列表
${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