Skip to content

A CraftCMS Twig plugin that links social usernames and hashtags in blocks of text.

License

Notifications You must be signed in to change notification settings

shealan/Link-Social

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Link Social plugin for Craft CMS

A CraftCMS Twig template plugin that links social @usernames and #hashtags in blocks of text.

Installation

To install Link Social, follow these steps:

  1. Download & unzip the file and place the linksocial directory into your craft/plugins directory
  2. -OR- do a git clone https://github.com/shealan/linksocial.git directly into your craft/plugins folder. You can then update it with git pull
  3. Install plugin in the Craft Control Panel under Settings > Plugins
  4. The plugin folder should be named linksocial for Craft to see it. GitHub recently started appending -master (the branch name) to the name of the folder for zip file downloads.

Link Social is tested on Craft 2.4.x and Craft 2.5.x.

Link Social Overview

Linksocial is a super simple plugin to link usernames and hashtags in blocks of text. It currently supports Twitter and Instagram.

Using Link Social

Add the following pipe to any text content and set the option to twitter or instagram to ensure links point to the right place. Eg:

{{ entry.tweet | linkSocial('twitter') }}

Note: Linksocial will strip HTML tags from this text before adding it's own, so formatting will be lost. Tweets and Instagram posts don't have any formatting options so it shouldn't be an issue.

Link Social Roadmap

Some things to do, and ideas for potential features:

  • Add option to link to current page or new window (currently new window only).

Link Social Changelog

1 -- 2016.01.29

  • Initial release

Brought to you by Shealan Forshaw

About

A CraftCMS Twig plugin that links social usernames and hashtags in blocks of text.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages