Download the PHP package symbiote/silverstripe-frontend-authoring without Composer
On this page you can find all versions of the php package symbiote/silverstripe-frontend-authoring. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download symbiote/silverstripe-frontend-authoring
More information about symbiote/silverstripe-frontend-authoring
Files in symbiote/silverstripe-frontend-authoring
Package silverstripe-frontend-authoring
Short Description Provides frontend editing capabilities for SilverStripe pages
License BSD-3-Clause
Informations about the package silverstripe-frontend-authoring
Frontend Editing
Adds frontend editing capability
Composer Install
Requirements
- SilverStripe 4.1+
Documentation
Enable the module by adding the following config to your project
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
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