Skip to content

Instantly share code, notes, and snippets.

@jamesfalkner
Created December 2, 2014 13:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesfalkner/c2d43ad2a50a54f3bd87 to your computer and use it in GitHub Desktop.
Save jamesfalkner/c2d43ad2a50a54f3bd87 to your computer and use it in GitHub Desktop.
<#-- Replace the code inside the <#list></list> section of your "Basic List" ADT with this code -->
<#assign assetRenderer = curEntry.getAssetRenderer() />
<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) />
<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
<#if assetLinkBehavior != "showFullContent">
<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) />
</#if>
<div class="asset-abstract">
<h3 class="asset-title">
${curEntry_index +1}.&nbsp;<a href="${viewURL}">${entryTitle}</a>
</h3>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment