侧边栏 跳 外链
侧边栏大多都是栏目,如:

华龙芯栏目可以设置外链

代码处理参考:
html
<hlx-template
component-type="column"
component-query-option="{ }"
component-variable="sidebarCurrentCol"
></hlx-template>
<hlx-template
component-type="columns"
component-query-option="{'columnIds':[],'showMedium':'PC','columnScope':'BROTHER'}"
component-variable="sidebarColList"
></hlx-template>
<div class="hlx-page2-sidebar-list">
<th:block th:each="item: ${sidebarColList}">
<a
th:text="${item.name}"
th:href="${#strings.isEmpty(item.outLink)} ? ${item.urlPc} : ${item.outLink}"
th:classappend="${item.id} == ${sidebarCurrentCol.id} ? 'active' : ''"
></a>
</th:block>
</div>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
