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

ModelAdmin vs GridField: When to use one over the other?

I find ModelAdmin more powerful than GridField in SilverStripe. My question is when do you use GridField instead of ModelAdmin?
Learner One
  • 623
  • 5
  • 13
4
votes
2 answers

SiverStripe 3: the method 'fortemplate' does not exist on 'File'

I'm creating a GridField for my page with a has_many relationship to my DataObjects but after adding data and saving the object it breaks the page in the CMS. I can't figure out why or find any answers after searching. Here is the error and my…
pinkp
  • 445
  • 2
  • 12
  • 30
4
votes
2 answers

Silverstripe 3.3: how to translate date month variable in a template?

On my page I have a date variable. I wish to translate it's shortened month name by locale (in my case Lithuanian). I've set up the translations in langed/lang/lt_LT.yml: Month: Jan: 'Sau' Feb: 'Vas' Mar: 'Kov' Apr: 'Bal' …
4
votes
0 answers

How can I embed a Google Map in Silverstripe ModelAdmin?

I'm working on a Silverstripe project which contains geographical areas as part of the ModelAdmin/CMS interface. Each area has the following information: North-east corner latitude North-east corner longitude South-west corner latitude South-west…
BaronGrivet
  • 4,364
  • 5
  • 37
  • 52
4
votes
2 answers

SilverStripe best practice regarding pagetypes

Imagine you have two pagetypes: Page and HomePage. Obviously Page will serve as the basic page type for all pages and HomePage only for the homepage. For every basic page you want a custom header photo, and for homepage none. What would be the ideal…
Semicolon
  • 1,904
  • 14
  • 26
4
votes
1 answer

Scaffold ListBox multiple select in ModelAdmin Filter for DataObject with Enum

Currently the automatic scaffolding for search fields where there is an enum produces a drop down only allowing one selection to be made. I'm interested in using existing filters to change this to allow multiple selections. Given the following…
Barry
  • 3,303
  • 7
  • 23
  • 42
4
votes
1 answer

SilverStripe displaying redundant tabs

Whenever I set up a $has_many or $many_many relationship SilverStripe will create a corresponding tab in the top tab strip. I am creating a GridField, assigning it to a variable and injecting it into the main tab. This works fine but the 'Tiles' tab…
nickspiel
  • 5,170
  • 6
  • 33
  • 48
4
votes
1 answer

Increasing pagination in Silverstripe admin

I'm using Silverstripe 3.1. The site will have hundreds of users and lots of files / assets. How can I increase the number of items listed to (from 15 to 50 or so per page) in the admin for both users and files. Even better if I can just set it by…
Legin76
  • 492
  • 3
  • 11
4
votes
2 answers

Time Picker does not appears in SilverStripe

mysite/code/EventManage.php Here i am creating a time picker, but date-picker pop-up is not appearing. $fields = FieldList::create( $startDateTime = DatetimeField::create('StartDateTime', 'Start'), HeaderField::create('TimeFrameHeader',…
4
votes
1 answer

SilverStripe - Set Default Sort for Summary Grid in Admin Model

I have an admin model tab (called "Appointments") for a SilverStripe that stored form submissions. Everything is working fine and the data is displaying inside the summary grid. However, I need to find a way to change the default sorting of the…
Dejsa Cocan
  • 1,539
  • 3
  • 19
  • 56
4
votes
1 answer

Silverstripe. Embedding 2 youtube videos in content area shows the same video in both

I developed a site in Silverstripe (3.1) for a client. Today, he tried to embed a second youtube video into a content area in the CMS (insert media>from the web> paste youtube URL > add URL > insert ). In the WYSIWYG in the CMS the thumbnails for…
Fraser
  • 14,036
  • 22
  • 73
  • 118
4
votes
1 answer

Silverstripe comment module is not working

i have installed silverstripe comment module but the comment form on page is not appearing also as they said in installation.md Out of the box the module adds commenting support to all pages on your site. This functionality can be turned on and off…
4
votes
1 answer

How to add a css class to an href in Silverstripe CMS editor?

How do you add a Class to an href or any other css element in the silverstripe CMS editor? I have added a custom css Class in the editor.css stylesheet. I want the link to look like this one:
ifusion
  • 2,163
  • 6
  • 24
  • 44
4
votes
1 answer

Silverstripe Backup Module somewhere?

I didn't see any backup script module for Silverstripe that export database and assets folder into compressed folders. Is anyone have a custom PHP script and execute it with cron job?
StefGuev
  • 639
  • 4
  • 16
4
votes
2 answers

How to get child pages and loop through it's data on another page type?

I have a TestimonalHolder page type that has Testimonials page type as its children which each have a Message $db field to store a testimonal. Question is how do I access that $Message field on my HomePage.ss for example so I can loop through them…
ifusion
  • 2,163
  • 6
  • 24
  • 44