File.prototype.isPage()

Tells whether a file is a page.

Syntax

// Get file.isPage() boolean

Description

Tells whether a file is a page. A file is a page if its application contains a file named .Page.

The purpose of the isPage method is to provide a convenient way to distinguish between pages and contents, useful when generating the menu (of only pages) or displaying only contents on a page.

Examples

Get.

Example for marking an app as a page by creating a file named .Page in its app.

Example for marking the an anonymous app as a page - thus the file itself as a page. Because of the type app-1 the file becomes an anonymous app, so the .Page file will be looked for on the file itself.

Get all contents.

Get all pages.