Class: ConfigTypeLayout

CMS.ConfigTypeLayout()

Layout definition for a given type of File

Constructor

new ConfigTypeLayout()

Source:

Members

list :string

Template file to use for listing this content type

Example 'pages'

Type:
  • string
Source:

single :string

Template file to use for rendering a single page

Example 'page'

Type:
  • string
Source:

sort :string

Default sort for files when browsing the listing page

Example 'title'

Type:
  • string
Source:

title :string

Page title set when browsing the listing page

Example 'Pages'

Type:
  • string
Source:

titleResolver :function

Optional function to compute the listing page title dynamically.

Receives the FileCollection instance so it has access to the current filter state (tags, pagination, etc.) and can return an appropriate display title.

If not set, falls back to this.title, then 'Listing'.

Type:
  • function
Source: