This module puts a simple twitter feed into your page. Nothing fancy!
composer require "tractorcow/silverstripe-twitter" "3.1.*@dev"
<% include TwitterWidget %>
into your template, or you can use the following to<% if LatestTweets %>
<ul class="Tweets">
<% loop LatestTweets %>
<li class="Tweet">
<label>
<a href="http://www.twitter.com/{$User}" target="_blank" class="User">@$User</a>
$DateObject.format('d F Y')
</label>
<p>$Content.RAW</p>
</li>
<% end_loop %>
</ul>
<% end_if %>
Tweets can be retrieved with one of the following controller functions (inside a loop or control)
Each tweet object has the following properties:
To use SSL on inserted media (prevents mixed content warnings on SSL websites), add to config.yml:
TwitterService:
use_https: true
Message or email me at [email protected] or, well, read the code!
Copyright (c) 2013, Damian Mooyman
All rights reserved.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem