gorriecoe / silverstripe-ymlpresetlinks
Adds link types preset in your config.yml.
Fund package maintenance!
Ko Fi
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- gorriecoe/silverstripe-link: ^1.2.3
This package is auto-updated.
Last update: 2024-10-18 21:03:29 UTC
README
Adds link types preset in your config.yml for gorriecoe/silverstripe-link.
This is useful for defining commonly used links, js functions and/or anchors.
Installation
Composer is the recommended way of installing SilverStripe modules.
composer require gorriecoe/silverstripe-ymlpresetlinks
Example usage
gorriecoe\Link\Models\Link: preset_types: 'hello-world': Title: "Hello world alert" LinkURL: "javascript:alert('Hello World!');" 'back-to-top': Title: "Scroll to top" LinkURL: "#back-to-top" 'google': Title: "Google" LinkURL: "https://www.google.com/" OpenInNewWindow: true