Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save evertonthepaula/e7a072ab0849b27cc13833747e2d8792 to your computer and use it in GitHub Desktop.
Save evertonthepaula/e7a072ab0849b27cc13833747e2d8792 to your computer and use it in GitHub Desktop.
<#if entries?has_content>
encontrei conteudo <br><hr>
<#list entries as curEntry>
<h3>Entries:</h3> ${curEntry} <br><hr>
<!-- PROPRIEDADES QUE ESTÃO DISPONÍVEIS -->
<H3>propriedades disponíveis:</H3>
<b>entryId</b>: ${curEntry.entryId} <br>
<b>entryId</b>: ${curEntry.entryId} <br>
<b>companyId</b>: ${curEntry.companyId} <br>
<b>userId</b>: ${curEntry.userId} <br>
<b>userName</b>: ${curEntry.userName} <br>
<b>classNameId</b>: ${curEntry.classNameId} <br>
<b>classPK</b>: ${curEntry.classPK} <br>
<b>classUuid</b>: ${curEntry.classUuid} <br>
<b>classTypeId</b>: ${curEntry.classTypeId} <br>
<b>mimeType</b>: ${curEntry.mimeType} <br>
<b>title</b>: ${curEntry.title} <br>
<b>description</b>: ${curEntry.description} <br>
<b>summary</b>: ${curEntry.summary} <br>
<b>url</b>: ${curEntry.url} <br>
<b>layoutUuid</b>: ${curEntry.layoutUuid} <br>
<b>height</b>: ${curEntry.height} <br>
<b>width</b>: ${curEntry.width} <br>
<b>priority</b>: ${curEntry.priority} <br>
<b>viewCount</b>: ${curEntry.viewCount} <br>
<hr>
<!-- PROPRIEDADES DE DATA PRECISAM DE PARAMETROS ESPECIFICOS PARA O FREMARKER ENTENDER-->
<b>createDate</b>: ${curEntry.createDate?string('dd/MM/yyyy HH:mm:ss')} <br>
<b>createDate</b>: ${curEntry.createDate?date} <br>
<b>createDate</b>: ${curEntry.createDate?time} <br>
<b>createDate</b>: ${curEntry.createDate?datetime} <br>
<hr>
<b>modifiedDate</b>: ${curEntry.modifiedDate?string('dd/MM/yyyy HH:mm:ss')} <br>
<b>modifiedDate</b>: ${curEntry.modifiedDate?date} <br>
<b>modifiedDate</b>: ${curEntry.modifiedDate?time} <br>
<b>modifiedDate</b>: ${curEntry.modifiedDate?datetime} <br>
<hr>
<b>publishDate</b>: ${curEntry.publishDate?string('dd/MM/yyyy HH:mm:ss')} <br>
<b>publishDate</b>: ${curEntry.publishDate?date} <br>
<b>publishDate</b>: ${curEntry.publishDate?time} <br>
<b>publishDate</b>: ${curEntry.publishDate?datetime} <br>
<hr>
<#if curEntry.expirationDate??>
<hr>
<b>expirationDate</b>: ${curEntry.expirationDate?string('dd/MM/yyyy HH:mm:ss')} <br>
<b>expirationDate</b>: ${curEntry.expirationDate?date} <br>
<b>expirationDate</b>: ${curEntry.expirationDate?time} <br>
<b>expirationDate</b>: ${curEntry.expirationDate?datetime} <br>
</#if>
<#if curEntry.startDate??>
<hr>
<b>startDate</b>: ${curEntry.startDate?string('dd/MM/yyyy HH:mm:ss')} <br>
<b>startDate</b>: ${curEntry.startDate?date} <br>
<b>startDate</b>: ${curEntry.startDate?time} <br>
<b>startDate</b>: ${curEntry.startDate?datetime} <br>
</#if>
<#if curEntry.endDate??>
<hr>
<b>endDate</b>: ${curEntry.endDate?string('dd/MM/yyyy HH:mm:ss')} <br>
<b>endDate</b>: ${curEntry.endDate?date} <br>
<b>endDate</b>: ${curEntry.endDate?time} <br>
<b>endDate</b>: ${curEntry.endDate?datetime} <br>
</#if>
<!-- Veja mais: https://freemarker.apache.org/docs/ref_builtins_date.html -->
<hr>
<!-- PROPRIEDADES BOLEANAS PRECISAM DE PARAMETROS ESPCIFICOS PARA O FREMARKER ENTENDER-->
<b>listable</b>: ${curEntry.listable?c} <br>
<b>listable</b>: ${curEntry.listable?string("yes", "no")} <br> <!-- deprecated use then -->
<b>listable</b>: ${curEntry.listable?then("yes", "no")} <br>
<hr>
<b>visible</b>: ${curEntry.visible?c} <br>
<b>visible</b>: ${curEntry.visible?string("yes", "no")} <br> <!-- deprecated use then -->
<b>visible</b>: ${curEntry.visible?then("yes", "no")} <br>
<!-- Veja mais: https://freemarker.apache.org/docs/ref_builtins_boolean.html -->
<hr>
<!-- SMALLIMAGE/THUMBNAIL IMAGE -->
<#assign AssetRenderer = curEntry.getAssetRenderer()>
<#assign ThumbnailPath = AssetRenderer.getThumbnailPath(renderRequest)>
<#assign Article = AssetRenderer.getArticle()>
<#assign SmallImageID = Article.getSmallImageId()>
<#if ThumbnailPath??>
<#assign thumb = ThumbnailPath>
<#elseif SmallImageID ??>
<#assign thumb = "/image/journal/article?img_id=${SmallImageID}">
<#else>
<#assign thumb = Article.getSmallImageURL()>
</#if>
<hr>
<!-- CUSTOM FIELDS -->
<#assign AssetRenderer = curEntry.getAssetRenderer()>
<#assign Fields = AssetRenderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues()/>
<#list Fields as field>
<b>${field.getName()}</b>: ${field.getValue()}<br>
<b>${field.getName()}</b>: ${field.getValue().getString(locale)}<hr>
</#list>
<!-- LINKS -->
<#assign AssetRenderer = curEntry.getAssetRenderer()>
<#assign ViewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry)>
<#assign curEntryURL = AssetRenderer.getURLViewInContext(renderRequest, renderResponse, ViewURL)>
</#list>
</#if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment