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
4
votes
1 answer

Force saving a lowercase URL in the SilverStripe admin

For SEO purposes I need to be sure all URLs are saved as lowercase. How can I force the SilverStripe admin to save the URL in lowercase even if the user types the permalink in uppercase?
open-ecommerce.org
  • 1,763
  • 1
  • 25
  • 41
4
votes
1 answer

What generates the .holder-required class in SilverStripe forms

I'm building a contact form in SilverStripe. When testing validation, if I leave the required fields blank and hit submit, those input fields will be added a .holder-required class. Even if I reload the page, they won't disappear. (actually the…
DimSum
  • 352
  • 2
  • 4
  • 17
4
votes
1 answer

Resize images on upload in Silverstripe ModelAdmin

I'm new to Silverstripe and am having trouble finding the answer to my issue in the documentation or on SO. I'm using Silverstripe purely as a CMS: there is no website as a frontend. I have the simplest DataObject Product and a ModelAdmin…
MarkS
  • 127
  • 6
4
votes
2 answers

Silverstripe accessing function from inside custom form template

In mysite/code/Connectors.php I've created a form with a custom template in the Page_Controller here is the code: class Connectors_Controller extends Page_Controller { private static $allowed_actions = array ( 'TestForm', …
4
votes
1 answer

How do I sort something alphabetically (but the capital letters not as a group before the lowercase) in SilverStripe 3.1?

In SilverStripe 3.1 I can get a sorted list of Children by doing the following: $this->Children()->sort('Title', 'ASC'); But when I do this the capital letters (as a group) come before the lowercase (as a group); thus "D" comes before "a": Aadb …
iraira
  • 315
  • 2
  • 13
4
votes
3 answers

PHP session times out after only a few minutes

We have a PHP app (SilverStripe) on a cPanel LAMP shared hosting server. The CMS user is losing their session every couple of minutes. Here are some session settings based on phpinfo() on the hosting platform: session.gc_maxlifetime =…
Dave
  • 515
  • 5
  • 18
4
votes
3 answers

Auto-populate site tree items for SilverStripe site

I am still learning SilverStripe, and right now, I have a list of 50-60 pages I have to create for a site. It was suggested that I find a way to auto-populate the SilverStripe site tree with some code in order to save time (as opposed to manually…
Dejsa Cocan
  • 1,539
  • 3
  • 19
  • 56
4
votes
1 answer

Using Magento as an SSO provider

I have two sites I want to be connected with SSO. One is a store, using Magento, and I would like this to be the "source of truth" that holds all the members and will handle the authentication. The other is a marketing site using a CMS…
UncleCheese
  • 1,584
  • 9
  • 14
4
votes
4 answers

How to find out which version of Silverstripe a site is using, looking at the source code?

I have been given a Silverstripe site to maintain. How do I know which version of Silverstripe it's using, by looking in the source code?
Highly Irregular
  • 38,000
  • 12
  • 52
  • 70
4
votes
3 answers

How can I logout an administrator in SilverStripe 3.1.x after period of inactivity?

How do I expire the administrator session after a period of inactivity in SilverStripe 3.1.x? Is there a config option for this? I searched and found the following code snippet, which, when placed in the Page_Controller class, works for frontend…
D-L
  • 255
  • 1
  • 15
4
votes
2 answers

How can I change the admin path in SilverStripe 3.1.x?

Can anyone tell me how I can change the path to the admin on SilverStripe 3.1.x? A site I built has a medium risk security issue outstanding from a security scan - apparently the path /admin is too easy to guess. The recommendation is to: Modify…
D-L
  • 255
  • 1
  • 15
4
votes
2 answers

Silverstripe admin page not coming

I'm kinda new to silverstripe, had everything working perfect on my localserver, migrated a remote server, things worked fine at the first glance. The next day, I found can't access the admin page though I have been accessing it just the day before.…
Joe Saad
  • 1,940
  • 3
  • 22
  • 32
4
votes
1 answer

Silverstripe conditional validation

I have a form which has multiple actions e.g. Create Order & Create Quote. Depending on what action is clicked I need to apply different validation. e.g. Order Ref is not required for a quote. Is this possible within Silverstripe? If not how would I…
mylesthe.dev
  • 9,565
  • 4
  • 23
  • 34
4
votes
1 answer

Silverstripe admin: "Has one" dropdown converts to ordinary input field after import

I am having some problems with the admin of Silverstripe. I defined a database model (see class definitions below), and after I do a dev/build everything is looking as expected. When I try to add a new "package" all the "has one" fields are there…
jberculo
  • 1,084
  • 9
  • 27