定制 plenta/contao-news-like-bundle 二次开发

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

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

plenta/contao-news-like-bundle

最新稳定版本:2.0.1

Composer 安装命令:

composer require plenta/contao-news-like-bundle

包简介

Integrate your own like button into your contao news.

README 文档

README

Integrate your own like button into your contao news.

Installation

Install using Contao Manager

Search for news like and you will find this extension.

Install using Composer

composer require plenta/contao-news-like-bundle

System requirements

  • PHP: ^8.1
  • Contao: ^4.13 || ^5.1
  • Contao News Bundle: ^4.13 || ^5.1

Usage

You can either use our news templates or integrate the like button into your own templates.

Use our news templates

In the Newslist and/or Newsreader module, you can choose our templates news_latest_with_likes or news_full_with_likes as news template.

Integrate the like button into your own templates

To integrate the like button into your own templates, simply include our _plenta_likes.html.twig Twig template where ever you want to display the button.

In PHP templates:

<?php $this->insert('_plenta_likes', ['news' => $this->arrData]) ?>

In Twig templates:

{% include('@Contao/_plenta_likes.html.twig' with {news: _context}) %}

The news variable expects the news item as an array.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2023-07-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固