Coder Social home page Coder Social logo

helpfulrobot / thezenmonkey-dataobjectaspage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arambalakjian/dataobject-as-page

0.0 2.0 0.0 105 KB

A SilverStripe module for displaying DataObjects as Pages

PHP 94.08% CSS 1.78% Scheme 4.13%

thezenmonkey-dataobjectaspage's Introduction

DataObjectAsPage Module

Maintainers

  • Aram Balakjian

Branch Requirements

  • 3.1 -> SilverStripe 3.1.x
  • 3.0 -> SilverStripe 3.0.x
  • 2.4 -> SilverStripe 2.4.x

Overview

The module provides functionality for displaying DataObjects managed via ModelAdmin to appear as though they were full Pages on the front end of the site. It includes the option to enable versioning, allowing Draft and Published versions of the DataObject.

Searching has been removed for now but will hopefully be added back in future as a standalone module. We would recommend either Lucene or Solr modules for DataObject searchability.

For full instructions on use see: http://www.ssbits.com/tutorials/2012/dataobject-as-pages-the-module/

##Versioning

Versioning is now optional, you can enable it by adding the following line to you _config.php

DataObjectAsPage::enable_versioning();

Installation

Unpack and copy the module folder into your SilverStripe project.

Create 3 new Classes; The Item class, the Admin Class and the Listing Page class.

  • The Item class must extend DataObjectAsPage
  • Inside the Item Class you must define: static $listing_page_class = '[YourListingPageClass]';
  • The Admin class must extend DataObjectAsPageAdmin
  • Inside the Admin Class, you need to define the standard ModelAdmin attributes
  • The Listing Page class must extend DataObjectAsPageHolder and DataObjectAsPageHolder_Controller
  • Inside the ListingPage Controller Class you must define: static $item_class = '[YourItemClass]';

Run "dev/build" in your browser, for example: "http://localhost/silverstripe/dev/build?flush=all"

For full installation and extention options visit http://www.ssbits.com/tutorials/2012/dataobject-as-pages-the-module/

thezenmonkey-dataobjectaspage's People

Contributors

arambalakjian avatar jamesbolitho avatar dhensby avatar codivist avatar gsteel avatar lingo avatar petebacondarwin avatar 3dgoo avatar anselmdk avatar clyonseis avatar joernroeder avatar

Watchers

James Cloos avatar helpfulrobot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.