Skip to content

helpfulrobot/sunnysideup-templateoverview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template Overview Page

Provides the developer with a bunch of tools to review the page types used on a website.

Make sure to check out the /dev/tasks/CheckAllTemplates task as this will provide you with a very useful implementation of the poorman's template checker.

Developer

Nicolaas Francken [at] sunnysideup.co.nz

Requirements

see composer.json HIGHLY RECOMMENDED: prettyphoto:

Documentation

Please contact author for more details.

Any bug reports and/or feature requests will be looked at in detail

We are also very happy to provide personalised support for this module in exchange for a small donation.

This module allows you to review all your classes (templates) used on a website.

It has a page type that lists all templates used on the website.

You can also include a footer on every page with information about the template being used.

When logged-in as admin, the TemplateDevelopment template include allows you to visit the front-end of the website and:

  1. upload and view designs
  2. link through to edit page in the CMS
  3. review stats (last changed, etc... for the template).

Installation Instructions

  1. Find out how to add modules to SS and add module as per usual.

  2. Review configs and add entries to mysite/_config/config.yml (or similar) as necessary. In the /_config/ folder of this module you can usually find some examples of config options (if any).

  3. to any page template, add the following function To provide help instructions.

     	function getHowToMakeThisTemplateWorkArray() {
     		$a = array();
     		//OR $a = parent::getHowToMakeThisTemplateWorkArray();
     		$a[] = "Select header and three items for section one";
     		$a[] = "Select header and three items for section two";
     		return $a;
     	}
    
  4. [OPTIONAL] add to the bottom of your Page.ss file:

     <% include TemplateOverviewPageDevelopmentFooter %>
    

About

adds development tools for building silverstripe websites, in particular around managing page types.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 76.0%
  • Scheme 14.9%
  • JavaScript 5.1%
  • CSS 4.0%