Skip to content

AnimalDesign/bolt-shorturl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 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 therefore 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