主题 : cms_content_page标签,生成静态页面报错
级别: 童生
UID: 88414
积分:34 加为好友
威望: 0 精华: 0
主题:1 回复:16
注册时间:2016-05-03
在线时长:0
1#   发表于:2016-05-17 09:02:20  IP:117.48.*.*
我在使用cms_content_page标签做分页,生成静态页面的时候一直报错,无法生成,请问下是什么原因啊
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
2#   发表于:2016-05-17 09:06:35  IP:106.198.*.*
报什么错误,这应该是你模板写错了,把错误信息发下
路漫漫其修远兮,吾将上下而求索!
级别: 童生
UID: 88414
积分:34 加为好友
威望: 0 精华: 0
主题:1 回复:16
注册时间:2016-05-03
在线时长:0
3#   发表于:2016-05-17 09:11:34  IP:49.229.*.*
回复第2楼
会不会和我的栏目设置有关,我的栏目设置贴在附件里面了,
这是模板内容:我拷贝的试用版里面的:[@cms_content_page count='10' orderBy='4' channelId='1' channelOption='2' dateFormat='yyyy-MM-dd']
        [#list tag_pagination.list as a]
        <div class="hdNews hasPic">
            
            [#if a.typeImg??]
            <a href="${a.url}" target="_blank" class="pic" style="border:1px solid #ccc;">
            <img src="${a.typeImg!site.typeImg}" />
            </a>
            [/#if]
            <a href="${a.url}" title="${a.title}" target="_blank">
            <h2>[@text_cut s=a.title len=22 /][#if a.new]<img src="${base}/${site.newPic!}"/>[/#if]</h2>
            </a>
            <p>
            [@text_cut s=a.desc len=60 append='...'/]
            <span style="color:#999">(${a.date?string(dateFormat)})</span>
            </p>
        </div>
        [/#list]
        <div style="clear:both;"></div>
        <div class="pagesite">
        [@cms_pagination sysPage='1'/]
        </div>
        [/@cms_content_page]

附件是我的栏目设置
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
4#   发表于:2016-05-17 09:12:18  IP:106.198.*.*
报什么错啊,你把报错信息贴出来
1
级别: 童生
UID: 88414
积分:34 加为好友
威望: 0 精华: 0
主题:1 回复:16
注册时间:2016-05-03
在线时长:0
5#   发表于:2016-05-17 09:12:25  IP:49.229.*.*
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
6#   发表于:2016-05-17 09:12:44  IP:106.198.*.*
报什么错啊,你把报错信息贴出来
1
级别: 童生
UID: 88414
积分:34 加为好友
威望: 0 精华: 0
主题:1 回复:16
注册时间:2016-05-03
在线时长:0
7#   发表于:2016-05-17 09:13:07  IP:49.229.*.*
回复第4楼
The following has evaluated to null or missing: ==> hrefFormer [in template "WEB-INF/t/cms_sys_defined/style_page/channel_1.html" at line 11, column 62] Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)?? The failing instruction (print stack trace for 3 more): ==> ${hrefFormer} [in template "WEB-INF/t/cms_sys_defined/style_page/channel_1.html" at line 11, column 60]
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
8#   发表于:2016-05-17 09:13:49  IP:106.198.*.*
你这个分页写在哪个页面上了,是栏目页吗
1
级别: 童生
UID: 88414
积分:34 加为好友
威望: 0 精华: 0
主题:1 回复:16
注册时间:2016-05-03
在线时长:0
9#   发表于:2016-05-17 09:15:38  IP:117.48.*.*
回复第8楼
是的,是在顶级栏目下,上面的图片我贴出来了设置
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
10#   发表于:2016-05-17 09:17:35  IP:106.198.*.*
访问路径你加../干嘛
1
1 2 3 > >| 共3页