Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

FilterAssetsByDate

Content Server provides a feature called 'Site Preview' that lets Content contributors and developers preview their website as it will appear at a future date. In order to be able to preview assets that are meant to be rendered at different points in time, users need to create assets with appropriate start date and end date attributes. Once the set of assets that are required to render the website at different dates are created, the next step is to create templates that use the API provided by Content Server to filter the set of assets and render only those assets whose start/end dates match the given input date.

Content Server provides a jsp tag called assetset:filterassetsbydate and a public static Java method FilterAssetsByDate.filter to perform the filter operation on assets to implement the Site Preview feature. Both the jsp tag and the Java method can be used from within JSP pages that represent the element logic for the rendering templates.

  Home > Contents > Index >

FatWire JAVA Reference
Copyright 2005 - 2011 by FatWire Corporation
All rights reserved.