Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: 3.0
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.801 kB
<?php
//So that we don't need a certain root folder name - Thanks Dan Hensby: https://github.com/dhensby/
define('MOD_DOAP_PATH',rtrim(dirname(__FILE__), DIRECTORY_SEPARATOR));
$folders = explode(DIRECTORY_SEPARATOR,MOD_DOAP_PATH);
define('MOD_DOAP_DIR',rtrim(array_pop($folders),DIRECTORY_SEPARATOR));
unset($folders);
/*
* This fixesthe URL segment editor in model admin
*
* Note this will prevent any URL segment editor buttons from having translations
*/
DataObject::add_extension('LeftAndMain', 'DataObjectAsPageLeftAndMain');
/*
* Add this line to your _config.php to enable versioning on your DataObjectAsPage classes.
*
* Unfortunately this will to apply to all your DOAP classes as it needs to apply to the root DOAP class.
*
DataObjectAsPage::enable_versioning();
*
*/
Jump to Line
Something went wrong with that request. Please try again.