Skip to content

Instantly share code, notes, and snippets.

@colymba
colymba / FulltextSearchableResults.php
Last active September 15, 2017 11:44
SilverStripe custom search results function. For Page and DataObject
/**
* Process and render search results.
*
* !! NOTE
* _config.php includes:
*
* FulltextSearchable::enable();
* Object::add_extension('ExtendedPage', "FulltextSearchable('HeadlineText')");
* Object::add_extension('NewsStory', "FulltextSearchable('Name,Content')");
* !!
@colymba
colymba / Presentation.php
Created July 31, 2013 13:10
Custom HtmlEditorConfig and TinyMCE multiple rendering
<?php
class Presentation extends DataObject
{
private static $db = array(
'Title' => 'Text',
'Description' => 'HTMLText'
);
public function getCMSFields()
{
@colymba
colymba / GoogleSpell.php
Created August 1, 2013 10:18
TinyMCE GoogleSpell PHP RPC
<?php
/**
*
* @package MCManager.includes
* @author Thierry Francois @colymba
* @author Moxiecode
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
*/
class GoogleSpell extends SpellChecker {

Authentication using Ember simple auth and SilverStripe RESTful API

The goal of this GIST is to give a short summary of what is needed to perform authentication from an ember.js application using simple-auth and the SilverStripe RESTful API module

Prerequisites

Here's a list of the software that was used:

Frontend