2017 © Pedro Peláez
 

silverstripe-module dataobjectaspage

Manage DataObjects through model admin but display them as pages on the site

image

silverstripe/dataobjectaspage

Manage DataObjects through model admin but display them as pages on the site

  • Wednesday, April 26, 2017
  • by arambalakjian
  • Repository
  • 11 Watchers
  • 55 Stars
  • 1,872 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 32 Forks
  • 5 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

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., (*1)

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., (*2)

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

Versioning

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

DataObjectAsPage::enable_versioning();, (*5)

Installation

Unpack and copy the module folder into your SilverStripe project., (*6)

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

  • The Item class must extend DataObjectAsPage
  • Inside the Item Class you must define: static $listing_page_class = '[YourListingPageClass]';, (*8)

  • The Admin class must extend DataObjectAsPageAdmin, (*9)

  • Inside the Admin Class, you need to define the standard ModelAdmin attributes, (*10)

  • The Listing Page class must extend DataObjectAsPageHolder and DataObjectAsPageHolder_Controller, (*11)

  • 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", (*12)

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

The Versions

26/04 2017

dev-master

9999999-dev

Manage DataObjects through model admin but display them as pages on the site

  Sources   Download

The Requires

 

by Aram Balakjian

silverstripe dataobjectasapage

03/03 2015

2.4.x-dev

2.4.9999999.9999999-dev

Manage DataObjects through model admin but display them as pages on the site

  Sources   Download

The Requires

 

by Aram Balakjian

silverstripe dataobjectasapage

03/03 2015

1.0.1

1.0.1.0

Manage DataObjects through model admin but display them as pages on the site

  Sources   Download

The Requires

 

by Aram Balakjian

silverstripe dataobjectasapage

11/09 2014

v3.0.0

3.0.0.0

Manage DataObjects through model admin but display them as pages on the site

  Sources   Download

The Requires

 

by Aram Balakjian

silverstripe dataobjectasapage

11/09 2014

v3.1.0

3.1.0.0

Manage DataObjects through model admin but display them as pages on the site

  Sources   Download

The Requires

 

by Aram Balakjian

silverstripe dataobjectasapage

03/03 2014

3.1.x-dev

3.1.9999999.9999999-dev

Manage DataObjects through model admin but display them as pages on the site

  Sources   Download

The Requires

 

by Aram Balakjian

silverstripe dataobjectasapage

15/04 2013

3.0.x-dev

3.0.9999999.9999999-dev

Manage DataObjects through model admin but display them as pages on the site

  Sources   Download

The Requires

 

by Aram Balakjian

silverstripe dataobjectasapage

15/04 2013

v2.0.0

2.0.0.0

Manage DataObjects through model admin but display them as pages on the site

  Sources   Download

The Requires

 

by Aram Balakjian

silverstripe dataobjectasapage