定制 symbiote/silverstripe-frontend-authoring 二次开发

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

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

symbiote/silverstripe-frontend-authoring

最新稳定版本:1.0.0

Composer 安装命令:

composer require symbiote/silverstripe-frontend-authoring

包简介

Provides frontend editing capabilities for SilverStripe pages

README 文档

README

Build Status Latest Stable Version Latest Unstable Version Total Downloads License

Adds frontend editing capability

Composer Install

composer require symbiote/silverstripe-frontend-authoring:~1.0

Requirements

  • SilverStripe 4.1+

Documentation

Enable the module by adding the following config to your project

---
Name: authoring_configuration
---
PageController:
  extensions:
    - Symbiote\FrontendEditing\FrontendAuthoringController

After enabling the module, trigger frontend editing by appending /edit?stage=Stage to the current URL.

In your page class, ensure you have a getFrontEndFields method declared that returns fields appropriate for editing your content.

When editing, you can use the following shortcuts;

  • Page creation - enter [Page Title](my-custom-slug), or simplified as [Page Title]() for the slug to be generated

Configuration

You can set the following properties

  • page_create_types: The type of the page to create when adding a page using the syntax. The key is the 'current' page, the value the page type to create
  • page_create_parent_field: The field to use of the 'current' page for newly created pages' "parent". Defaults to ID
MyController:
  page_create_types:
    Symbiote\Page\NewsHolder: Symbiote\Page\NewsPage
  page_create_parent_field:
    Symbiote\Page\MyPage: ParentID

If your editing save process requires a page reload after saving (say, you modify the content via the page edit) then output the X-Authoring-Reload header with a value of 1

Controller::has_curr() ? Controller::curr()->getResponse()->addHeader('X-Authoring-Reload', 1) : false;    

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-01-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固