selectPages

Description

Returns an array with the IDs of the pages that match the search query.

Parameters

Return Type

Number []

Returns a list of page IDs that match the specified CQL.

Example

string cql = "(type=page and Space=DEV) OR (creator=bobsmith and type=blogpost)"; number [] pages = selectPages(cql); for(number p in pages) { %p%.labels += "newLabel"; }

See also