Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

chrootlogin/bolt-shorturl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shorturl plugin for Bolt CMS

This plugin provides a new 'shorturl' fieldtype for contenttypes and redirects accordingly. When set up, it redirects i.e. from http://yourhost/s/short to http://yourhost/page/this-is-my-long-slug.

It runs before the internal routing and therefor overwrites all other routes.

Setup

Add a shorturl fieldtype to your content type:

projects:
    [...]
    fields:
        [...]
        shorturl:
            type: shorturl
		[...]
    icon_one: fa:heart-o
    icon_many: fa:heart-o

You're done.

Configuration

  • maxlength (default: 10): Defines the maximal length of the shorturl hash.
  • prefix (default: 's'): Defines the default prefix for shorturl routes (i.e. http://yourhost/**s**/short). If none is given, none is used (http://yourhost/short).
  • checkunique (default: true): Checks, if the given shorturl already exists.

About

„We build it“ — ANIMAL

About

Provides a new 'shorturl' fieldtype for contenttypes and redirects accordingly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 71.6%
  • JavaScript 12.6%
  • HTML 11.6%
  • CSS 4.2%