Available for: Content Management Server, Template Engine
Task: This command returns a list of news file IDs. The IDs are sorted by date in descending order.
Syntax:
news where [channels channellist] [length length]
Function parameters:
-
channellistis an optional list of the channels to take into account. -
lengthoptionally specifies the maximum length of the list..
Return value if successful: a list of file IDs.
Necessary permissions (only CM): no restrictions
Example:
news where channels {politics sports} length 20