Skip to content

tazzydemon/silverstripe-squandered-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

silverstripe-squandered-theme

A continuous work in progress.

Built for 3.1 but should be fine 3.*

Screenshots

Login alt tag

Home page, with latest blog posts alt tag

Blog Holder alt tag

Comments alt tag

Custome code

To display blogs on the homepage, create a new php file in mysite/code called HomePage.php and add the following code.

<?php
class HomePage extends Page
{

}
class HomePage_Controller extends Page_Controller
{
    public function LatestBlog()
    {
        return DataObject::get('BlogEntry', '', 'Date DESC', '', 5);
    }
}

Then with the CMS change the page type of your homepage to be HomePage.

To enable gravatar icons for the comments, added the following to /mysite/_config.php

Commenting::set_config_value('SiteTree', 'use_gravatar', true);

About

A bastard theme that butchered silverstripe standards.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published