Skip to Content
We use cookies to personalize content, provide social media features and analyze traffic to our site. You give your consent to the use of cookies if you continue to use our websites. For more information, please read the page about our privacy policy.
Latest Press release
An error occurred while processing the template.
Error on line 24, column 25 in 20155#20195#62603
saxReaderUtil.read(assetRenderer.getArticle().getContent()) is undefined.
It cannot be assigned to docXml
1<#macro img image> 
2	<#if image?has_content> 
3		<#assign etu = utilLocator.findUtil("messer-group-resources", "de.empulse.messer.templates.TemplateUtil") /> 
4		<#assign imageAltText = etu.getImageMetaData(etu.getFileEntryFromUrl(image), "alt-text", locale) /> 
5		<img class="mg-image" src="${image}" <#if imageAltText?has_content>alt="${imageAltText}"</#if> /> 
6	</#if> 
7</#macro> 
8 
9<#assign portletRequest = portalUtil.getLiferayPortletRequest(renderRequest) /> 
10<#assign portletResponse = portalUtil.getLiferayPortletResponse(renderResponse) /> 
11<#assign viewInContext = portletPreferences['assetLinkBehavior']?seq_contains("viewInPortlet")!false /> 
12 
13<div class="mg-default-article-teaser clearfix"> 
14	<#if entry??> 
15		<#assign assetRenderer = entry.getAssetRenderer() /> 
16		<#assign showReleaseDate = false /> 
17		<#list entry.getTags() as tag> 
18                <#if tag.name == "press"> 
19                    <#assign showReleaseDate = true /> 
20                </#if> 
21        </#list> 
22         
23		<#if assetRenderer.getClassName() == "com.liferay.portlet.journal.model.JournalArticle"> 
24			<#assign docXml = saxReaderUtil.read(assetRenderer.getArticle().getContent()) /> 
25		     
26		    <#assign teaser_text = docXml.valueOf("//dynamic-element[@name='teaser_text']/dynamic-content[@language-id='" + themeDisplay.getLanguageId() + "']/text()") /> 
27		     
28		    <#if !teaser_text?has_content> 
29		    	<#assign defaultLangId = languageUtil.getLanguageId(localeUtil.getSiteDefault()) /> 
30		    	<#assign teaser_text = docXml.valueOf("//dynamic-element[@name='teaser_text']/dynamic-content[@language-id='" + defaultLangId + "']/text()") /> 
31		   </#if> 
32		     
33		    <#assign teaser_image = docXml.valueOf("//dynamic-element[@name='teaser_image']/dynamic-content/text()") /> 
34		    <#assign moreLink = assetPublisherHelper.getAssetViewURL(portletRequest, portletResponse, entry, viewInContext) /> 
35			<div class="row-fluid"> 
36				<#if teaser_image?has_content > 
37					<div class="span6"> 
38						<@img teaser_image /> 
39					</div> 
40				</#if> 
41				 
42				<!-- <div class="visible-phone clearfix"></div>--> 
43				<#if teaser_image?has_content > 
44					<div class="span6"> 
45				<#else> 
46					<div class="span12"> 
47				</#if> 
48					<#if entry.getTitle(locale)?has_content > 
49						<h1 class="mg-spacer-headline">${entry.getTitle(locale)}</h1> 
50					</#if> 
51					 
52					<#if teaser_text?has_content > 
53					 <#if showReleaseDate> 
54						    <p> 
55						    <span style="color: rgb(0, 45, 115);">${assetRenderer.getDisplayDate()?date?string["dd.MM.yyyy"]}</span> 
56						    </p> 
57						    </#if> 
58						<p>${teaser_text}</p> 
59					</#if> 
60					 
61					<a class="btn mg-button" href="${moreLink}"> 
62						${themeDisplay.translate("more")} 
63					</a> 
64				</div> 
65			</div> 
66		</#if> 
67	</#if> 
68</div> 
Web Content Display

Messer Group GmbH, Bad Soden

Messer Group, Bad Soden, Germany
Web Content Display

Messer Group GmbH, Krefeld

Messer Group, Krefeld, Germany