Ejemplo n.º 1
0
// Default administrator account for the CMS
Security::setDefaultAdmin('admin', 'password');

// Theme should be located in /themes/<themename> (Default folder: '/themes/mysite')
SSViewer::set_theme('mysite');

// Recipe: Taggable
DataObject::add_extension('SiteTree', 'Taggable');

// Recipe: Redirection of legacy URLs
Director::addRules(1, array(
	'$URLSegment//$Action/$ID/$OtherID' => 'CustomModelAsController',
));

// Recipe: Branding the CMS
LeftAndMain::setApplicationName(
	'My Kiwi CMS',
	'My Kiwi CMS',
	'http://mykiwicms.com'
);
LeftAndMain::setLogo(
	'mysite/images/kiwicmslogo.gif',
	'width: 62px; height: 32px;'
);
LeftAndMain::set_loading_image(
	'mysite/images/kiwicmslogo_loading.png'
);
LeftAndMain::require_css('mysite/css/kiwicms.css');

BlogEntry::$allow_wysiwyg_editing = true;
?>