Commit 906c12a5 authored by Alexis Piéplu's avatar Alexis Piéplu
Browse files

Add display of a full web content on asset publisher

parent d37698cb
......@@ -187,6 +187,20 @@ $sortTool.sort($entries, "publishDate:desc")
```
## Afficher le WebContent (JournalArticle) avec son template par défault dans un Asset Publisher
```velocity
#if (!$entries.isEmpty())
#foreach ($entry in $entries)
#set($renderer = $entry.getAssetRenderer())
#set($articleId = $renderer.getArticle().getArticleId())
#set($groupId = $entry.getGroupId())
#set($languageId = $locale.toString())
$journalContentUtil.getContent($groupId, $articleId, "VIEW", $languageId, $themeDisplay)
#end
#end
```
## Récupérer les éléments d'un Asset Entry (Asset publisher)
```html
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment