主题 : 您好,系统报的这个错误,使用${content.title}这个标签报错 |
级别: 秀才
![]() |
4# 发表于:2019-08-21 09:30:14 IP:1.165.*.*
The following has evaluated to null or missing: ==> content [in template "WEB-INF/t/cms/www/default/channel/news -gywm.html" at line 36, column 15] ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like 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 parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${content.title} [in template "WEB-INF/t/cms/www/default/channel/news -gywm.html" at line 36, column 13] ----
这个错位,是不是页面少引入东西了 |
||
---|---|---|---|
级别: 论坛管理员
![]() |
5# 发表于:2019-08-21 09:31:41 IP:117.128.*.*
您好 您看下您那边的模板news -gywm.html 他提示的是您这个模板下的标签使用错误
|
||
---|---|---|---|
级别: 秀才
![]() |
6# 发表于:2019-08-21 10:30:06 IP:1.165.*.*
我能直接取文章的内容吗?比如 文章id 为 735 的内容,直接取值,不通过栏目遍历
|
||
---|---|---|---|
级别: 论坛管理员
![]() |
7# 发表于:2019-08-21 10:34:37 IP:117.128.*.*
可以 但是对应的参数也要换掉 并且我不了解您那边是如何制作的 您对应的标签要使用正确
|
||
---|---|---|---|