CollectionPage
Constructor Summary
Public Constructor | ||
public |
constructor(collectionId: string, pageIndex: number, options: Object) Constructor for a CollectionPage. |
Member Summary
Public Members | ||
public |
Collection ID this page is a part of. |
|
public |
Data accessible from template. |
|
public |
Absolute destination path. |
|
public |
An array of Files that are in this page. |
|
public |
Unique ID of this CollectionPage. |
|
public |
Page index, 0-indexed. |
|
public |
The permalink template. |
Method Summary
Public Methods | ||
public |
Generate the checksum of this CollectionPage. |
|
public |
render(globalData: *): * |
|
public |
setData(data: {}) |
|
public |
Set what files belong in this page. |
|
public |
setNextPage(next: CollectionPage) Link this page with its next page, for use in templates. |
|
public |
setPreviousPage(previous: CollectionPage) Link this page with its previus page, for use in templates. |
|
public |
async update() Update a CollectionPage's content via updating every File's content. |
|
public |
Writes a given CollectionPage to the file system. |
Public Constructors
Public Members
Public Methods
public getChecksum(): string source
Generate the checksum of this CollectionPage. It's derived from the Files that exist in this collection.
public setData(data: {}) source
Params:
Name | Type | Attribute | Description |
data | {} |
|
public setNextPage(next: CollectionPage) source
Link this page with its next page, for use in templates.
Params:
Name | Type | Attribute | Description |
next | CollectionPage | CollectionPage instance. |
public setPreviousPage(previous: CollectionPage) source
Link this page with its previus page, for use in templates.
Params:
Name | Type | Attribute | Description |
previous | CollectionPage | CollectionPage instance. |