[WordPress] 外掛分享: Headless CMS

首頁外掛目錄 › Headless CMS
WordPress 外掛 Headless CMS 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
1,000+
安裝啟用
★★★★★
5/5 分(5 則評價)
1077 天前
最後更新
0%
問題解決
WordPress 4.6+ PHP 5.2.4+ v2.0.3 上架:2020-06-30

內容簡介

這是一個 WordPress 外掛,透過 REST API 向任何前端環境添加以下功能,使 WordPress 成為無界面 CMS。
此外掛提供多種功能,您可以使用與您的前端應用程式相關的功能,不必全部使用。
功能

自訂 REST API 端點。
自訂器中的社交連結。
分類的圖片上傳。
自訂標題和頁尾選單。
自訂小工具。
使用 wp-graphql 外掛時自訂標題、頁尾和方案 GraphQL 欄位。

功能詳細信息

在自訂器中添加社交連結選項
註冊標題的兩個自訂選單(選單位置 = hcms-menu-header)和頁尾(選單位置 = hcms-menu-footer)
註冊以下側邊欄

HCMS Footer #1,其側邊欄 ID 為 "hcms-sidebar-1"
HCMS Footer #2,其側邊欄 ID 為 "hcms-sidebar-2"

可用的自訂 REST API 端點

獲取單個文章(GET 請求):http://example.com/wp-json/rae/v1/post?post_id=1

按頁面號獲取文章(GET 請求):http://example.com/wp-json/rae/v1/posts?page_no=1

獲取標題和頁尾數據(GET 請求)

* 獲取標題數據(站點標題、站點描述、站點徽標 URL、選單項目)和頁尾數據(頁尾選單項目、社交圖標)
* `http://example.com/wp-json/rae/v1/header-footer?header_location_id=hcms-menu-header&footer_location_id=hcms-menu-footer“

按頁面號獲取文章(GET 請求)

* 按分類獲取文章
* http://example.com/wp-json/rae/v1/posts-by-tax?post_type=post&taxonomy=category&slug=xyz

更多功能

在自訂器中註冊社交圖標部分

社交圖標 URL,包括 Facebook、Twitter、Instagram 和 YouTube

分類的圖片上傳功能

為分類提供圖片上傳功能。

外掛設定頁面

設定自訂頁面的資料,例如英雄部分、搜索部分、精選文章部分和最新文章標題。

安裝和使用

本節介紹安裝外掛並啟用它的方法。

上傳外掛程式碼至 /wp-content/plugins/plugin-name 目錄,或通過 WordPress 插件畫面直接安裝它。
在 WordPress 中啟用外掛。
您可以添加自訂社交圖標。
您可以設置自訂標題和頁尾選單。
您可以向分類添加圖片。

此外掛可用於的前端應用程式示範

請查看示例 React 前端應用程式的演示,該外掛可以用於其中。

[2020-07-02] 演示 1。

[2020-09-29] 演示 2。

= 目前無法使用。

步驟一:檢查外掛是否啟用。
步驟二:禁用所有其他外掛,重新啟用頭部 CMS。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Headless CMS」→ 直接安裝(推薦)

原文外掛簡介

A WordPress plugin that adds following features to use WordPress as a headless CMS with any front-end environment using REST API
This plugin provides multiple features and you can use the one’s that is relevant to your front-end application. You don’t necessarily need to use all.
Features

Custom REST API Endpoints.
Social links in customizer.
Image uploads for categories.
Custom header and footer menus.
Custom Widgets.
Custom Header and Footer GraphQL fields when using wp-graphql plugin

Feature Details
Features

Adds option to add social links in customizer
Registers two custom menus for header ( menu location = hcms-menu-header ) and for footer ( menu location = hcms-menu-footer )
Registers the following sidebars

HCMS Footer #1 with sidebar id ‘hcms-sidebar-1’
HCMS Footer #2 with sidebar id ‘hcms-sidebar-2’

Available Custom REST API endpoints

Get single post ( GET request ): http://example.com/wp-json/rae/v1/post?post_id=1

Get posts by page no: ( GET Request ) : http://example.com/wp-json/rae/v1/posts?page_no=1

Get header and footer date: ( GET Request )

* Get the header data ( site title, site description , site logo URL, menu items ) and footer data ( footer menu items, social icons )
* `http://example.com/wp-json/rae/v1/header-footer?header_location_id=hcms-menu-header&footer_location_id=hcms-menu-footer“

Get posts by page no: ( GET Request )

* Get the posts by taxonomy
* http://example.com/wp-json/rae/v1/posts-by-tax?post_type=post&taxonomy=category&slug=xyz
More Features

Registers the sections for socials icons in the customizer

Social icons urls for ‘facebook’, ‘twitter’, ‘instagram’, ‘youtube’

Image upload features for categories

Provides Image upload features for categories.

Plugin Settings Page

Settings for getting data for a custom page like Hero section, Search section, Featured post section, latest posts heading.

Installation and Use
This section describes how to install the plugin and get it working.

Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
Activate the plugin through the ‘Plugins’ screen in WordPress
Your can add social icons from customizer
You can set up custom header and footer menus.
You can add image to categories.

Demo of the Frontend applications that can be used with this plugin
Please check the demo of an example React front-end application, where this plugin can be used.
[2020-07-02] Demo.

Using This plugin with WordPress and GraphQl

= Its not working.
Step 1. Check if your Plugin is activated.
Step 2. Deactivate all plugins and reactivate headless-cms.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon