開源 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>

相關文章
相關標籤/搜索