09-13-2011 11:32 AM
<webscript>
<shortname>List of pictures</shortname>
<description>List of pictures</description>
<url>/list/pictures</url>
</webscript>
<!– pictures start –>
<#if articles??>
<!– if articles –>
<#if articles.title??>
<div class="interior-header">
<h2 class="full-h">${articles.title}</h2>
<#if articles.description??><p class="intheader-paragraph">${articles.description}</p></#if>
</div>
</#if>
<div class="interior-content">
<#if articles.assets?size == 0>
${msg('list.none')}
<#else>
<#if subTitle??><h3>${msg(subTitle)}</h3></#if>
<ul class="portfolio-wrapper">
<#list articles.assets as article>
<li>
<a href="<@makeurl asset=article force='long'/>${linkParam!''}"><img src="<@makeurl asset=article rendition='mediumPublicationThumbnail'/>" alt="${asset.title!''}" class="img-border" /></a>
<h3><a href="<@makeurl asset=article force='long'/>${linkParam!''}">${article.title!article.name}</a></h3>
<#if article.description??><p><@truncate value=article.description chars=100/></p></#if>
</li>
</#list>
</ul>
</#if>
</div>
</#if>
<!– pictures end –>
// Get the collection of articles indicated in the component properties
model.articles = collectionService.getCollection(context.properties.section.id, args.collection);
// If a link page is specified in the component properties then pass this to the view
if (args.linkPage != null)
{
model.linkParam = '?view='+args.linkPage;
}
//If a sub title is specified in the component properties then pass this to the view
if (args.subTitle != null)
{
model.subTitle = args.subTitle;
}
<?xml version="1.0" encoding="UTF-8"?>
<page>
<id>articlepage1</id>
<description>news article style page with medium image</description>
<template-instance>two-block</template-instance>
<authentication>none</authentication>
<components>
<component>
<region-id>left1</region-id>
<url>/article/style1</url>
</component>
<component>
<region-id>right1</region-id>
<url>/related/articles</url>
</component>
<component>
<region-id>right2</region-id>
<url>/facebook/like</url>
</component>
<component>
<region-id>right3</region-id>
<url>/list/pictures</url>
</component>
</components>
</page>
09-13-2011 11:47 AM
model.articles = collectionService.getCollection(context.properties.section.id, args.collection);
<#if articles??>
and so the majority of the component won't render.
<component>
<region-id>right3</region-id>
<url>/list/pictures</url>
<properties>
<collection>mypictures</collection>
</properties>
</component>
09-13-2011 01:23 PM
09-13-2011 01:32 PM
09-13-2011 01:53 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.