README.textile
Handy little module that enables you to “bit.ly”-fy any URL on the fly. It also includes caching so that the bit.ly API is only contacted once for each unique URL.
Usage example (here we use {comment_url_title_auto_path} as URL inside an {exp:channel:entries} tag):
{exp:bitly bitly_login='YOUR_BITLY_LOGIN' bitly_api_key='YOUR_BITLY_API_KEY' url='{comment_url_title_auto_path}'}
This tag can also be used as a tagpair:
{exp:bitly bitly_login='YOUR_BITLY_LOGIN' bitly_api_key='YOUR_BITLY_API_KEY' url='{comment_url_title_auto_path}'}
<a href="{bitly_url}"> plain bitly url </a>
<a href="https://plus.google.com/share?url={bitly_url_encoded}"> encoded bitly url</a>
{/exp:bitly}
Bit.ly for ExpressionEngine – More documentation here
More ExpressionEngine Addons
This addon was developed by Bjørn Børresen Freelance ExpressionEngine Addon Developer