Pular para o conteúdo
Um erro ocorreu enquanto processava o modelo.
Expression xPathSelector.selectSingleNode(rootElement) is undefined on line 26, column 34 in 20154#20194#25319.
1<style> 
2.pagetitle-content input[type="text"] { 
3    color: #fff; 
4    background: rgba(255,255,255,0.3); 
5    border: 0; 
6    padding: 3px 5px; 
7    margin-top: 5px; 
8
9.lfr-token-list{display:none;} 
10.search-layout{display:none;} 
11.control-group{margin-bottom:0 !important;} 
12.pagetitle-content form{margin-bottom:0;display:-webkit-inline-box;margin-left: 20px;} 
13.pagetitle-content{padding:5px 0 0 !important;} 
14</style> 
15 
16<div class="news-list"> 
17	<#list entries as entry> 
18        <#assign renderer = entry.getAssetRenderer() > 
19        <#assign className = renderer.getClassName() > 
20        <#if className == "com.liferay.portlet.journal.model.JournalArticle" > 
21            <#assign journalArticle = renderer.getArticle() > 
22            <#assign document = saxReaderUtil.read(journalArticle.getContent()) > 
23            <#assign rootElement = document.getRootElement() > 
24			 
25            <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='full_text']") > 
26            <#assign full_text = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
27			 
28			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='slideshow']") > 
29            <#assign slideshow = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
30             
31            <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='full_image']") > 
32			<#assign full_img = xPathSelector.selectSingleNode(rootElement).getStringValue() > 
33			 
34			<#assign link = entry.getAssetRenderer().getURLViewInContext(renderRequest, renderResponse, '') /> 
35			<#assign date = journalArticle.displayDate?string["dd 'de' MMMM 'de' yyyy 'às' HH:mm"] > 
36			<#assign titulo = entry.getTitle(locale) /> 
37			 
38			<#if "assetLinkBehavior" != "showFullContent" > 
39                <#-- assign link = renderer.getURLViewInContext(renderRequest, renderResponse, link) --> 
40            </#if> 
41                         
42			<#if full_img?trim == "" > 
43                <div class="news-item"> 
44                    <p style="font-weight:200;margin:0;">${date} |  
45                    <span style="text-transform:uppercase;font-size: 14px;font-weight: 700;color: #5B689B;"> 
46                        <#list entry.getCategories() as cat> 
47							${cat.name} 
48							<#break> 
49						</#list> 
50                    </span> 
51                    <#if themeDisplay.isSignedIn() > 
52                        <span style="color:#888"> <i class="icon-eye-open"></i> ${entry.viewCount}</span> 
53                    </#if> 
54                    </p> 
55                    <h3 style="margin:0;"><a href="${link}" class="title" style="font-size:22px;">${titulo}</a></h3> 
56                </div> 
57            <#else> 
58                <div class="news-item" style="padding: 20px 0;"> 
59                    <p style="font-weight:200;margin:0;">${date} |  
60                    <span style="text-transform:uppercase;font-size: 14px;font-weight: 700;color: #5B689B;"> 
61                        <#list entry.getCategories() as cat> 
62							${cat.name} 
63							<#break> 
64						</#list> 
65                    </span> 
66                    <#if themeDisplay.isSignedIn() > 
67                        <span style="color:#888"> <i class="icon-eye-open"></i> ${entry.viewCount}</span> 
68                    </#if> 
69                    </p> 
70                    <div class="row-fluid"> 
71                        <div class="span3"><img src="${full_img?trim}&imageThumbnail=2" /></div> 
72                        <div class="span9"><h3 style="margin:0;"><a href="${link}" class="title" style="font-size: 22px;">${titulo}</a></h3></div> 
73                    </div> 
74                </div> 
75            </#if> 
76        </#if> 
77    </#list> 
78</div> 
79 
80<script> 
81    searchInterno(); 
82</script>