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
1 answer

SilverStripe Fluent module doesn't seem to work with controller out of the box

I am having a problem getting SilverStripe Fluent module to work with content/page controllers. Whenever a locale url segment is provided, the controller returns 404. For example, http://site.local/search works but http://site.local/en/search…
Phalkunz
  • 23
  • 2
2
votes
1 answer

SilverStripe querying all the DataObject table in one go

I am developing a website using the SilverStripe CMS. I am having a little problem with querying DataObjects. I am trying to get all the DataObjects in one go as follows to optimize performance: DataObject::get(); When call this I get the following…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
2
votes
1 answer

Silverstripe blog render to template based on conditional

I've got a silverstripe blog which I'm using for a couple different areas in the site and want to use a different template for each (rather than trying to use lots of conditions in the template)..I can't get the template to render - heres the bare…
galilee
  • 449
  • 3
  • 12
2
votes
1 answer

How do I edit many_many_extraFields on SilverStripe 4?

I have an extra Data field added to a many to many relation, and I have no Idea how to edit it. Feature private static $belongs_many_many = [ 'Model' => Model::class ]; Model private static $many_many = [ 'Features' =>…
Zubair
  • 715
  • 1
  • 9
  • 15
2
votes
1 answer

SilverStripe dev task is not found or registered in the list

I am developing a SilverStripe project. I am trying to create a task to run through accessing the dev/tasks URL but the task I have created is not showing up in the tasks list. In the code folder I have created a file SayHiTask with the following…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
2
votes
3 answers

How to add muitple same ID with Javascript on click event for multiple buttons with same class

I'm new with JQuery. I'm using the Silverstripe PHP. I've managed to get the on click event with multiple divs with the same classes but if I want have different image in the second button with same class and from the same ID. What is the solution…
2
votes
1 answer

Silverstripe- Loop all items from many_many relationship

I am trying to output a set of icons (coming from a set of GuidePages), where I always want to show the 5 icons, but need to be able to select which ones apply to this particular page. In the pages where I want to display them I am doing: private…
galilee
  • 449
  • 3
  • 12
2
votes
2 answers

How to insert (inject?) an existing React app (just a UI without a backend) into a SilverStripe page layout?

My question is: I have been reading the SilverStripe 4 documentation in order to find a way to insert an existing React app (just a UI of nested React components without a backend) into a SilverStripe page layout. Is this possible and how do you…
Bevan Shaw
  • 89
  • 8
2
votes
1 answer

Call to undefined method Silverstripe Gridfield

I need to have additional fields on a extended file but there is an error occur. This will add a gallery tab with GridField which will allow the user to add images. Not sure what is missing since it is working on other projects. [Emergency] Uncaught…
2
votes
1 answer

Update the SiteTree_Localised table from a script

I have upgraded a Silverstripe site from 3.x to 4.x. 3.x was using Multilingual for translation, now in 4.x I have replaced Multilingual with Silverstripe Fluent module but I am wondering how I can import data ( translated fields ) into the new…
2
votes
1 answer

How do you Filter CSV exports on silverstripe CMS?

I am trying to export a CSV of my data which is currently displayed in a section of my Silverstripe CMS as filtered by a particular date range . It works fine at the moment when exporting the entire contents but I would like to be able to filter the…
Tim Tolley
  • 193
  • 2
  • 13
2
votes
1 answer

How can I achieve repository pattern with caching in silverstripe 4?

I have a 3rd party API which I use to fetch the users and their details from. How can I achieve repository pattern with caching in silverstripe 4? I have an interface called UserRepositoryInterface interface UserRepositoryInterface { public…
2
votes
0 answers

Uploading Files through Silverstripe 4 RestulServer Module

My app uses silverstripe to manage a large number of files for downloading/accessing them and some relational metadata. One requirement is that the files be accessible externally via an API. I have set up the Restfulserver module…
Samih
  • 1,078
  • 9
  • 15
2
votes
1 answer

How to configure silverstripe 4 to use a BLOB field instead of the file system

In the Silverstripe 4 docs the possiblity to use a BLOB or s3 storage is mentioned (https://www.silverstripe.org/learn/lessons/v4/working-with-files-and-images-1) But I cannot find any documention how to handle a BLOB storage. Is this only about…
nblum
  • 155
  • 1
  • 1
  • 6
2
votes
0 answers

Retrieve file by ID Silverstripe

I am currently using SilverStripe 4.1 and I am trying to retrieve an image from the database and it always returns null. When I go to the database I see the file reference in the File table. Here is the File table content for the file I was trying…
alysonsm
  • 1,465
  • 1
  • 12
  • 16