unisolutions/silverstripe-latesttweets

There is no license information available for the latest version (dev-master) of this package.

Latest Tweets module for SilverStripe.

dev-master 2016-01-10 22:17 UTC

This package is not auto-updated.

Last update: 2024-11-04 15:40:42 UTC


README

Latest Tweets module for SilverStripe.

Maintainer Contact

Elvinas Liutkevičius

<elvinas (at) unisolutions (dot) eu>

Requirements

SilverStripe 3

Documentation

Simply install the module using the standard method.

This module uses SS_Cache to reduce the amount of Twitter REST API requests. Default cache lifetime is 30min. You can change this value by putting this line in your _config.php (1800 is cache lifetime in seconds):

SS_Cache::set_cache_lifetime('LatestTweets_cache', 1800, 10);

Usage

Simple. Just place $LatestTweets anywhere in your template.

If you're unhappy with default tweet list template you can override the default LatestTweets.ss template.

Third parties

Uses tmhOAuth library written in PHP by Matt Harris (http://themattharris.com), specifically for use with the Twitter API.