PARLONS SCIENCES

Une erreur s'est produite en traitant le calibre.
Denied resolving class java.lang.Class by java.lang.Class
1#*
 
2ARTICLE
 
3Article
 
4ARTICLE
 
5Ce modèle permet d'afficher les articles du site
 
6false
 
7*#
 
8
 
9##set ($namespace = $request.get('portlet-namespace'))
 
10
 
11#set ($assetCategoryLocalService = $serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService"))
 
12#set ($assetTagLocalService = $serviceLocator.findService("com.liferay.portlet.asset.service.AssetTagLocalService"))
 
13#set ($journalArticleLocalService = $serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleService"))
 
14#set ($assetEntryLocalService = $serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService"))
 
15#set ($assetVocabularyLocalService = $serviceLocator.findService("com.liferay.portlet.asset.service.AssetVocabularyLocalService"))
 
16#set ($journalArticleClass = $portal.getClass().forName("com.liferay.portlet.journal.model.JournalArticle"))
 
17
 
18#set ($explorerVocabulary = $assetVocabularyLocalService.getGroupVocabulary($groupId,"Explorer"))
 
19#set ($article = $journalArticleLocalService.getArticle($groupId, $reserved-article-id.getData()))
 
20#set ($assetEntry = $assetEntryLocalService.getEntry($journalArticleClass.getName(), $article.getResourcePrimKey()))
 
21#set ($assetEntryId = $assetEntry.getEntryId())
 
22
 
23
 
24#set ($assetCategories = $assetCategoryLocalService.getEntryCategories($assetEntryId))
 
25#set ($vocabularyCategories = $assetCategoryLocalService.getVocabularyCategories($explorerVocabulary.getVocabularyId(), -1, -1, null))
 
26#set ($assetCategory = "")
 
27#foreach ($category in $assetCategories)
 
28	#if ($vocabularyCategories.contains($category))
 
29		#set ($assetCategory = $category.getName())
 
30	#end
 
31#end
 
32
 
33#set ($assetTags = "")
 
34#set ($tags = $assetTagLocalService.getEntryTags($assetEntryId))
 
35#foreach ($tag in $tags)
 
36	#set ($assetTags = "$assetTags$tag.getName(), ")
 
37#end
 
38#if ($assetTags.length() > 2)
 
39	#set ($trimLength =  $assetTags.length() - 2)
 
40	#set ($assetTags = $assetTags.substring(0,$trimLength))
 
41#end
 
42
 
43
 
44
 
45
 
46<article class="article $column-display.getData()">
 
47
 
48	<div class="article-headers">
 
49		#if ($assetCategory != "")	
 
50			<h2>$assetCategory</h2>
 
51		#end		
 
52		<h1>$htmlUtil.escape($reserved-article-title.getData())</h1>
 
53		#if ($assetTags != "")
 
54			<h3>$assetTags</h3>
 
55		#end
 
56	</div>
 
57	<div class="article-content">
 
58		#if (!$column-display.getData().contains("2"))
 
59			<img class="article-image" src="$image1.getData()" alt="$htmlUtil.escape($reserved-article-title.getData())" />
 
60		#else
 
61			<img class="article-image" src="$image2.getData()" alt="$htmlUtil.escape($reserved-article-title.getData())" />
 
62		#end
 
63		#if ($summary.getData() != "")
 
64    		<section class="summary">
 
65    			$htmlUtil.escape($summary.getData())
 
66            </section>
 
67		#end
 
68		#if ($content.getData() != "")
 
69    		<section class="content">
 
70    			$content.getData()
 
71            </section>
 
72		#end
 
73    </div>
 
74</article>
 
75