SilverStripe module for view scaffolding
PHP Scheme
Pull request Compare This branch is 1 commit behind chillu:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
code
lang
templates
tests
CHANGELOG
LICENSE
README.md
_config.php

README.md

Generic Views Module

Simple way to generate view, add, edit and search interfaces for your DataObject instances. Targeted towards usage in a website-frontend. Uses “scaffolding” of formfields based on meta-information from the DataObject class for sensible defaults.

Maintainer Contact

  • Ingo Schommer (Nickname: ischommer, Email: )

Requirements

  • SilverStripe 2.3

Features

  • View a list of all records
  • Create, edit or delete records
  • Customizeable templates for all views
  • Implement your own logic in subclasses
  • Integrate in your CMS-Menu as a page type, or use as a standalone controller
  • Uses the DataObject permission model (can*() methods)
  • Scaffolded search interface based on SearchContext

Related

Usage

  1. Download code from github, rename the folder to ‘genericviews’
  2. Create a DataObject for use with CRUD (ensuring the canCreate / canEdit / canDelete functions are defined - see http://doc.silverstripe.org/old/recipes:cheat_sheet#dataobject_sitetree_settings)
  3. Run a /dev/build/
  4. Create a new ‘Collection Page’ in the CMS.
  5. Change the 'CollectionModelClass' (on the 'GenericView' tab of the page just created) to the Model requiring CRUD