Skip to content

Provides helpful functions for own templates in Silverstripe CMS 5.

License

Notifications You must be signed in to change notification settings

minimalic/silverstripe-essential

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silverstripe Essential

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

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.

About

Provides helpful functions for own templates in Silverstripe CMS 5.

Topics

Resources

License

Stars

Watchers

Forks

Languages