承接 markocupic/contao-frontend-user-notification 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

markocupic/contao-frontend-user-notification

最新稳定版本:1.0.8

Composer 安装命令:

composer require markocupic/contao-frontend-user-notification

包简介

Display notifications to logged in frontend users

README 文档

README

Alt text

Frontend User Notification Extension for the Contao CMS

This Contao extension can be used to display notifications to logged-in users in the Contao frontend.

Alt text

All you have to do is...

Embed a frontend module of the type Member Notifications in your Contao layout.

You can generate the message in the backend or have it generated programmatically.

// Add the notification programmatically
$type = 'happy-birthday-msg';

/** @var \Contao\FrontendUser $user */
$user = $this->getUser();  // Select a user who should have a notification displayed in the frontend.

$messageTitle = 'Happy  Birthday'
$messageText = 'bla, bla, bla';
$endOfLifeTimeStamp = time() + 7*24*3600; // 1 week

new Markocupic\ContaoFrontendUserNotification\Notification\DefaultFrontendUserNotification($user, $type, $messageTitle, $messageText, )

Dependencies

To use Bootstrap toast for the notifications you have to embed Bootstrap manually.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2024-10-19