定制 philtenno/news-pull 二次开发

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

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

philtenno/news-pull

最新稳定版本:v1.3.7

Composer 安装命令:

composer require philtenno/news-pull

包简介

Contao-Erweiterung zum Importieren von News.

README 文档

README

Contao extension for automated news import – N8N

'News Pull' is a Contao extension for the automatic import of news items. Via backend configuration, multiple news archives of the Contao news bundle can be populated independently of each other. All imported news items can then be edited further in the backend as usual or published automatically right away. The import format is JSON. Transmission is done via an HTTP-Request (POST): https://domain.com/newspullimport?token=your_token

'News Pull' enables the automation of news items using platforms such as N8N. A frontend module additionally allows displaying related articles based on keywords. The frontend module can simply be placed after the Contao news reader module.

Import formats

The import is performed via HTTP POST request to the endpoint: https://domain.com/newspullimport?token=your_token

Variant 1: JSON structure:

[ { 'title': 'News title 1', 'teaser': 'Teaser text', 'article': 'Article text: plain text and/or HTML elements as in TinyMCE are allowed', 'metaTitle': 'Meta title of the news item', // -> optional: fallback = title 'metaDescription': 'Meta description of the article', // -> optional: fallback = teaser 'dateShow': '2025-06-10 04:06:00', // -> optional: date when the article should become visible 'keywords': 'keyword-1,keyword-2,keyword-3', // -> optional: keywords for related articles 'image': 'Name of an image file', // -> image.jpg // -> optional, if an image has been uploaded separately to the server (directory is defined in the extension configuration in Contao) 'imageAlt': 'Alt description' // -> image description / alt text // -> optional } ]

Variant 2: Multipart (new):

curl -X POST "https://domain.com/newspullimport?token=your_token"
-F 'payload={ "items": [ { "title": "News title 1", "teaser": "Teaser text", "article": "Article text or HTML elements", "metaTitle": "Meta title of the news item", "metaDescription": "Meta description of the news item", "dateShow": "2025-06-10 04:06:00", "keywords": "keyword-1,keyword-2,keyword-3", "imageAlt": "Description of the image" } ] };type=application/json'
-F 'image=@/path/to/file.jpg;type=image/jpeg'

Installation

$ composer require philtenno/news-pull

Use cases

--> News --> Magazines --> SEO --> Intranet publications

made with love by hardbitrocker

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-06-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固