Skip to content

Twig Filter for CraftCMS to automatically turn URLs in strings into links

License

Notifications You must be signed in to change notification settings

tjdraper/craft-auto-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Auto Link Twig Filter for Craft

Just like the label on the box suggests, this is a simple Twig filter that will turn URLs in a string into clickable HTML anchors.

Installation

  1. Put the autolink directory in craft/plugins
  2. Go into the Craft control panel and navigate to settings -> plugins and click install on the Auto Link item.

Usage

You can use the Twig filter on any string variable like so:

{{ myStringVar|autolink }}

About

Twig Filter for CraftCMS to automatically turn URLs in strings into links

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages