-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# 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 }} | ||
``` |