Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

SilverStripe module for view scaffolding

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 code
Octocat-spinner-32 lang
Octocat-spinner-32 templates
Octocat-spinner-32 tests
Octocat-spinner-32 CHANGELOG
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 _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
Something went wrong with that request. Please try again.