jeecms 链接标签

.引入页面

[#include "../include/header-site.html"/]
1
2.导航栏
只有前两个带链接

[#if c_index<2] href="${c.url}" [#else] href="javascript:;" [/#if]


<div class="ms-hr-navbox">
[@cms_channel_list]
<ul class="ms-hr-navlist f-clear">
[#if !channel??]
[#list tag_list as c]
<li>
<a [#if c_index<2] href="${c.url}" [#else] href="javascript:;" [/#if] >
<figure>
<i class="iconfont icon-sj_4"></i>
<figcaption>${c.name}</figcaption>
</figure>
</a>
</li>
[/#list]
[#else]
[#list tag_list as c]
<li [#if channel??&&channel.id==c.id]class="on"[/#if]> <a [#if c_index<2] href="${c.url}" [#else] href="javascript:;" [/#if] >
<figure>
<i class="iconfont icon-sj_4"></i>
<figcaption>${c.name}</figcaption>
</figure></a></li>
[/#list]
[/#if]
</ul>
[/@cms_channel_list]

</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30


3.链接到别的页面某块功能

<a href="${base}/smfw/index.jhtml?jy">小学划片查询</a>
1

 

4.子菜单并且带连接

[@cms_channel_list parentId='76' orderBy='4']
[#list tag_list as c]
<li class="tabs-trigger"><a href="${c.url}" id="tc_1${c_index+1}">${c.name}</a></li>
<!--<a href="${c.url}" onmouseover="HoverLi('tc_','tcn_',1,${c_index+1},${tag_list?size});" [#if c_index<1]class="curr"[#else]class="normaltab"[/#if] id="tc_1${c_index+1}">${c.name}</a>-->
[/#list]
[/@cms_channel_list]
1
2
3
4
5
6


---------------------
作者:刘长大
来源:优快云
原文:https://blog.youkuaiyun.com/weixin_40009737/article/details/88740689
版权声明:本文为博主原创文章,转载请附上博文链接!

转载于:https://www.cnblogs.com/Jeely/p/11214673.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值