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

Reorder/Move Silverstripe 3 CMS tabs on inherited objects

Searched high and low for the answer to this, but it seems noone else is having it or really worries about it. Here's the issue: Class A has a getCMSFields() method that adds a tab called ‘Root.SEO’ with some fields in it. Class B inherits from…
Aaryn
  • 1,601
  • 2
  • 18
  • 31
4
votes
1 answer

How to implement the new invisible reCAPTCHA on form?

I am trying to get the new "invisible" version of the google reCAPTCHA working on my form. I am using the https://github.com/UndefinedOffset/silverstripe-nocaptcha According to the docs, you should just be able to do change this in the config.yml…
ifusion
  • 2,163
  • 6
  • 24
  • 44
4
votes
1 answer

SilverStripe / Entwine hooking action to save-button

I'm trying to set an entwine hook to the save button inside a GridField edit form so that right before saving, a JavaScript function is executed. I've tried the code below without success $('button[type="submit"]').entwine({ onclick:…
Semicolon
  • 1,904
  • 14
  • 26
4
votes
1 answer

SilverStripe sort page list by custom order

Is there a way to sort the list of pages in the create page menu by a custom order (instead of alphabetically ie). I'm looking for a solution similar to the way ModelAdmin menu items are ordered: private static $menu_priority = 2;
Semicolon
  • 1,904
  • 14
  • 26
4
votes
1 answer

Dynamic sort options for SilverShop Module

I have been breaking my head on how to do a dynamic sort option, which will show/hide the sort option, depending on whether the category has the "Manufacturer" that the sorter is looking for... private static $sort_options = array( …
Skullies
  • 41
  • 2
4
votes
1 answer

Silverstripe: ConfirmedPasswordField not saving new password

I am trying to allow users to update their password on the front end. All the other fields update, except for this one. I'm on Silverstripe Version 3.4.0. This probably isn't the best way to handle this: // Edit & Save your details public function…
Dallby
  • 596
  • 4
  • 19
4
votes
1 answer

Show filter-form in Silverstripe's ModelAdmin by default

I added a ModelAdmin to my silverstripe site. This includes a filter form, which slides down when the user clicks the loupe icon in the frontend. How can I make the form visible by default (without user interaction)? Up to now I tried to call the…
hendra
  • 2,531
  • 5
  • 22
  • 34
4
votes
1 answer

How to automatically remove empty [sitetree_link,id=] tags in Silverstripe?

I have come across a few large Silverstripe websites with broken internal site link tags in the $Content: [sitetree_link,id=] For the link tag to work properly it needs an ID: [sitetree_link,id=123] Without a numerical ID the link tag is simply…
BaronGrivet
  • 4,364
  • 5
  • 37
  • 52
4
votes
1 answer

SilverStripe $summary_field interupts label translation

I'm using public function fieldLabels() in my DataObject to translate all field labels (as well as the labels for $summary_fields). This works fine for all fields, except one that has a value returned from a function (rather than value extracted…
Semicolon
  • 1,904
  • 14
  • 26
4
votes
2 answers

SilverStripe dynamic ModelAdmin url and title not working

I have created a custom ModelAdmin like this: class CompanyAdmin extends ModelAdmin { // private static $menu_title = 'Companies'; // private static $url_segment = 'companies'; private static $managed_models = 'Company'; private…
WatsMyName
  • 4,240
  • 5
  • 42
  • 73
4
votes
1 answer

Many Many Extra Field not saving

I am running SilverStripe 3.4 I cannot find any documentation on programatically saving many many relationships extra fields. The following code simply will not work: foreach ($notifications as $notification) { $status = $notification …
Isaac
  • 11,409
  • 5
  • 33
  • 45
4
votes
1 answer

SilverStripe remove CSV Export button

I'm trying to remove the Export to CSV button in the top of a GridField in ModelAdmin. I can't seem to find the class that creates the button (GridFieldExportButton right?). I'm guessing there is a function that populates the GridField with buttons…
Semicolon
  • 1,904
  • 14
  • 26
4
votes
3 answers

Silverstripe better form looking on templates

I have a designed template on photoshop from a client. My interrogation... When I saw the template is: Can I put 2 fields side-by-side? I want to have f_firstname and f_lastname on one row... Is there anyway to inject tags or piece of code with…
StefGuev
  • 639
  • 4
  • 16
4
votes
1 answer

How to Pass URL Variables to a Form in Silverstripe

I am working on a custom email form that should be able to handle the following URLs: http://www.example.com/email Defaults to general email address. http://www.example.com/email/Office/1 Gets email contact details from Office model, ID…
BaronGrivet
  • 4,364
  • 5
  • 37
  • 52
4
votes
1 answer

$many_many relation in summary fields

I have two classes with a $many_many and $belongs_many_many relation between them. I tried to define $summary_fields in the class that contains the $many_many to display the relation between the classes but that column ('Column2.Column2') displays…
Learner One
  • 623
  • 5
  • 13