Fountain

Collections

A few collections are added in Fountain to make life easier. Use it where collections can be used. All collections are prefixed in the style fountain.collection-name. For example $kirby->collection( 'fountain.eulas' ) returns a flat collection with all pages using the EULA blueprint.

fountain.addons

Returns a Kirby\Toolkit\Collection with available add-ons.

Property Type Info
$addon->id() String Add-on id.
$addon->title() String Add-on title.
$addon->multiplier() Float Add-on price multiplier.

fountain.eulas

Returns a Kirby\Cms\Pages collection with all pages using the eula blueprint.

fountain.font-families

Returns a flat Kirby\Cms\Pages collection with all pages using the font-family blueprint.

fountain.font-index

Returns a single Kirby\Cms\Page with all pages using the font-index blueprint and their respective children, merged into one collection. Primarly used to display all fonts in the panel, but might come to use in other situations.

fountain.licenses

Returns a Kirby\Toolkit\Collection with available licenses. This handles tiers and entities.

Property Type Info
$license->id() String License id.
$license->template() String File type user is allowed to download.
$license->page() String License id.
$license->title() String License title.
$license->multiplier() Float License price multiplier.
$license->page() String License page for EULA.
$license->entity() null|String License entity title.