dljoseph/silverstripe-custom-error-page 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dljoseph/silverstripe-custom-error-page

最新稳定版本:v0.1

Composer 安装命令:

composer require dljoseph/silverstripe-custom-error-page

包简介

SilverStripe Custom Error Page Module. Select any template to use as a custom error page.

README 文档

README

Custom Error Page Module for SilverStripe. Select which template to use as a custom 404 or other error page type.

Maintainer Contacts

  • DL Joseph (<darrenleejoseph (at) gmail (dot) com>)

Requirements

  • SilverStripe 3.1.x, 3.2+

Installation Instructions

Installation can be done either by composer or by manually downloading a release.

Via composer

composer require "dljoseph/silverstripe-custom-error-page:*"

Manually

  1. Download the module from the releases page.
  2. Extract the file (if you are on windows try 7-zip for extracting tar.gz files
  3. Make sure the folder after being extracted is named 'custom-error-page'
  4. Place this directory in your sites root directory. This is the one with framework and cms in it.
  5. Visit <yoursite.com>/dev/build/?flush to rebuild the database.

Usage Overview

Once installed, the SilverStripe ErrorPage will be augmented with an additional field to allow the administrator to select which template to use for the error page.

Be sure to add the following line to your Page_Controller class in mysite/code/Page.php to allow template overrides:

`public $templates; //required for template overrides`

Templating

If you wish to use a different template for the ErrorPage, simply create a new SilverStripe template file, be sure to place it directly in the templates folder (above Layouts) and visit /?flush to flush the template cache. Afterwards, you must go to the ErrorPage in the CMS and manually select the template from the dropdown to tell SilverStripe which template to use to render the ErrorPage for display.

Known Issues

There are no known issues.

统计信息

  • 总下载量: 1.9k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-07-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固