formatz/contao-headless-cms-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

formatz/contao-headless-cms-bundle

最新稳定版本:1.1

Composer 安装命令:

composer require formatz/contao-headless-cms-bundle

包简介

Contao Headless CMS Bundle

README 文档

README

Requirements

You'll need an up-and-running Contao 4.9.x installation.

Installation

Install composer if you haven't already, enter this command in the main directory of your Contao installation:

composer require formatz/contao-headless-cms-bundle

Contao Content API is now installed and ready to use.

Usage

Once installed, the following routes are available:

/api/page?url=/about/team.html OR /api/page?id=5

Gets the page, including all articles and contents at the url or id.

Example | Example with newslist | Example with newsreader

/api/module?id=5

Gets the content of a module by id

Example (newsreader)

/api/content?id=5

Gets the content of a content element by id

Example | Example with image

All routes also take the additional lang parameter (e.g. ?lang=de). If you need to override the language.

Contribution

Bug reports and pull requests are very welcome :)

© Format-Z 2023

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2023-06-28