gorriecoe / silverstripe-shorturl
Provides a shorter path to URLs using your domain.
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.3
- silverstripe/admin: ^1.0
This package is auto-updated.
Last update: 2024-12-21 21:58:02 UTC
README
Provides a shorter path to URLs using your domain.
Installation
Composer is the recommended way of installing SilverStripe modules.
composer require gorriecoe/silverstripe-shorturl
Requirements
- silverstripe/framework ^4.0
- gorriecoe/silverstripe link ^1.3
Maintainers
Configuration
URL length
By default url_length
is set to 5
gorriecoe\ShortURL\Models\ShortURL: url_length: 7
Internal link types
Depending on the link type you may or may not want to prepend the domain and protocol to the destination url. SiteTree
and File
will automatically do this. If you need to define additional internal link types you follow the example below:
gorriecoe\ShortURL\Models\ShortURL: internal_types: - Product - AnotherType