-
Optimizing response time in SilverStripe using APC and Partial Caching
-
Customizing GridField columns. (Two methods)
- Use
$summary_fields
and define custom getter:
$summary_fields = array('FullName' => 'Full Name'); public function getFullName() { return $this->FirstName . ' ' . $this->LastName; }
- Use
-
Use GridField
setFieldFormatting()
to customize:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function filterStuff() { | |
// Can't use Search Filter since the object has a base class of SiteTree | |
// $results = PostPage::get()->filter(array('Authors.URLSegment:ExactMatch' = 'Trev')); | |
// Lets go manually | |
$results = PostPage::get()->leftJoin( | |
'PostPage_Authors', | |
'"PostPage_Authors"."PostPageID" = "PostPage"."ID"' |
These instructions install ruby and rubygems from source, not from RPMs. For instructions on installing from RPMs, look at something like http://wiki.opscode.com/display/chef/Installation+on+RHEL+and+CentOS+5+with+RPMs or http://mykestubbs.com/blog/2010/03/chef-installation-on-centos-54.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
window.DS = Ember.Namespace.create({ | |
// this one goes to 11 | |
CURRENT_API_REVISION: 11 | |
}); | |
})(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Version: v1.0.0-pre.4-55-g11ab37f | |
// Last commit: 11ab37f (2013-01-27 14:30:02 -0800) | |
(function() { | |
/*global __fail__*/ | |
/** | |
Ember Debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Version: v1.0.0-pre.4-10-g389a912 | |
// Last commit: 389a912 (2013-01-20 16:30:20 -0800) | |
(function() { | |
/*global __fail__*/ | |
/** | |
Ember Debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
window.DS = Ember.Namespace.create({ | |
// this one goes to 11 | |
CURRENT_API_REVISION: 11 | |
}); | |
})(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Version: v1.0.0-pre.2-396-gddb0951 | |
// Last commit: ddb0951 (2013-01-14 10:16:46 -0800) | |
(function() { | |
/*global __fail__*/ | |
/** | |
Ember Debug |