nzvvveb / silverstripe-designer
allow page templates to be edited through CMS
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 6
Forks: 0
Open Issues: 2
Language:JavaScript
Type:silverstripe-vendormodule
Requires
- silverstripe/framework: ^4
- silverstripe/vendor-plugin: ^1.3@dev
This package is not auto-updated.
Last update: 2025-01-11 06:40:58 UTC
README
Create beautiful templates using the cms preview or front end
Installation
composer require nzvvveb/silverstripe-designer
dev/build?flush=all
Update Layout/Page.ss to include
<% include NzVvveb\Designer\Designer TemplateID="gjs" %>
<div class="content-container unit size3of4 lastUnit" id="gjs">
<article>
<h1>$Title</h1>
<div class="content">$Content</div>
</article>
$Form
$CommentsForm
</div
Usage
- Switch on PERM_FRONTEND_DESIGN in admin/security
- switch on the design with URL get param
?showdesigner=true
Enhancements
- Save to Silverstripe backend
- Set Permissions for showing the builder
- Render SS data inside the builder (Content, Title)