Skip to content

nzvvveb/silverstripe-designer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silverstripe designer (front end designer)

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)