WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead. See sjs-4: pages.

File.prototype.pages()

Return a file’s children that are pages.

Syntax

file.pages() Collection

Description

Return a collection of a file’s children which are pages. A file is a page if its app contains a file named .Page.

Links are followed.

Examples

Basic example.

Returns empty collection if file has no subpages.

Subscribe to our newsletter!