下载地址:http://code.google.com/p/freecms/ html
从FreeCMS 1.3 开始支持 url
按上下级顺序提取指定栏目的所属栏目路径。 spa
参数 code |
说明 htm |
id 对象 |
栏目id 索引 |
siteid ci |
栏目所属站点id get |
pagemark |
栏目页面标识 |
返回值 |
说明 |
channel |
栏目对象,类型为数据对象channel |
index |
索引 |
示例1
您的位置:
<a href="${contextPath}site/${site.sourcepath}/index.html">首页</a>
<@channelPath siteid="${site.id}" id="${currChannel.id}" ;channel>
- <a href="${channel.pageurl}">${channel.name}</a>
</@channelPath>