minimalic / silverstripe-essential
Provides helpful functions for own templates in Silverstripe CMS 5.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
pkg:composer/minimalic/silverstripe-essential
Requires
README
Provides helpful functions for use in own templates in Silverstripe CMS. Extends Silverstripe link module by a "Theme" dropdown for own button styles (Bootstrap naming by default).
Requirements
- Silverstripe CMS 5.2 or higher
- Silverstripe link module
Installation
Install using Composer:
composer require minimalic/silverstripe-essential
Run from terminal:
vendor/bin/sake dev/build "flush=all"
Or, use your base URL with:
/dev/build?flush=all
Basic usage
link module
Use $Theme keyword inside your template.
Configuration
Custom theme options for the link module
Replace default theme dropdown options with custom options inside local mysite.yml:
minimalic\Essential\Extensions\LinkExtension: theme_options: basic: Basic green: 'Green Theme'
To add more options to the default ones use theme_options_additional:
minimalic\Essential\Extensions\LinkExtension: theme_options_additional: basic: Basic green: 'Green Theme'
The key (e.g. green) will be used inside the template. The value (e.g. Green Theme) is only for display purpose inside dropdown field.
License
See License
Copyright (c) 2024, minimalic.com - Sebastian Finke All rights reserved.