Configuration
Fountain is designed to be flexible, much like Kirby CMS. Parts are even available to override via the panel. For example, a specific font might prefer another subset when generating trial font. Via panel you can change it, upload that specific font and change it back after.
Options you can do. All options needs to be in a … needs to be prefixed with andreasnymark.fountain
, for example:
return [
'andreasnymark.fountain' => [
'trial' => true,
],
]
Cascading order for options looks like this:
- Website settings, via panel.
- Site config, via config.php
- And lastly default values, from plugin defaults.
Settings available from website
Options
Thumbnail
return [
'andreasnymark.fountain' => [
'thumb' => [
'text' => 'Ra',
'color' => '#fff',
'background' => '#000',
]
Slugs
Change the slugs used,
return [
'andreasnymark.fountain' => [
'slug' => [
'cart' => 'cart',
'cart-add' => 'cart/add',
'cart-remove' => 'cart/remove',
'cart-success' => 'cart/thank-you',
'checkout' => 'cart/checkout',
'account' => 'account',
'account-login' => 'account/login',
'account-logout' => 'account/logout',
'account-delete' => 'account/delete',
'download-order' => 'download/order/(:any)',
'download-trial' => 'download/trial/(:any)',
'invoice' => 'invoice/(:any)',
]
]
];
Currency
return [
'andreasnymark.fountain' => [
'currency' => [
'code' => 'EUR',
'before' => true,
'decimal' => true,
'symbol' => '€',
],
]
];
Other
return [
'andreasnymark.fountain' => [
'trials' => true,
'webfonts' => true,
'subset' => 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,-',
'download-prefix' => 'fountain',
'separator' => '|',
]
];