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
7
votes
2 answers

I need a dropdown brands filter for Silvershop

How do I filter $Product on AdditionalCategories in the template? I've tried: $Product.filter('AdditionalCategories', $MyFilter) But there is no AdditionalCategories column on Product in the database
helenclarko
  • 269
  • 1
  • 12
7
votes
1 answer

Silverstripe: Pass URL Variable to Form Action

is there a way to pass a URL variable to a form action? I've got it working on a user details form, but when I'm trying to do it with a user file upload it won't work. As you will see below, I have a form and a save action for saving user details.…
Dallby
  • 578
  • 3
  • 18
7
votes
2 answers

Remove 'Duplicate this page and subpages' functionality in Silverstripe

In Silverstripe if you right click on a page in Sitetree you have the ability to duplicate either a single page or a page and all its children. We have found that users occasionally duplicate pages with large numbers of children and would like to…
jamckp
  • 207
  • 2
  • 11
7
votes
2 answers

Silverstripe 3.1.2 is modifying anchor links

I tried to build tabs with jquery. But i recognized that my links Tab 1 are converted to Tab 1 Because of the Slash at the beginning the tabs doesn't work. Why is Silverstripe modifiying my anchor links…
invictus
  • 825
  • 1
  • 9
  • 32
6
votes
1 answer

Silverstripe table_name not set for class

I'm just learning SilverStripe and I'm having a problem with the lessons on the silverstripe website actually. I have this class: namespace SilverStripe\Lessons; use Page; class ArticlePage extends Page { private static $can_be_root =…
Bucephalus
  • 201
  • 2
  • 6
6
votes
1 answer

SilverStripe sort by has_one relation field "title"

I have two objects Schedule and LocationPage. Object Schedule has a $has_one relation to LocationPage: class Schedule extends DataObject { private static $db = array( 'Date' => 'Date', ); private static $has_one = array( …
Matiss
  • 4,227
  • 2
  • 24
  • 26
6
votes
2 answers

Show silverstripe ModelAdmin by default

I want to have a ModelAdmin interface show up as the default rather than Pages - is there a way to do this?
galilee
  • 407
  • 3
  • 11
6
votes
2 answers

SilverStripe random order for ArrayList()

I know that we can randomly sort a DataList with the following: $example = Example::get()->sort('RAND()'); But when I try to randomly sort an ArrayList it doesn't work. I can sort an ArrayList by ID DESC, but not with RAND(). Is there a way to make…
StefGuev
  • 629
  • 4
  • 14
6
votes
1 answer

Get SiteConfig variables inside _config.php

In SilverStripe 3.4.1 I want to control _config.php file values through the Admin settings. I want to set some variables in Admin > Settings > MyTab and then access these variables in _config.php. Is there a way to access SiteConfig variables in the…
lohe
  • 111
  • 10
6
votes
1 answer

SilverStripe 3.4: How to add default records to db from model

Unable to locate in the SilverStripe Documentation how to have a DataObject Model inject a collection of default records on /dev/build Anybody able to point me in the right direction This is what I currently have, and obviously I would like to…
zanderwar
  • 2,336
  • 1
  • 17
  • 36
6
votes
1 answer

Remove DataObject default sort

I have a DataObject with a default sort: class Author extends DataObject { private static $db = array('Name' => 'Varchar'); private static $default_sort = 'Name ASC'; } I want to Author::get() the data but with no sort. so…
Barry
  • 3,109
  • 7
  • 20
  • 40
6
votes
1 answer

What would be the simplest way to automatically have the URL segment updated?

This question is about the URL Update feature when changing the value of a Page Title field. The behaviour is coded into CMSMain.EditForm.js. I'm stripping down and customising the CMS to be usable by an absolute basic computer user or the…
Semicolon
  • 1,822
  • 12
  • 18
6
votes
2 answers

How to dynamically show/hide field in SilverStripe ModelAdmin

I have a Dataobject in ModelAdmin with the following fields: class NavGroup extends DataObject { private static $db = array( 'GroupType' => 'Enum("Standard,NotStandard","Standard")', 'NumberOfBlocks' => 'Int' ); public…
BaronGrivet
  • 4,043
  • 5
  • 32
  • 49
6
votes
1 answer

Including related model data in Page API request

I've got a relatively simple setup running using SilverStripe 3.2.1 with the restfulserver addon and using a variety of widgets which are associated to a Page using the elemental addon. When I make a GET request via the API to retrieve some of Page…
scrowler
  • 23,403
  • 9
  • 52
  • 87
6
votes
1 answer

Silverstripe 3.2: How to add and update Dataobjects in a frontend form dynamically?

Example: I have Members (who can login and update their data) who have one or many qualifications. So I have a DataObject 'Members' and a DataObject 'Qualification' with a has_one/has_many relationship. Something like this: class Qualification…
iraira
  • 315
  • 2
  • 13