CollectionBase
Direct Subclass:
Static Method Summary
Static Public Methods | ||
public static |
Sorts files according to a sort config object. |
Constructor Summary
Public Constructor | ||
public |
constructor(name: string, collectionConfig: Object, config: Config, renderer: Renderer) Create a Collection instance. |
Member Summary
Public Members | ||
public |
Data accesible to templates. |
|
public |
Unique ID of this Collection, currently its given name. |
|
public |
Metadata attribute to use to find which items are within the collection. |
|
public |
The collection name. |
|
public |
Size of each CollectionPage. |
|
public |
Array of CollectionPage objects. |
|
public |
Path where items belong within the collection. |
|
public |
Permalink information. |
|
public |
Sorting configuration. |
|
public |
What template to use when rendering a CollectionPage. |
Protected Members | ||
protected |
|
|
protected |
|
Method Summary
Public Methods | ||
public |
createPage(index: number, pageIdArg: string): CollectionPage Create a CollectionPage instance. |
|
public |
isFiltered(file: File): boolean Whether a File is filtered by the configured filters. |
|
public |
populate(files: Object<string, Files>, collections: Object<string, CollectionBase>): CollectionBase Populate the Collection's files via file system path or metadata attribute. |
|
public |
Writes every page in this collection. |
Static Public Methods
Public Constructors
Public Members
public metadata: string source
Metadata attribute to use to find which items are within the collection.
Protected Members
Public Methods
public createPage(index: number, pageIdArg: string): CollectionPage source
Create a CollectionPage instance.
public isFiltered(file: File): boolean source
Whether a File is filtered by the configured filters.
Params:
Name | Type | Attribute | Description |
file | File | File object. |
public populate(files: Object<string, Files>, collections: Object<string, CollectionBase>): CollectionBase source
Populate the Collection's files via file system path or metadata attribute.
Params:
Name | Type | Attribute | Description |
files | Object<string, Files> | All Files. |
|
collections | Object<string, CollectionBase> | Object of all collections. |