Home > Contents > Index >
Template Tags TOC   |    Alpha TOC   |    Tag Family TOC   |    Purpose TOC   |    Annotated TOC   |    Index 

 

searchstate:contentquerysearch

Executes the query within a ContentQuery asset and returns all assets that match as an IList object

Syntax

<searchstate:contentquerysearch 
      name="resultname" 
      assetname="cqassetname" 
      [maxresults="listname"]
      [sortfield="fieldname"]
      [sortorder="asc|desc"]/> 

Parameters

name (required)
Name of the search result IList object
assetname (required)
Name of the ContentQuery asset that should be run
maxresults (optional)
The maximum number of results to be returned by the search. If specified here at the jsp tag level it will overide the value set in the ContentQuery asset
sortfield (optional)
The sort field by which the results are ordered. If specified here at the jsp tag level it will overide the value set in the ContentQuery asset
sortorder (optional)
The sort order by which sortfield is sorted. Ascending or Descending. If specified here at the jsp tag level it will overide the value set in the ContentQuery asset

Description

The contentquerysearch tag executes the search and loads the results of the query into an IList (as specified by the name) into the ICS context. This list can then be iterated through by the ics tags.

Example

Executes the query stored within the ContentQuery named CQ1, then iterates over the results and displays the name field.

This code loads the Content Query Asset and executes the search. The results are loaded into an IList named searchresults the ICS context which can then be iterated to display the results.

See Also

asset:load
ics:listloop
ics:listget
insite:calltemplate

  Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.