Questions tagged [silverstripe-4]

Silverstripe 4 is the latest major version of the Silverstripe open source CMS and framework. Version 4.0.0 was released on 8th Nov 2017.

For a high level overview of changes to Silverstripe 4 from Silverstripe 3 and an upgrade guide, see the 4.0.0 changelog.

350 questions
2
votes
0 answers

SilverStripe 4 / NGINX redirects to 404 when trying to edit draft page

I've been given an NGNIX server that previously only had Ubuntu 18.04 and NGNIX installed and was used to render a static html site. I've installed PHP, MySqli ect and configured the sites-available file to get the website up and running. After…
2
votes
0 answers

SilverStripe SAML infinite loading after SSO login

I have tried SilverStripe SAML module with azure ad single sign on, After enabled SAMLMiddleware Im redirecting infinite loop. This is what saml.yml middleware part looks like SilverStripe\Security\Security: properties: authenticators: …
2
votes
1 answer

Composer vendor expose copy not picking up the correct name for my silverstrip module

I am creating a module for silverstripe and I want to expose my assets so I can use images, css and js. composer of silverstripe module { "name": "poptin/silverstripe", "description": "A skeleton for SilverStripe modules.", "type":…
Rohan
  • 13,308
  • 21
  • 81
  • 154
2
votes
0 answers

Gatsby develop failed: Fetching SilverStripe data failed Cannot read property 'data' of undefined after setting up silverstripe-gatsby

I am new to gatsby and was trying to test out Gatsby with Silverstripe. If it goes well, it may be great solution to one of our work project. I have a test silverstripe site working along which I install from the instruction available here:…
2
votes
0 answers

SilverStripe functional testing for CMS route (settings) always returning 404 for POST request

I am working on a SilverStripe project. I am writing functional tests for my application. I am writing a function test for a path within the CMS. In my case the path is /admin/settings/SecondaryMenuPages. It is the path within the CMS and so the…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
2
votes
1 answer

How to create a public folder inside themes folder in SilverStripe

I am working on a legacy SilverStripe project. I am trying to create a public folder with the name "files" inside the themes folder. All the files within that folder will be accessible through the browser. I created a folder and created a file…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
2
votes
1 answer

Is there a way to add a wrapper div around a silverstripe form field

Is there a way to add a wrapper around a labelfield or any other kind of form field in silverstripe forms? It would be easier to style forms this way. FieldList::create( LabelField::create('label','Label'), EmailField::create('Email',''), …
2
votes
0 answers

SilverStripe ModelAdmin searchableFields function to map the fields with main text search box at the top

I am working on a SilverStripe project. In my project, I am creating a ModelAdmin class to display the custom DataObject. I am also customizing the search/ filter fields by overriding the searchableFields function of the DataObject. This is my…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
2
votes
0 answers

PHP: display data retrieved from database USING DB::query (Silverstripe CMS)

I have a problem using Silverstripe CMS. I have basic SQL query of which results I would like to display in our front-end.i just want to use DB::query & get the result in our front- end. Can anyone help or please give me a hint? public function…
saurabh
  • 21
  • 3
2
votes
2 answers

Customising filter for ModelAdmin to support date range in SilverStripe

I am developing a SilverStripe project. I am now struggling with customizing the filter/ search for the ModelAdmin entities, https://silverstripe.org/learn/lessons/v4/introduction-to-modeladmin-1. I am trying to add a date range filter as…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
2
votes
0 answers

Silverstripe 4 - How do you enable FullTextSearchable and $SearchForm?

Upgrading site from 3 to 4. Existing code makes use of FullTextSearchable as per this guide that exists for 3, but not for 4. Google only results in unanswered questions of the same nature. Except for this one, which doesn't help. But I do find this…
Aaryn
  • 1,601
  • 2
  • 18
  • 31
2
votes
1 answer

How to set & lock SiteTree in Silverstripe 4?

We're working on a project where Silverstripe acts as headless CMS with a single API data point. The content is all from non-SiteTree dataobjects & the API data point is the only SiteTree record we need. What is the best way of making sure the API…
BaronGrivet
  • 4,364
  • 5
  • 37
  • 52
2
votes
0 answers

Running multiple versions of Silverstripe objects

We are working on a Silverstripe project which requires multiple versions of the same dataobjects. The same data structure & (roughly) the same data content will be used for A-B testing so the versions would be something like this: Stage /…
BaronGrivet
  • 4,364
  • 5
  • 37
  • 52
2
votes
0 answers

Image dimensions when added via editor

In SS4.4 - adding an image via the editor requires a width and height be set. If they're not it results in this error: "Uncaught InvalidArgumentException: Width must be a numeric value". Setting these dimension values breaks responsive images…
polycode
  • 135
  • 7
2
votes
2 answers

How to display formatted HTML in GridField DataColumn in Silverstripe 4

We have an object which has two fields - one is Text, the other is HTMLText: private static $db = [ 'Question' => 'Varchar(255)', 'Answer' => 'HTMLText' ]; We are referencing this object in a Gridfield using DataColumns: $questionsGrid =…
BaronGrivet
  • 4,364
  • 5
  • 37
  • 52
1 2
3
23 24