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

silverstripe - adding styles to 'styles' drop down menu on editor

from the question above, I thought it would be relatively easy but i can not find any documentation on on how to add styles to the 'styles' drop down menu. can anyone push me in the right direction?
Phil Jackson
  • 10,238
  • 23
  • 96
  • 130
5
votes
2 answers

Silverstripe $many_many relationship with an attribute on the relationship

When adding a many_many relationship much like the projects to mentors relationship in the silverstripe guide: http://doc.silverstripe.org/framework/en/tutorials/5-dataobject-relationship-management I'd like to record an attribute against the…
Will
  • 4,498
  • 2
  • 38
  • 65
5
votes
2 answers

silverstripe - file permissions for assets folder

it happens often that an silverstripe installation does not have the right permission to write in the assets folder - e.g. for saving resampled images... I wonder what is the best permissions setting for the files and folders in assets/ to solve…
spierala
  • 2,349
  • 3
  • 25
  • 50
5
votes
1 answer

How to pass custom data to a template

I am new to OOP frameworks in general and Silverstripe in particular. I'm sure I'm missing something vital! I am currently trying to create a twitter feed for my main page. In my Page_controller I have: public function getTwitterFeed() { ...…
Mr_Chimp
  • 6,658
  • 5
  • 37
  • 47
4
votes
1 answer

Recursive menu of all children

I am trying to generate a nested menu of all the pages in the site tree. The docs show two levels - I won't know how many levels there are. Currently I know there is at least four levels deep at one point so I have this:
    <% loop $Menu(1) %> …
polycode
  • 135
  • 7
4
votes
1 answer

Error extracting zip file of silverstripe/upgrader via Composer

I am in the process of upgrading an instance of SilverStripe 3.6.5 to SS 4.x and I have been following the recommendations to install the SilverStripe upgrader. But running composer global require silverstripe/upgrader on my Windows development box…
AbVog
  • 1,435
  • 22
  • 35
4
votes
2 answers

How to get NGINX to execute all URL's in a folder via index.php

I have done a load of searching for an answer for this and I cannot find a suitable answer. Basically, I have a site built in SilverStripe running on NGINX. It all works pretty well, but I want any files/images uploaded via the admin (to the assets…
PsychoMo
  • 699
  • 5
  • 17
4
votes
0 answers

Copy field value text to $Content field on page save Silverstripe 3

I want to copy text from another html5editorfield to $Content a page publish. what i have is below: public function onBeforeWrite() { $searchableContent = $this->ContentBeforeSections(); $this->setField('Content',…
user9117670
  • 151
  • 1
  • 6
4
votes
0 answers

webpack dev server not reloading when changing src files

I have an issue that when i change my src js or scss nothing happens in my dev server which is running if i change my dist folder files and refresh works also when i do "build": "webpack --mode production". In my package.json I have "start":…
user9013856
  • 328
  • 2
  • 10
4
votes
1 answer

Customize Silverstripe Login Form

I have password protected my whole Silverstripe site and now I need to customize the form fields for the login screen. Where can I find where this is happening? Another problem I would have is: I want to show the custom login screen to anyone not…
roflwaffle
  • 29,590
  • 21
  • 71
  • 94
4
votes
3 answers

Is it possible to run a function on a Silverstripe template variable to format output?

I've created a data model that includes a plain textarea entry field for an office address. I would like to do the equivalent of nl2br($OfficeAddr) when printing the data in my relevant Silverstripe template. As far as I can tell, their templating…
Kelstar
  • 810
  • 6
  • 15
4
votes
0 answers

Silverstripe 4 doesn't find templates when using namespaces

Seems to be precious little info out there on how templates should be structured. I asked this question earlier but I think I can ask it better with code samples and remove my earlier attempt: mysite/_config/theme.yml SilverStripe\View\SSViewer: …
Aaryn
  • 1,601
  • 2
  • 18
  • 31
4
votes
1 answer

Silverstripe 4 - CSS and JS Requirements. How/what populates the /resources directory?

I have a SS3.x module that I have forked, pulled down from it's fork via composer, and started porting to SS4. So far so good, except when it comes to Requirements. I'm using the Requirements format found in existing code in another module, which…
Aaryn
  • 1,601
  • 2
  • 18
  • 31
4
votes
3 answers

PHP SilverStripe ORM: Duplicate key value violates unique constraint for DataObject write

I have a function on my website that saves a bunch of values quite quickly to the same DataObject type. Most of the time it's OK but occasionally I get an error ERROR: duplicate key value violates unique constraint ... Reading through the…
Rudiger
  • 6,749
  • 13
  • 51
  • 102
4
votes
2 answers

Can I dynamically change SilverStripe theme?

I have made for my site additional theme for cecutients (people with low eyesight). Can I dynamically change site theme pushing some button on the main page?
alex
  • 307
  • 1
  • 13