Content Item Field Indexes
The article:list
tag returns a java.util.List
bean containing all the
content items in a publication that match various criteria. You can use
it, for example, to list the last ten content items added to a specific
section, or all the content items published in the last three days. The
article:list
tag also has a field
attribute that you can use for selecting and sorting the content items to
list by field value. If, for example, the content items in your
publication have a priority
field, you might want to
obtain a list of all content items with a priority of 1. You can do this
as follows:
<article:list id="myList" sectionUniqueName="mySection" field="priority" expression="1" />
You can, however, only use the link
attribute on
content item fields that have been indexed. If the
priority
field is not indexed, then this example will
not work.