vinstah/silverstripe-designer

此包已被弃用且不再维护。作者建议使用 nzvvveb/silverstripe-designer 包。

允许通过CMS编辑页面模板

安装: 6

依赖: 0

建议者: 0

安全: 0

星标: 3

关注者: 5

分支: 0

公开问题: 2

语言:JavaScript

类型: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

使用CMS预览或前端创建美观的模板

silverstripe-designer

安装

  • composer require nzvvveb/silverstripe-designer
  • dev/build?flush=all

更新 Layout/Page.ss 以包含

<% 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

使用方法

silverstripe-designer-permissions

  • 在管理员/安全中开启 PERM_FRONTEND_DESIGN
  • 通过URL的get参数 ?showdesigner=true 开启设计

增强功能

  • 保存到Silverstripe后端
  • 设置显示构建器的权限
  • 在构建器内渲染SS数据(内容,标题)