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

SilverStripe 3 - Options for <% loop %>

Is there a list of all the options I can add to a loop? I don't know if options is the right name for it. I mean these <% loop Dataobject.Reverse %> <% loop Dataobject.Limit() %> Can someone tell me everything that's possible here? And what the…
invictus
  • 825
  • 1
  • 9
  • 33
4
votes
1 answer

Routing to actions from no url (ie the home page)

I'm currently working on a framework only project and I have my routes set up like this: --- Name: app After: 'framework/routes' --- Director: rules: '$Action/$ID/$OtherID': 'MainController' and my controller like this:
danbroooks
  • 2,712
  • 5
  • 21
  • 43
4
votes
1 answer

SilverStripe 3.1 remove SortableGridField pagnation and show all DataObejcts

I have been trying to find information on how to remove pagination on GridFields in SS3 and display all (or at least more) DataObjects in a CMS GridField view. I am specifically using SortableGridFields to allow sorting. The interface defaults to…
Atari
  • 143
  • 2
  • 10
4
votes
5 answers

Execute a Function in Silverstripe via Cronjob

Hi I want to execute a function via cronjob to start an csv import. At the moment the import is triggered by accessing a controller in the browser tld.de/Update The controller has this code http://pastie.org/8351266 How can I execute the function…
invictus
  • 825
  • 1
  • 9
  • 33
4
votes
1 answer

Querying a model by a many_many relationship with Silverstripe DataModel

If i have a Model DebatePage which has the following many many relationship: private static $many_many = array( 'Panelists' => 'Panelist' ); and the panelist has a text field called "Name" How can i query for all the debates that have a…
Will
  • 4,498
  • 2
  • 38
  • 65
4
votes
2 answers

Site search for a silverstripe site without installing Sphinx

Silverstripe has a full text search facility built in. Its great, but it does not search related models, so a site search for a string that matches a records tags or article->author->name type relations will not be found. The more advanced search…
Will
  • 4,498
  • 2
  • 38
  • 65
4
votes
2 answers

Silverstripe: CMS Pages as JSON?

I am working on a Silverstripe project and I would like to have a simple way to present the content of a CMS generated Page (or subtype of Page) as JSON. Ideally, I would like to append "/json" at the end of the route, or send a parameter via post…
argenkiwi
  • 2,134
  • 1
  • 23
  • 26
4
votes
1 answer

SilverStripe 3: ModelAdmin with DataObject with $has_many to DataObject gives error

In SilverStripe 3 I have two related DataObjects, Order and OrderItem. Order has many OrderItems. OrderItem has one Order. I am managing Order with ModelAdmin. I can create a new OrderItem but when it tries to load I get the following…
4
votes
3 answers

silverstripe dataobject searchable

I´m trying to have certain DataObjects (News) displayed in the default SearchResult Page. So the result should display normal Pages and News. Is there an easy way to accomplish that in Silverstripe 3? Or is it recommended to code it completely…
spierala
  • 2,349
  • 3
  • 25
  • 50
4
votes
1 answer

Silverstripe: DataList Filter equivalent of 'Value > x OR Value = y'

I understand that I can specify multiple values for my filter in a way such as: xxx::get()->filter('FirstName', array('Sam', 'Sig')); Which gives me the equivalent of: ... WHERE FirstName = 'Sam' OR FirstName = 'Sig' However, there doesn't appear…
Fraser
  • 14,036
  • 22
  • 73
  • 118
4
votes
1 answer

Silverstripe TimeField - Hide Seconds

Is there a way to hide seconds from the TimeField in the silverstripe CMS? static $db = array ( 'StartTime' => 'Time', 'EndTime' => 'Time', ); public function getCMSFields() { $f = new FieldList( …
Fraser
  • 14,036
  • 22
  • 73
  • 118
3
votes
1 answer

How to install and use modules in SilverStripe

Using SilverStripe I want to use multi-select drop down on my page. How can I install and use modules to do this?
user1122910
  • 117
  • 3
  • 14
3
votes
2 answers

SilverStripe Templates: Displaying DataObject::Count without repeating

I have a Page, this Page has many, one or no comments. At one point i'd like to display only the number of comments without iterating through all of them. However due to translation it needs to be distinguished between two Plural Versions of the…
worenga
  • 5,776
  • 2
  • 28
  • 50
3
votes
4 answers

Silverstripe clear/remove TreeDropdownField

I am using the TreeDropdownField for the SiteTree dropdown, although this is an optional field and would like to be able to clear/remove this value. How would I do this with Silverstripe?
John Magnolia
  • 16,769
  • 36
  • 159
  • 270
3
votes
2 answers

Silverstripe How to use Calendar on DateFields with custom form template?

I have created a custom form class and template for my form by following the instructions here. However I am having trouble with adding DateFields with calendars. Usually I just do something like this: $dateField = new DateField ('DateRequired',…
startupsmith
  • 5,554
  • 10
  • 50
  • 71