Questions tagged [silverstripe]

Silverstripe is a free and open source PHP web development framework and Content Management System (CMS) based on the eponymous Silverstripe Framework.

Silverstripe CMS is a free and open source PHP web development framework, primarily developed and maintained by the New Zealand based company of the same name (Silverstripe Ltd.).

Silverstripe CMS is notable for being the first open source web application to become Microsoft Certified and for winning a number of awards for CMS usability.

Silverstripe CMS is built on the Silverstripe Framework (previously called Sapphire), an object-oriented PHP framework designed to let users focus on their data and business logic. The framework enables developers to easily extend the CMS.

Development Resources

The following lists contain development resources for Silverstripe programmers.

Official

Resources sponsored or hosted by Silverstripe Ltd.:

The book "SilverStripe: The Complete Guide to CMS Development" is also available from Amazon.com.

Requirements

The follow requirements are listed on the server requirements documentation page:

PHP

  • PHP 5.3.3+ (incl. PHP 7)
  • The following modules: dom, gd2, fileinfo, hash, iconv, mbstring, mysqli (or other database driver), session, simplexml, tokenizer, xml
  • Relevant database module (mysql, pgsql, sqlsrv, etc)
  • 48 MB memory (minimum)
  • php-intl extension (Silverstripe 4 only)

Database

  • MySQL 5.0+ (built in support)
  • PostgreSQL 8.3+ (with a module)
  • SQLite 3+ (with a module)
  • SQL Server 2008 (with a module)

HTTP Server

  • Apache 2.0+ with mod_rewrite and "AllowOverride All" set (preferred)
  • IIS 7+ with URL Rewrite Module
  • Lighttpd and Nginx possible but require knowledge for how to configure them
2238 questions
6
votes
2 answers

JavaScript inserted after the footer in SilverStripe

Why does my JavaScript appear after the footer? Below is my code in the layout (Page.ss): <% include SideBar %>
6
votes
1 answer

How to add Custom button and its functionality in Admin Silverstripe?

How to add Custom button and its functionality in Admin Silverstripe? Please tell me solution. Custom Button add only in one menu.
user3111011
  • 145
  • 9
6
votes
1 answer

ModelAdmin filter resets itself

Is there a way to make ModelAdmin filters more persistent? Currently if you filter, edit a DataObject and come back, the filter is gone. Also prev/next from unclecheese/betterbuttons do not respect the filter. It jumps to the next Object but not…
munomono
  • 1,245
  • 8
  • 18
6
votes
1 answer

Silverstripe 3.1 action for custom form not executed

I have a custom Page called ForgotPasswordPage.php and a ForgotPasswordPage.ss template. I also have a custom Form class in ForgotPasswordForm.php and it's corresponding custom Form template, ForgotPasswordForm.ss, in the templates/Includes…
6
votes
4 answers

SilverStripe admin area overwrite

In SilverStripe 3.1 is it possible to overwrite the SilverStripe logo and the url (instead of replacing it) which is shown on top of the CMS on the left side?
Steve
  • 956
  • 2
  • 12
  • 27
6
votes
2 answers

sort has_many by has_one relation in silverstripe

I've got three DataObjects in Silverstripe 3.1: an Issue, a Vote, and a Voter. Issues have many Votes; Votes have one Voter and one Issue. On my Issue_show page, I want to show all that Issue's Votes, sorted by Voter's Name. The function in the…
mierla
  • 63
  • 3
6
votes
2 answers

Making Greyscale image in Silverstripe

I'd like to be able to return an image in Black&white in a controller, so I can use it in a template. On this page I found that the GD class has a greyscale method. Unfortunately I don't understand the GD class and how I can use it. I tried…
handyface
  • 231
  • 3
  • 14
6
votes
1 answer

Add buttons for custom action to ModelAdmin

When managing Dataobjects with ModelAdmin in Silverstripe 3, i was wondering how you can add buttons for custom action to the list view as well as to the edit-page. I've managed to add a button for a action to the edit-page by setting the…
mgherkins
  • 13,149
  • 6
  • 38
  • 68
6
votes
2 answers

Random object per page request with SilverStripe

Lets say you show a random statement per page request and use a function to return a random object like: Statement::get()->sort("RAND()")->limit("1"); But now in the template you want to reference it twice in different places but it should be the…
munomono
  • 1,245
  • 8
  • 18
5
votes
1 answer

Silverstripe 3 form not executed

I create ContactPage.php type and also create form class ContactForm.php with custom template ContactForm.ss. After submitting form nothing was happening. Where is my mistake? ContactForm.php: class ContactForm extends Form { public function…
Ivan
  • 4,530
  • 11
  • 42
  • 69
5
votes
1 answer

$Date.Format on Silverstripe 4 Template

I have a date in the database with this format "YY-mm-dd". On the template I want it in this format: dd.mm.YY Usually it would work with $date.Format('d.m.Y') But not in Silverstripe 4. It converts from 2018-05-08 to 8.0.2018. Only the year is…
Denis
  • 111
  • 1
  • 3
5
votes
4 answers

Pointers for getting started with SilverStripe modules

I am new to SilverStripe. I would like to know a good place where I can start making modules for SilverStripe; some good tutorials to get me started.
5
votes
1 answer

How to remove obsolete database columns in SilverStripe

Is there a convenient way to remove obsolete table columns from the database? I'm wondering if there is a more convention-based solutions rather than logging into PHPMyADMIN and deleting columns manually. Example When installing SilverStripe-Fluent…
Semicolon
  • 1,822
  • 12
  • 18
5
votes
1 answer

Silverstripe: Filter blog posts by Author

I've been googling for about 2 hours now and can't find an answer to this question. I'm trying to filter blog posts (using the silverstripe-blog module) by Author/MemberID. So far I've got: public function MyRecentPosts() { $posts =…
Dallby
  • 578
  • 3
  • 18
5
votes
0 answers

Debugging SilverStripe prepared statements

Debugging DB queries with the ORM changes introduced in 3.2 became more difficult. Running $dataList->sql() gives you the prepared statement (in form of SELECT * FROM Table WHERE Title = ?) which is a good start. ?showqueries URL variable does the…
jlilja
  • 400
  • 5
  • 17