开源 java CMS - FreeCMS2.8 自定义标签 channelPath

项目地址:http://www.freeteam.cn/html

​​​​​​​channelPathurl

按上下级顺序提取指定栏目的所属栏目路径。spa

参数htm

说明对象

id索引

栏目idci

siteidget

栏目所属站点idit

pagemarktable

栏目页面标识

 

返回值

说明

channel

栏目对象,类型为数据对象channel

index

索引

size

从FreeCMS 2.4开始支持

列表长度

 

示例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>

相关文章
相关标签/搜索