vinstah/silverstripe-designer

This package is abandoned and no longer maintained. The author suggests using the nzvvveb/silverstripe-designer package instead.

allow page templates to be edited through CMS

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 5

Forks: 0

Open Issues: 2

Language:JavaScript

Type:silverstripe-vendormodule

dev-master 2019-10-24 21:18 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:14:29 UTC


README

Create beautiful templates using the cms preview or front end

silverstripe-designer

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

silverstripe-designer-permissions

  • 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)