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

SilverStripe SMTP authentication instead of PHP mail() function

My hosting provider (webhosting.uk.com) for security reason has disabled the PHP mail() function requiring to update our code using a SMTP authentication. I have no idea how to change the code, I suppose it's in the sapphire folder? At the moment…
Mauro74
  • 4,686
  • 15
  • 58
  • 80
3
votes
2 answers

Error: RecaptchaField::validate(): Recaptcha-service error: 'invalid-request-cookie'

I am getting the following error message after setting up the ReCaptcha spam verification. The ReCaptcha works correctly I am just concerned about the errors. Using Silverstripe version 2.4.5 Modules: - spamprotection - recaptcha Error:…
John Magnolia
  • 16,769
  • 36
  • 159
  • 270
3
votes
1 answer

Remove CMS(/admin) from SilverStripe system - Silverstripe-4.1.2

I want to remove the CMS of my silverstripe web system and host it separately in a different server. What is the best way to do this?
3
votes
1 answer

SilverStripe: Adding the component to GridField grouping them in a div (toolbar)

I am working on a SilverStripe project. In my project, I am adding components to the GridField dynamically. Actually, I am trying to replace the existing components. Since there is no replace method, I have to remove the existing components and add…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
3
votes
1 answer

Unable to customize filter/ search form of ModelAdmin in SilverStripe 4.4.4

I am working on a SilverStripe project. Basically, I updated my project to SilverStripe version 4.4.4. After the upgrade, I found out that the search/ filter forms of the ModelAdmin were changed as in the screenshot below. What I am trying to do…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
3
votes
5 answers

SilverStripe 3.7: How to render template syntax or PHP output with out spaces?

How can I remove spaces output in my template? For example I have a $Brand some of these output as two words as the are in my php variables as TommyHilfiger. Output becomes "Tommy Hilfiger". This is great for front end display but how can I render…
pinkp
  • 445
  • 2
  • 12
  • 30
3
votes
1 answer

SilverStripe ModelAdmin number of records per page for pagination is not working

I am working on a SilverStripe project. In my project, I am building a model admin class to display the list of records within the CMS. I am trying to limit the number of records rendered per page. So I put $page_length field in my model admin class…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
3
votes
0 answers

Silverstripe 4 HTMLField (TinyMCE) is stripping inline style attributes on Save/Publish

I am trying to add a style attribute to an img tag in HTMLText markup view. But every time I save or publish, the attribute is stripped. I found this documentation ("Setting options" - about half way down). So tried that in my /app/_config.php file…
Aaryn
  • 1,601
  • 2
  • 18
  • 31
3
votes
1 answer

SilverStripe 4.1 - SS_DEFAULT_ADMIN_USERNAME and PASSWORD not respected

I have a SilverStripe 4.1 site (upgraded from 3.4) running on an Ubuntu Vagrant VM. I have the following .env file: # Default Admin SS_DEFAULT_ADMIN_USERNAME="admin" SS_DEFAULT_ADMIN_PASSWORD="password" # DB…
Aaryn
  • 1,601
  • 2
  • 18
  • 31
3
votes
1 answer

Is it possible to detect if a HTTPRequest is available?

Silverstripe Version: 4.2 I have a custom AssetAdapter that makes some changes to the filesystem based on the current request. I am using injector to get the request: $request = Injector::inst()->get(HTTPRequest::class); For the most part this…
PsychoMo
  • 699
  • 5
  • 17
3
votes
2 answers

SilverStripe create / insert bulk records

I am developing a website using SilverStripe. In my project, I am saving collections of DataObjects into the database. I am looping through the collection and saving each object in the database as below. foreach ($collection as $item) { $dbItem…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
3
votes
0 answers

SilverStripe 4 - large asset downloads exhausts memory_limit in HTTPStreamResponse.php

I have a client who has some large (1GB+) private assets in SilverStripe 4. It seems these files are stored in memory while they are streamed/downloaded via HTTPStreamResponse.php. This causes Allowed memory size exhausted errors unless I up the php…
LiveSource
  • 6,230
  • 4
  • 21
  • 20
3
votes
1 answer

Silverstripe 3: Add logo image into custom email template

I have a custom email template which I am using as the validation email when a user signs up to my silverstripe site but it won't display images. I want to add my logo at the end of the email but it will not render any image, will only load alt…
subs
  • 179
  • 1
  • 11
3
votes
1 answer

SilverStripe ORM where clause on relations and its count

I am working on a SilverStripe project. Now I am querying the data. What I am trying to do is getting all the records running where clause on the count of its relations. The below query will get all the NewsPage records. NewsPage has many blogs. So,…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
3
votes
1 answer

Silverstripe 3: Can I set a custom error page in silverstripe for certain page types?

I'm wondering if it is possible to set a custom 404 page on silverstripe specific to a certain page type, while all other 404 errors use the default one. I have a particular page type "Events" which has event pages unpublished after their specific…
subs
  • 179
  • 1
  • 11