获取字典信息
${cms.GetDict(int intDictID[/string strDictName])}
参数 | 描述 |
---|---|
int intDictID[/string strDictName] | 字典ID或者字典名称 |
返回指定字典信息。
提示:需要在后台管理中设置系统配置-数据字典。
#set($dict=$cms.GetDict(1)) 字典名称 : $dict.DictName <br /> 字典描述 : $dict.DictDesc
输出:
字典名称 : Country 字典描述 : 国家