SilverStripe module for view scaffolding
PHP Scheme
Latest commit 7b0f410 Apr 24, 2012 @chillu Merge pull request #2 from swaiba/master
Updates to get it working "out of the box"
Permalink
Failed to load latest commit information.
code
lang
templates
tests
CHANGELOG
LICENSE
README.md
_config.php moved code from sapphire/trunk Oct 8, 2008

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