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
2284 questions
3
votes
1 answer

How to limit object access to $has_one Member in Silverstripe?

I'm working on a Silverstripe 4.3.1 project which has an object with an owner member attached via $has_one: class Object extends DataObject { private static $has_one = [ 'Member' => Member::class, ]; We want to limit the ability to…
BaronGrivet
  • 4,364
  • 5
  • 37
  • 52
3
votes
1 answer

SilverStripe 4.3.1 - Convert default boolean value to Yes or No from SS 4.2.1

I have successfully created a gallery landing page that pulls a specified child album cover image to itself. This works perfectly in SS 4.2.1 I then created a new SS 4.3.1 and copied over all the templates. Everything is working except for this…
3
votes
0 answers

Multiple Templates not loading

I am having an issue loading multiple templates, and trying to follow this guide, https://www.silverstripe.org/learn/lessons/v4/working-with-multiple-templates-1 In my app/src I have... Homepage.php
Shawn W
  • 566
  • 4
  • 13
3
votes
1 answer

"Couldn't find object" error with Silverstripe 4 unit testing, how to fixed it?

"Couldn't find object" error with Silverstripe 4 unit testing, how to fixed it?. with silverstripe 4 unit test, im getting a error "Couldn't find object 'transaction1' ". can anyone suggest what's happening here?. Thanks. class…
kosala manojeewa
  • 329
  • 3
  • 11
3
votes
0 answers

Using i18n in SilverStripe template

I'm using SilverStripe 3.7.1 and PHP 7.2. To translate string in my template I use syntax <%t Namespace.Entity "String_to_translate" %> When length of the "String_to_translate" is more than 2045 symbols I get error: [26-Jul-2018 10:18:33] Error at…
alex
  • 307
  • 1
  • 13
3
votes
1 answer

silverstripe 4 has_many relationship giving errors

getting this error; [Emergency] Uncaught InvalidArgumentException: has_many relation abc\def\ghi\Customer.OrderRegistrants references class Order which doesn't exist private static $has_many = [ 'OrderRegistrants' =>…
kosala manojeewa
  • 329
  • 3
  • 11
3
votes
1 answer

How to add a css style to an element in the HTMLEditorField content editor in Silverstripe 4?

In SS 3.x we could use the following code to add custom elements into the HTMLEditorField content editor via the Styles dropdown. My main use for this was to turn a standard link into a styled button link. How can we achieve this in SS 4.x? This is…
ifusion
  • 2,163
  • 6
  • 24
  • 44
3
votes
0 answers

Polymorphic in Silverstripe CMS

I use a polymorphic relationship in my SilverStripe project. Now I want to add in the CMS a button to add a new polymorphic object. It would be fine, if it will be a step by step progress. First step get a dropdown with all Object with a link to the…
Y4roc
  • 1,066
  • 8
  • 12
3
votes
2 answers

Silverstripe 4 SapphireTest class can't be found

I've upgraded from SilverStripe 3 to 4 and now my phpUnit tests own't run because they can't find any of my Custom Classes. There must be something missing from an autoloader or something. I have a simple test like this use…
wild
  • 311
  • 4
  • 11
3
votes
1 answer

Upgrading to Silverstripe 4.1.0 getting Fatal error: Class 'PageController' not found in ErrorPageController.php?

I am upgrading a Silverstripe 3.6.5 site to 4.1.0, just going through the upgrading process. I have struck a hurdle. I am getting this error: Fatal error: Class 'PageController' not found in…
ifusion
  • 2,163
  • 6
  • 24
  • 44
3
votes
1 answer

How to automaticly publish images in silverstripe dataextension

I was trying to add an uploadfield to a Custom DataExtension and got the Image field working. However the image i uploaded stays in concept mode, and i have to go to the File tab to publish it. I tried to use the code provided in the Silverstripe…
3
votes
1 answer

Upload image with UploadField in frontend form Silverstripe 4.0

I'm not able to upload pictures through the front end form in Silverstripe. I have looked at the example on this page but it didn't help me. Updating text fields is working fine. My code is posted below, what have I missed? public function…
3
votes
0 answers

Dev environment does not set in Silverstripe

In my _ss_environment.php I have: define('SS_ENVIRONMENT_TYPE', 'dev'); and in my _config.php: require_once("conf/ConfigureFromEnv.php"); but for some reason my environment is still in live mode and cannot change to dev. I tested with simple…
user9117670
  • 151
  • 1
  • 6
3
votes
0 answers

How to include a static image in the template with SilverStripe 4? $ThemeDir is not working

Can anyone please show me how to include a static image in my template with SilverStripe 4? Because $ThemeDir is not working. E.g. is not working.
Brendan
  • 834
  • 1
  • 9
  • 20
3
votes
1 answer

Auto generating SilverStripe admin links

So I have a DataObject that I manage via Model Admin via the standard gridfield (using Silverstripe 4) I would like to be able to generate a link to edit this object directly the admin. I can do this if I manually enter the ModelAdmin URL, but this…
PsychoMo
  • 699
  • 5
  • 17