Fountain

Templates

When working in Kirby panel, all templates from Fountain comes in the format (Fountain) Template name. It’s good way of keeping track if you’re overriding any blueprints.

List of page templates

Cart

The cart shows all fonts the user has put in the cart. Each font needs an license, otherwise it’s removed from the cart.

Variable Type Info
$cart AndreasNymark\Fountain\Cart The cart object
$cartItems Kirby\Cms\Collection All fonts in the cart. See below.
$fontFiles Kirby\Cms\Files All fonts used as preview.
$licensee String
$error String
$withoutLicense String

$cartItems

Variable Type Info
$cartItems->font() Kirby\Cms\Page Font product.
$cartItems->uri() String Font page URI.
$cartItems->licenses() String Comma separated list with licenses for font.
$cartItems->addons() String Comma separated list with addons for font.

Font index

This is the parent page for all your fonts. Common practice is to call this page www.example.com/fonts

  • a font index can only have pages with the font family tenplate.
Variable Type Info
$fonts Kirby\Cms\Pages List with all the font familes
$fontFiles Kirby\Cms\Files Each preview font file for each family.
$licenseType String

Font family

This equals the page with the family of styles. This is where all files are uploaded and stored.

  • a font famuly page can only have children with font template.
Variable Type Info
$fonts Kirby\Cms\Pages List with all the font familes
$fontFiles Kirby\Cms\Files Each preview font file for each family.
$licenseType String
$licensee String
$trial String URL to download trial font.
$addons Kirby\Cms\Structure All addons
$bundles Kirby\Cms\Pages Bundle products
$cart AndreasNymark\Fountain\Cart The cart object

Font

This is a single style product. This is what the user put in the cart. All files selected to this page can be download after purchase, based on what license the customer buys. By default this page redirects to the font family page.

Font bundle

This is a bundle of pages with the font template. This is what the user put in the cart. All fonts and their respective files selected to this page can be download after purchase, based on what license the customer buys. By default bundles redirect to the font family page.

Account

User account page. Fountain uses Kirby authentication, and customers have no access to the panel. Likewise, if you are logged in as an e.g. admin, you will be redirected to the panel.

Variable Type Info
$user Kirby\Cms\Files Each preview font file for each family.
$orders Strcutire? All completed orders for user.
$fontIndex Kirby\Cms\Pages All pages with font family template.

Next