iliain / silverstripe-accessible
Provides accessible features for Silverstripe
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
Type:silverstripe-vendormodule
Requires
- php: ^7 || ^8
- silverstripe/framework: ^4 || ^5
Suggests
- gorriecoe/silverstripe-linkfield: Adds a link field to the CMS, which this module extends
README
Provides a number of additions to Silverstripe to make it more accessible.
- Adds Caption and AltText fields to Images
- Renders in WYSIWYGs and Templates
- Adds visual icons to WYSIWYG hyperlinks
- Adds visual icons and descriptive text to the Links provided by:
- sheadawson/silverstripe-linkable
- gorricoe/silverstripe-link (recommended)
Installation (with composer)
composer require iliain/silverstripe-accessible
Requirements
- PHP 7.4+ or 8.0+
- Silverstripe 4+ or 5+
Documentation
Example Config
Below is the default config, you can overwrite any of these settings in your own config.yml
Iliain\Accessible\ShortcodeProviders\AccImageShortcodeProvider: custom_template: 'Iliain\\Accessible\\Shortcodes\\Image' # (String|null) Custom template Iliain\Accessible\ShortcodeProviders\AccLinkShortcodeProvider: custom_template: 'Iliain\\Accessible\\Shortcodes\\Link' # (String|null) Custom template
To Do
- Add options to display File sizes in both templates and WYSIWYGs
- Add descriptive text to WYSIWYG hyperlinks