Summary Templates
Here is the temp-dev
publication's
element/news.jsp
template:
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %> <h3> ${element.article.fields.title} </h3> <div class="summary"> ${element.article.fields.summary} </div> <a href="${element.article.url}">Read more</a>
It is called by the article/ats.jsp
template
and uses the request scope variable element
created
in group/news.jsp
. Both of these templates are
described in Section Page Templates. It simply
creates an HTML snippet that displays the title
and
summary
fields of the content item referenced by the
element
variable.