杰森·梅奥
2018年11月12日更新 · 2分钟阅读

工艺CMS插件-点

谨慎! 这些内容可能已经过时,外围滚球app365的观点可能已经改变.

转换到一个新的CMS总是有点令人畏缩. 社区有时还没有很好地建立起来,插件并不总是可以用于快速开发. 但当外围滚球app365转向使用 工艺CMS, 外围滚球app365发现它几乎可以处理外围滚球app365扔给它的所有东西(而且做得比别人更好...)社区(特别是通过 松弛栈交流)是惊人的,如果 工艺CMS 不能处理的东西-将有一个可用的插件. 外围滚球app365的印象.

但最近外围滚球app365有两个项目需要一些不寻常的功能.

这两个项目都需要扩展用户功能,以创建积分/奖励系统. 很快地吃完谷歌,看了看 直工艺 结果在…什么都没有.

经过一阵恐慌,一阵恶心的感觉和观看教程 Mjingo -外围滚球app365决定创建外围滚球app365的第一个插件- .

什么是点?

通过奖励用户和创建积分/奖杯系统,你可以为你的网站/网页应用添加一些有趣的功能. 奖励用户“事件——比如订阅邮件列表、分享一篇文章或第一次登录.

特性

  • 控制面板
    分配给用户的事件和条目(点)可以通过TWIG模板标签进行管理, 也可以通过Craft内部的控制面板添加. 使网站管理员更容易添加,编辑或删除点.
     
  • 事件 on the Fly
    事件 such as signing up to a mailing list or updating a users profile etc generally need to be created before you can assign these to a user. But if you want to make this work dynamically, such as assigning points for every article a user reads, you can do this on the fly.
     
  • Multiple
    事件 can generally only be assigned to a user once. But if you want a user to be able to perform the same event multiple times then you can do this also! For example, you will only allow a user to gain points only once if they register. But you may want to allow them to gain points multiple times if they share multiple articles.
     
  • User Total
    Once a user has a few points assigned to them, you can output their total, to show them their achievements.
     
  • Widget
    Everybody loves a dashboard widget, so we added one that lets you see which users last gained points.

Roadmap

We plan on developing this plugin further by adding a few other functions:

  • Leaderboard
  • More Widgets (Who doesn’t like more Dashboard Widgets!)
  • Delay e.g. 点 can only be grabbed every X hours.
  • Hook to create events automatically after Section Entries are created
  • Grouping 点 in to ‘Badges'

Overall, we were surprised at how simple building 工艺CMS plugins was once we got our heads around the file setup 和 some terminology. If you have any suggestions for this plugin, write an 'Exhancment' on Github Issues for the project, or via the Disqus below. We already have a few more plugins cooking. Watch this space.

Download 点 on Github
Suggest a Feature
Get Support

写的
杰森·梅奥
MadeByShape创始人之一. 你会发现我的博客都是关于“技术的东西”,包括与CMS相关的写作.

相关的博客

在社交媒体上关注外围滚球app365

©外围滚球app365 2021. 365滚球app下载推荐
保留所有权利. 隐私政策

电话
工作室的地址

MadeByShape
吉菲尔德公园大道1号
阿瑟顿
曼彻斯特
苏M46 0

友情链接: 1 2 3 4 5 6 7 8 9 10