[@ChannelList isNav='true'; channels]
[#list channels as bean]
<a href="${bean.url}">${bean.name}</a>
[/#list]
[/@ChannelList]
[@ChannelList parentId='23' isNav='true'; channels]
[#list channels as bean]
<a href="${bean.url}">${bean.name}</a>
[/#list]
[/@ChannelList]
[@ChannelList isNav='true'; channels]
<ul>
[#list channels as parent]
<li>
<a href="${parent.url}">${parent.name}</a>
[#if parent.hasChildren]
[@ChannelList parentId=parent.id isNav='true'; subs]
<ul>
[#list subs as sub]
<li><a href="${sub.url}">${sub.name}</a></li>
[/#list]
</ul>
[/@ChannelList]
[/#if]
</li>
[/#list]
</ul>
[/@ChannelList]
true
false
true
false
true
false
true
时包含所有后代栏目(子级、孙级等),设为 false
时仅包含直接子栏目。默认false
curl --location --request GET 'https://demo.ujcms.com/api/channel'
null
null
seoDescription
seoTitle
,如不存在,则获取栏目名称seoKeywords
seoDescription
seoTitle
,如不存在,则获取栏目名称null
seoDescription
seoTitle
,如不存在,则获取栏目名称seoKeywords
seoKeywords
[
{
"id": 0,
"siteId": 0,
"parentId": 0,
"channelModelId": 0,
"articleModelId": 0,
"performanceTypeId": 0,
"name": "string",
"alias": "string",
"type": 0,
"articleTemplate": "string",
"channelTemplate": "string",
"image": "string",
"linkUrl": "string",
"processKey": "string",
"targetBlank": true,
"real": true,
"nav": true,
"pageSize": 0,
"orderDesc": true,
"allowComment": true,
"allowContribute": true,
"allowSearch": true,
"created": "2019-08-24T14:15:22Z",
"modified": "2019-08-24T14:15:22Z",
"depth": 0,
"order": 0,
"views": 0,
"selfViews": 0,
"book": true,
"channelStaticPath": "string",
"mainsJson": "string",
"clobsJson": "string",
"customs": {
"property1": {},
"property2": {}
},
"hasChildren": true,
"children": [
{}
],
"parent": {},
"site": {
"id": 0,
"parentId": 0,
"orgId": 0,
"modelId": 0,
"name": "string",
"description": "string",
"protocol": "string",
"domain": "string",
"subDir": "string",
"theme": "string",
"mobileTheme": "string",
"pageSize": 0,
"logo": "string",
"seoTitle": "string",
"seoKeywords": "string",
"seoDescription": "string",
"staticFile": "string",
"mobileStaticFile": "string",
"editorSettings": "string",
"status": 0,
"depth": 0,
"order": 0,
"views": 0,
"selfViews": 0,
"todayViews": 0,
"yesterdayViews": 0,
"maxViews": 0,
"maxDate": "2019-08-24T14:15:22Z",
"mainsJson": "string",
"clobsJson": "string",
"customs": {
"property1": {},
"property2": {}
},
"watermark": {
"enabled": true,
"overlay": "string",
"position": 0,
"dissolve": 0,
"minWidth": 0,
"minHeight": 0
},
"html": {
"enabled": true,
"auto": true,
"listPages": 0,
"channel": "string",
"article": "string",
"enabledAndAuto": true
},
"messageBoard": {
"enabled": true,
"loginRequired": true
},
"editor": {
"property1": {},
"property2": {}
},
"copyFromId": 0,
"copyData": [
"string"
],
"hasChildren": true,
"parent": {},
"org": {
"id": 0,
"parentId": 0,
"name": "string",
"phone": "string",
"address": "string",
"contacts": "string",
"depth": 0,
"order": 0,
"hasChildren": true,
"names": [
"string"
],
"paths": [
{}
]
},
"model": {
"id": 0,
"siteId": 0,
"name": "string",
"type": "string",
"scope": 0,
"order": 0,
"mains": "string",
"asides": "string",
"customs": "string"
},
"enabled": true,
"url": "string",
"names": [
"string"
],
"template": "string",
"title": "string",
"staticBase": "string",
"paths": [
{}
],
"disabled": true,
"htmlEnabled": true,
"filesPath": "string",
"mobileStaticUrl": "string",
"api": "string",
"dy": "string",
"dynamicUrl": "string",
"staticUrl": "string",
"normalStaticUrl": "string",
"targetBlank": true
},
"channelModel": {
"id": 0,
"siteId": 0,
"name": "string",
"type": "string",
"scope": 0,
"order": 0,
"mains": "string",
"asides": "string",
"customs": "string"
},
"articleModel": {
"id": 0,
"siteId": 0,
"name": "string",
"type": "string",
"scope": 0,
"order": 0,
"mains": "string",
"asides": "string",
"customs": "string"
},
"performanceType": {
"id": 0,
"siteId": 0,
"name": "string",
"score": 0,
"order": 0
},
"description": "string",
"url": "string",
"names": [
"string"
],
"title": "string",
"paths": [
{}
],
"link": true,
"dynamicUrl": "string",
"staticUrl": "string",
"keywords": "string"
}
]