Code Monkey home page Code Monkey logo

craft-bitly-connect's Introduction

Bitly Connect plugin for Craft CMS 3.x

This plugin lets you connect your Craft CMS to Bitly, to create shortened URLs directly from your Twig templates. All you need is a Bitly access token, and off you go!

License

This plugin requires a commercial license which can be purchased through the Craft Plugin Store.
The license fee is $29 plus $9 per subsequent year for updates (optional).

Requirements

This plugin requires Craft CMS 3.1.0 or later.

Installation

  1. Install with Composer via composer require nilsenpaul/bitly-connect from your project directory
  2. Install plugin in the Craft Control Panel under Settings > Plugins
  3. Get a Bitly access token and enter this into the plugin's settings.

You can also install Bitly Connect via the Plugin Store in the Craft Control Panel.

Usage

After you've installed the plugin, you can create a new shortened URL (or "Bitlink"), by using the bitlink filter:

{{ 'https://nilsenpaul.nl' |bitlink }}

Optionally, you can define a custom domain (you'd have to create one on Bitly's side first) and/or group:

{{ 'https://nilsenpaul.nl' |bitlink('np.link', 'o_u4j1oih') }}

Bitlinks widget

The plugin comes with a widget, showing you the created bitlinks and the click count for each of them. Click counts are cached between 900 and 1800 seconds, to prevent the plugin from running in to rate limits.

craft-bitly-connect's People

Contributors

nilsenpaul avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.