主题 : 首页标签问题 |
级别: 版主
![]() |
11# 发表于:2015-10-16 08:42:55 IP:220.40.*.*
|
||||
---|---|---|---|---|---|
级别: 童生
![]() |
12# 发表于:2015-10-28 13:58:29 IP:114.194.*.*
请问商业版的文库 功能可以使用吗?比如上传的excel 或是word能在线浏览吗
|
||
---|---|---|---|
级别: 版主
![]() |
13# 发表于:2015-10-28 14:01:19 IP:182.183.*.*
word可以,excel应该不行,文库是商业版的功能
http://www.jeecms.com/jinlei/383.htm |
||
---|---|---|---|
级别: 童生
![]() |
14# 发表于:2015-10-28 14:10:25 IP:114.194.*.*
回复第11楼用这个标签遍历附件.报错了
14:06:34.087 ERROR freemarker.runtime - Error executing FreeMarker template freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> content [in template "WEB-INF/t/cms/www/default/index/index.html" at line 109, column 46] 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: ==> #if content.attachments?size gt 0 [in template "WEB-INF/t/cms/www/default/index/index.html" at line 109, column 41] at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98) ~[freemarker.jar:2.3.20] at freemarker.core.UnexpectedTypeException.newDesciptionBuilder(UnexpectedTypeException.java:41) ~[freemarker.jar:2.3.20] at freemarker.core.UnexpectedTypeException.<init>(UnexpectedTypeException.java:24) ~[freemarker.jar:2.3.20] at freemarker.core.Dot._eval(Dot.java:81) ~[freemarker.jar:2.3.20] at freemarker.core.Expression.eval(Expression.java:111) ~[freemarker.jar:2.3.20] at freemarker.core.MiscellaneousBuiltins$sizeBI._eval(MiscellaneousBuiltins.java:42) ~[freemarker.jar:2.3.20] at freemarker.core.Expression.eval(Expression.java:111) ~[freemarker.jar:2.3.20] at freemarker.core.EvalUtil.compare(EvalUtil.java:146) ~[freemarker.jar:2.3.20] |
||
---|---|---|---|
级别: 版主
![]() |
15# 发表于:2015-10-28 14:14:02 IP:182.183.*.*
你首页写这个干嘛?附件只能在内容详细页里取,你首页加个附件标签,系统哪里知道你要获取哪个文章下的附件
|
||
---|---|---|---|
级别: 童生
![]() |
16# 发表于:2015-10-28 14:16:41 IP:114.194.*.*
回复第15楼应客户要求.无论他们发在那个栏目下的文档,我们都统一给他在首页单独弄出一个栏目模块来统一显示.不分栏目,点击更多可以分页查看.首页就显示几条最新的而已.
|
||
---|---|---|---|
级别: 版主
![]() |
19# 发表于:2015-10-28 14:46:17 IP:182.183.*.*
[@cms_content_list count='5' orderBy='4' typeId='3' titLen='18' channelOption='1' channelId='1']
[#list tag_list as a] <a href="${a.attachPath}" id="attach${a.attach_index}">${a.attachName}</a> [/#list] [/@cms_content_list] 这样试下 |
||
---|---|---|---|