Trang chủ
Có lỗi xảy ra trong quá trình xử lý biểu mẫu.
The following has evaluated to null or missing:
==> saxReaderUtil.read(journalArticle.getContent()) [in template "20101#20129#42622" at line 16, column 33]
----
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: #assign document = saxReaderUtil.read... [in template "20101#20129#42622" at line 16, column 13]
----
1<#--
2Widget templates can be used to modify the look of a
3specific application.
4
5Please use the left panel to quickly add commonly used variables.
6Autocomplete is also available and can be invoked by typing "${".
7-->
8<#if entries?has_content>
9 <#assign index=0/>
10 <#list entries as curEntry>
11 <#assign renderer=curEntry.getAssetRenderer() />
12 <#assign className = renderer.getClassName()/>
13 <#assign video_link=""/>
14 <#if className="com.liferay.journal.model.JournalArticle">
15 <#assign journalArticle = renderer.getArticle() />
16 <#assign document = saxReaderUtil.read(journalArticle.getContent())/>
17 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
18 <#assign smallImage=journalArticle.getSmallImageURL()/>
19 <#assign rootElement = document.getRootElement() />
20 <#list rootElement.elements() as dynamicElement>
21 <#if "video_link" = dynamicElement.attributeValue("name")>
22 <#assign video_link=dynamicElement.element("dynamic-content").getText()/>
23 </#if>
24
25 </#list>
26 <#if index==0>
27 <div class="phim_tu_lieu mb-25">
28 <div class="video-post-area">
29 <div class="single-video-post">
30 <img src="${renderer.getThumbnailPath(renderRequest)}" alt="${curEntry.getTitle(locale)}">
31 <div class="videobtn">
32 <h4>
33 <a data-fancybox="" href="${video_link}">${curEntry.getTitle(locale)}</a>
34 </h4>
35 </div>
36 </div>
37 </div>
38 </div>
39 </#if>
40 <#if index == 1>
41 <div class="row gutters_025 mt-2">
42 <div class="col-3">
43 <div class="img_sub">
44 <a data-fancybox class="gallery" href="${video_link}">
45 <img src="${renderer.getThumbnailPath(renderRequest)}" alt="${curEntry.getTitle(locale)}">
46 </a>
47 </div>
48 </div>
49 </#if>
50 <#if index gt 1>
51 <div class="col-3">
52 <div class="img_sub">
53 <a data-fancybox class="gallery" href="${video_link}">
54 <img src="${renderer.getThumbnailPath(renderRequest)}" alt="${curEntry.getTitle(locale)}">
55 </a>
56 </div>
57 </div>
58 </#if>
59 <#assign index=index+1/>
60
61
62 </#if>
63 </#list>
64</#if>
Có lỗi xảy ra trong quá trình xử lý biểu mẫu.
The following has evaluated to null or missing:
==> saxReaderUtil.read(journalArticle.getContent()) [in template "20101#20129#43122" at line 19, column 41]
----
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: #assign document = saxReaderUtil.read... [in template "20101#20129#43122" at line 19, column 21]
----
1<#--
2Widget templates can be used to modify the look of a
3specific application.
4
5Please use the left panel to quickly add commonly used variables.
6Autocomplete is also available and can be invoked by typing "${".
7-->
8<div class="lien_ket_website">
9 <div class="form-group">
10 <select onchange="if (this.value) window.location.href=this.value">
11 <option>-- Chọn liên kết --</option>
12 <#if entries?has_content>
13 <#list entries as entry>
14 <#assign link_address=""/>
15 <#assign assetRenderer=entry.getAssetRenderer() />
16 <#assign className = assetRenderer.getClassName()/>
17 <#if className="com.liferay.journal.model.JournalArticle">
18 <#assign journalArticle = assetRenderer.getArticle() />
19 <#assign document = saxReaderUtil.read(journalArticle.getContent())/>
20 <#assign rootElement = document.getRootElement() />
21 <#list rootElement.elements() as dynamicElement>
22 <#if "link_address" = dynamicElement.attributeValue("name")>
23 <#assign link_address=dynamicElement.element("dynamic-content").getText()/>
24 </#if>
25
26 </#list>
27 <option value="${link_address}">${entry.getTitle(locale)}</option>
28 </#if>
29
30 </#list>
31
32 </#if>
33 </select>
34 </div>
35</div>




