Skip to Content

Web Content Article

An error occurred while processing the template.
Expression subTitle1 is undefined on line 69, column 27 in 13366#13404#115026.
1<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
2 
3 
4	 
5	<table class="table table-bordered table-striped"> 
6	<thead> 
7<tr>	<th class="table-header table-sortable-column"> 
8<strong>Titel</strong></th> 
9	 
10	<th class="table-header">Inhalt</th> 
11	<th class="table-header">Inhalt1    </th> 
12	<th class="table-header">Inhalt2    </th> 
13	<th class="table-header">Icons  </th></tr> 
14	</thead>	 
15	<tbody class="table-data"> 
16	<#list entries as entry> 
17	<#assign entry = entry /> 
18 
19	<#assign assetRenderer = entry.getAssetRenderer() /> 
20 
21	<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
22	 
23	<#assign className = assetRenderer.getClassName()  /> 
24 
25    <#if className == "com.liferay.portlet.journal.model.JournalArticle"> 
26    <#assign journalArticle = assetRenderer.getArticle()  /> 
27    <#assign document = saxReaderUtil.read(journalArticle.getContent())/> 
28    <#assign rootElement = document.getRootElement() /> 
29     
30    <#list rootElement.elements() as dynamicElement > 
31        <#if "Bild1689" == dynamicElement.attributeValue("name")  > 
32            <#assign subTitle1 = dynamicElement.element("dynamic-content").getText()  /> 
33             
34             
35             
36        </#if> 
37        </#list>  
38          
39    <#list rootElement.elements() as dynamicElement > 
40        <#if "Textbereich1956" == dynamicElement.attributeValue("name")  > 
41            <#assign subTitle2 = dynamicElement.element("dynamic-content").getText()  /> 
42             
43             
44             
45        </#if> 
46         
47        </#list>  
48         
49          <#list rootElement.elements() as dynamicElement > 
50        <#if "uberschrift12" == dynamicElement.attributeValue("name")  > 
51            <#assign subTitle3 = dynamicElement.element("dynamic-content").getText()  /> 
52             
53             
54             
55        </#if> 
56         
57        </#list>  
58      	</#if> 
59 
60	<#if assetLinkBehavior != "showFullContent"> 
61		<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
62	</#if> 
63	<tr> 
64	 
65<td class="table-cell">	<h4><a href="${viewURL}">${entry.getTitle(locale)}</a></h4></td> 
66	<td class="table-cell"> 
67		 
68			 
69		<h5>	${subTitle1}</h5> 
70	 
71 
72			<#assign subTitle1 = "Gibt es nicht!"/> 
73		 
74			 
75 
76         	</td> 
77			<td class="table-cell"> 
78		<h5>	${subTitle2}</h5> 
79		 
80			<#assign subTitle2 = "Gibt es nicht!"/> 
81		 
82		 
83			</td> 
84			 
85			 
86			 
87			 
88			 
89			<td class="table-cell"> 
90		 
91		 
92		<h5>	${subTitle3}</h5> 
93		<#assign subTitle3 = "Gibt es nicht!"/> 
94		 
95		 
96			</td> 
97			 
98			<td class="table-cell"> 
99 
100 
101             <@getEditIcon /> 
102              
103	         <@getPrintIcon /> 
104 
105			 <@getFlagsIcon /> 
106 
107 
108			</td> 
109 
110 
111 
112 
113 
114	</tr> 
115	 
116 
117	</#list> 
118</tbody> 
119 
120	</table> 
121 
122	 
123 
124				 
125 
126				<a href="${viewURL}"><@liferay.language key="read-more" /><span class="aui-helper-hidden-accessible"><@liferay.language key="about" />${entry.getTitle(locale)}</span> &raquo;</a> 
127		 
128 
129			 
130 
131 
132 
133 
134<#macro getDiscussion> 
135	<#if validator.isNotNull(assetRenderer.getDiscussionPath()) && (enableComments == "true")> 
136		<br /> 
137 
138		<#assign discussionURL = renderResponse.createActionURL() /> 
139 
140		${discussionURL.setParameter("struts_action", "/asset_publisher/" + assetRenderer.getDiscussionPath())} 
141 
142		<@liferay_ui["discussion"] 
143			className=entry.getClassName() 
144			classPK=entry.getClassPK() 
145			formAction=discussionURL?string 
146			formName="fm" + entry.getClassPK() 
147			ratingsEnabled=enableCommentRatings == "true" 
148			redirect=portalUtil.getCurrentURL(request) 
149			subject=assetRenderer.getTitle(locale) 
150			userId=assetRenderer.getUserId() 
151		/> 
152	</#if> 
153</#macro> 
154 
155<#macro getEditIcon> 
156	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
157		<#assign redirectURL = renderResponse.createRenderURL() /> 
158 
159		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
160		${redirectURL.setWindowState("pop_up")} 
161 
162		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL) /> 
163 
164		<#if validator.isNotNull(editPortletURL)> 
165			<#assign title = languageUtil.format(locale, "edit-x", htmlUtil.escape(assetRenderer.getTitle(locale))) /> 
166 
167			<@liferay_ui["icon"] 
168				image="edit" 
169				message=title 
170				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
171			/> 
172		</#if> 
173	</#if> 
174</#macro> 
175 
176<#macro getFlagsIcon> 
177	<#if enableFlags == "true"> 
178		<@liferay_ui["flags"] 
179			className=entry.getClassName() 
180			classPK=entry.getClassPK() 
181			contentTitle=entry.getTitle(locale) 
182			label=false 
183			reportedUserId=entry.getUserId() 
184		/> 
185	</#if> 
186</#macro> 
187 
188<#macro getMetadataField fieldName> 
189	<#if stringUtil.split(metadataFields)?seq_contains(metadataFieldName)> 
190		<span class="metadata-entry metadata-"${metadataFieldName}> 
191			<#assign dateFormat = "dd MMM yyyy - HH:mm:ss" /> 
192 
193			<#if fieldName == "author"> 
194				<@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
195			<#elseif fieldName == "categories"> 
196				<@liferay_ui["asset-categories-summary"] 
197					className=entry.getClassName() 
198					classPK=entry.getClassPK() 
199					portletURL=renderResponse.createRenderURL() 
200				/> 
201			<#elseif fieldName == "create-date"> 
202				${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
203			<#elseif fieldName == "expiration-date"> 
204				${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
205			<#elseif fieldName == "modified-date"> 
206				${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
207			<#elseif fieldName == "priority"> 
208				${entry.getPriority()} 
209			<#elseif fieldName == "publish-date"> 
210				${ddateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
211			<#elseif fieldName == "tags"> 
212				<@liferay_ui["asset-tags-summary"] 
213					className=entry.getClassName() 
214					classPK=entry.getClassPK() 
215					portletURL=renderResponse.createRenderURL() 
216				/> 
217			<#elseif fieldName == "view-count"> 
218				<@liferay_ui["icon"] 
219					image="history" 
220				/> 
221 
222				${entry.getViewCount()} <@liferay.language key="views" /> 
223			</#if> 
224		</span> 
225	</#if> 
226</#macro> 
227 
228<#macro getPrintIcon> 
229	<#if enablePrint == "true" > 
230		<#assign printURL = renderResponse.createRenderURL() /> 
231 
232		${printURL.setParameter("struts_action", "/asset_publisher/view_content")} 
233		${printURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
234		${printURL.setParameter("viewMode", "print")} 
235		${printURL.setParameter("type", entry.getAssetRendererFactory().getType())} 
236 
237		<#if (validator.isNotNull(assetRenderer.getUrlTitle()))> 
238			<#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())> 
239				${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)} 
240			</#if> 
241 
242			${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())} 
243		</#if> 
244 
245		${printURL.setWindowState("pop_up")} 
246 
247		<@liferay_ui["icon"] 
248			image="print" 
249			message="print" 
250			url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["aui-helper-hidden-accessible", htmlUtil.escape(assetRenderer.getTitle(locale))]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});" 
251		/> 
252	</#if> 
253</#macro> 
254 
255<#macro getRatings> 
256	<#if (enableRatings == "true")> 
257		<div class="asset-ratings"> 
258			<@liferay_ui["ratings"] 
259				className=entry.getClassName() 
260				classPK=entry.getClassPK() 
261			/> 
262		</div> 
263	</#if> 
264</#macro> 
265 
266<#macro getRelatedAssets> 
267	<#if enableRelatedAssets == "true"> 
268		<@liferay_ui["asset-links"] 
269			assetEntryId=entry.getEntryId() 
270		/> 
271	</#if> 
272</#macro> 
273 
274<#macro getSocialBookmarks> 
275	<#if enableSocialBookmarks == "true"> 
276		<@liferay_ui["social-bookmarks"] 
277			displayStyle="${socialBookmarksDisplayStyle}" 
278			target="_blank" 
279			title=entry.getTitle(locale) 
280			url=viewURL 
281		/> 
282	</#if> 
283</#macro>