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

1.0.0 2020-04-20 21:26 UTC

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

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