Nông dân Bạc Liêu trên đường hội nhập - vpub
nhieu nhat
Có lỗi xảy ra trong quá trình xử lý biểu mẫu.
The following has evaluated to null or missing:
==> assetRenderer.getThumbnailPath(renderRequest) [in template "20097#20125#60577" at line 42, column 23]
----
Tip: If the failing expression is known to 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: img = assetRenderer.getThumbnailPath(... [in template "20097#20125#60577" at line 42, column 17]
----
1<style>
2#fragment-0-twsj{display:none;}
3</style>
4<!--
5<#assign assetEntryQueryService = objectUtil('com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil')>
6
7<#assign assetEntryQuery = objectUtil('com.liferay.asset.kernel.service.persistence.AssetEntryQuery')>
8
9 <#assign attrsnew =["a","b","c"]>
10 ${renderRequest.setAttribute("test",attrsnew)}
11 ${request.setAttribute("test",attrsnew)}
12 <#assign attrs =renderRequest.getAttributeNames()>
13 <#assign attName ='LIFERAY_SHARED_LAYOUT_ASSET_ENTRY'>
14 <#list attrs as item>
15 <#assign attrText =renderRequest.getAttribute(item)>
16 <p style="color:red">${item}</p>
17
18 <#if attName==item>
19 <#assign entry = attrText>
20 </#if>
21
22 <#if item=='PORTLET_ID'>
23 <#assign porlet_id = attrText>
24 </#if>
25 <#if item=='ASSET_PUBLISHER_HELPER'>
26 <#assign assetPublisherHelper = attrText>
27 ${attrText}
28 </#if>
29 </#list>
30 <#if entry??>
31 <#assign assetRenderer = entry.getAssetRenderer()
32
33 entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale))
34 entrySumary = entry.getSummary(locale)
35 entryPublishDate = dateUtil.getDate(entry.getPublishDate(), 'EEE, dd/MM/yyyy, HH:mm', locale)
36 entryCount= entry.getViewCount()
37 cats= entry.getCategories()
38 sizeCat= cats?size
39 sizeC= 0
40 strCat = ''
41 eid= entry.getEntryId()
42 img = assetRenderer.getThumbnailPath(renderRequest)
43>
44
45${assetEntryQuery.setAllCategoryIds(entry.getCategoryIds())}
46${assetEntryQuery.setPublishDate(entry.getPublishDate()) }
47${assetEntryQuery.setOrderByCol1('publishDate') }
48${assetEntryQuery.setEnd(20) }
49${assetEntryQuery}
50<#assign teste = assetEntryQueryService.getEntries(assetEntryQuery)>
51
52
53<#if cats?has_content>
54 <#list cats as cat>
55 <#assign sizeC=sizeC+1
56 strCat= strCat+ cat.getName()>
57 <#if sizeC<sizeCat>
58 <#assign strCat= strCat+ '|'>
59 </#if>
60
61 </#list>
62</#if>
63
64<@liferay_asset["asset-categories-summary"]
65 className=entry.getClassName()
66 classPK=entry.getClassPK()
67 portletURL=renderResponse.createRenderURL()
68 />
69
70</#if>
71
72 -->
73
74
75 <div class="bgtintucctvideo" id="videochitietId" style="display:none;">
76
77 <#if Video.getData() != "">
78 <video width="100%" height="375" controls style="margin-bottom:10px;"> <source id="VideoId" src="${Video.getData()}" type="video/mp4"> Your browser does not support HTML5 video.</video>
79 <#else>
80 <iframe style="margin-bottom:10px;" width="100%" height="375" src="${LinkYoutube.getData()}" frameborder="0" allowfullscreen></iframe>
81 </#if>
82
83 <h6><div class="bgtin_title" style="font-size: 19px;line-height: 27px;padding-bottom: 10px; display: inline-block;">${entryTitle}</div></h6>
84 </div>
85
86 <script>
87 var htmlvideochitiet = $("#videochitietId").html();
88 $("#videochitiet").html(htmlvideochitiet);
89 $("#videochitietId").remove();
90</script>







