定制 mediadreams/md_news_pages_clickcount 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mediadreams/md_news_pages_clickcount

Composer 安装命令:

composer require mediadreams/md_news_pages_clickcount

包简介

With this TYPO3 extension you are able to count views of pages and ext:news records. You can display a list with most viewed pages/news and delete the statistics automatically with a scheduler task.

README 文档

README

With this extension you are able, to count views/clicks of ext:news or pages-records. Additionally it integrates a new option in the plugin of ext:news to show records ordered by views. A new plugin to show pages ordered by clicks is shipped as well.

Requirements

  • TYPO3 12.4 || 13.4
  • ext:news >= 11.0

Installation

  • Install the extension by using the extension manager or use composer (composer req mediadreams/md_news_pages_clickcount)
  • Include the static TypoScript of the extension

Usage

Count views

  • In the news detail view template add the following code:
    {md:getCountImg(recordUid: '{newsItem.uid}', recordType: 'news')}
  • In the pages template add the following code:
    {md:getCountImg(recordUid: '{data.uid}', recordType: 'pages')}

Make sure, that you import the namespace to the ViewHelper by adding the following line at the top of the template: {namespace md=Mediadreams\MdNewsPagesClickcount\ViewHelpers}

Note:

  • All hits to a news preview have the speciel parameter tx_news_pi1%5Bnews_preview%5D. When this is set, no tracking happens.
  • By default, all hits of logged in backend users will be ignored. Enable visits of logged in backend users in the extension settings, if needed.

Show most read news

  • Insert the plugin News system of ext:news on a page
  • In Settings-tab select List view (without overloading detail view) in the What to display dropdown
  • Select Views in the Sort by dropdown
  • Select a Sort direction (Descending will show the most viewed articles first)
  • Save and close

Show most read pages

  • Insert the element Pages by views on a page
  • Plugin-tab
    • Select the type of pages in Page type which you want to show
    • In Startingpoint select the starting point
    • In Recursive set the levels, how deep you want to dive down the page tree
  • Save and close

Spam prevention (works for news entries only!)

In the extension settings, you are able to set daysForNextCount, which adds an IP check. So multiple views of the same IP address in the given timespan (days) will be counted just once.

By default this functionality is disabled (daysForNextCount = 0)

ATTENTION:

If you have set daysForNextCount to something higher than 0, please make sure, that you activate the scheduler task mdNewsClickcount:cleanupLogCommand of type Execute console commands in order to meet the GDPR requirements! This will clean up the log.

Clear views

  • Add a scheduler task of type Execute console commands
  • Select mdNewsPagesClickcount:clearViewsCommand in Schedulable Command dropdown

Bugs and Known Issues

If you find a bug, it would be nice if you add an issue on Github.

THANKS

Thanks a lot to all who make this outstanding TYPO3 project possible!

Credits

The icons in this extension where kindly taken from Font Awesome.

The TYPO3 project - inspiring people to share!

mediadreams/md_news_pages_clickcount 适用场景与选型建议

mediadreams/md_news_pages_clickcount 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 22 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「extension」 「news」 「views」 「pages」 「typo3」 「TYPO3 CMS」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mediadreams/md_news_pages_clickcount 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mediadreams/md_news_pages_clickcount 我们能提供哪些服务?
定制开发 / 二次开发

基于 mediadreams/md_news_pages_clickcount 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 33
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2025-10-22