brammittendorff/twittercraft
Composer 安装命令:
composer require brammittendorff/twittercraft
包简介
A plugin for CraftCMS to get the twitter feeds automagicly
README 文档
README
An automatic twitter tweet puller for Craft CMS with OAuth.
Installation
Composer
You can install this plugin with composer. This will install your plugin automatically in the craft plugins folder.
composer require brammittendorff/twittercraft
Git
You can install this plugin with git to you just need to clone this repo into your craft plugins folder:
cd craft/plugins/
git clone https://github.com/brammittendorff/twittercraft.git
Usage
<div class="row">
{% for tweet in craft.twittercraft.showTweets() %}
{% set json = tweet.twitterJson %}
{% if json.user.screen_name == 'someuser' %}
<div class="col-sm-4">
<div class="block block--twitter">
{{ json.text }}
</div>
</div>
{% endif %}
{% endfor %}
</div>
Scheduled tasks
You can use this plugin as a cronjob, or as a schedule in heroku just use/run the following command:
./craft/app/etc/console/yiic twittercraft run
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-19