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

Silverstripe v4 MVC Directories?

I'm Wondering Why There is no "Models / Views / Controllers" Directories Inside SS4 Main Directory? It's Seems Like Everything Should Go Inside "mysite/code" .. How To Accomplish MVC Style?
Mr.Online
  • 143
  • 1
  • 4
0
votes
2 answers

How to extend Silverstripe Blog module?

I'm looking a using Siverstripe's blog module for a project. The blog has most of the features I want, but as the site is mostly book focused I's like to add some fields to the blogpost table to hold book data (title, author, rating, etc. It seems…
Michael Holland
  • 471
  • 3
  • 10
0
votes
1 answer

How to save a GD created image to an object in Silverstripe 4

I am working on a project in Silverstripe 4. On page save/ publish I want to create a "MetaImage" which is made up of random tiles images associated with the page. The MetaImage is created by GD - I'm then trying to save it into the ORM. Here's some…
BaronGrivet
  • 4,364
  • 5
  • 37
  • 52
0
votes
2 answers

Can I have 2 gridfield components in an admin page in Silverstripe 4

Can I have 2 gridfield components in an admin page named differently from the same dataobject - eg class MainLandingPage_au extends Page { private static $has_many = [ 'ImagesWithHtml' => ImageWithHtml::class, …
user3257693
  • 486
  • 3
  • 14
0
votes
1 answer

Calling the default exceptionHandler equivalent in SilverStripe 4

I've searched through the documentation and the API for SilverStripe 4 but I'm having trouble using the appropriate class to call the default exception handler. How it worked before SilverStripe 4 within my Page.php controller's init() …
0
votes
1 answer

Silverstripe drop down field does not show saved value as selected

I have created a drop down field in the CMS like so: class ProductPage extends Page { //..... private static $has_one = [ 'TeaserImage'=>Image::Class, 'LinkedProduct'=>'Product' ]; public function getCMSFields(){ …
Daniel H.
  • 422
  • 2
  • 15
0
votes
1 answer

How actions works in controllers in silverstripe 4?

could someone please explain me how actions works in silverstripe 4? I have controller like this:
0
votes
1 answer

How to sort images as part of a many_many in silverstripe?

I have created a $many_many array for $slideImages on my home page. After much reading and trying I am still unable to tell the CMS the order I want the images to appear in the template. By default they are sorted by upload date I believe. I can…
Daniel H.
  • 422
  • 2
  • 15
0
votes
1 answer

I cannot install silverstripe 4

I'm trying to install on my VPS, LAMP technology, SS 4.01 but I have an error. I already have 3 websites made on 3.x SS that are working. Installing SilverStripe... I am now running through the installation steps (this should take about 30…
0
votes
1 answer

Setting up root controller

I copied routes from Silverstripe 4 alpha 6 to 4.0 project, and root controller stopped working. All I've got is that "Welcome to SilverStripe" page, no matter what I type in routes. I use framework only, downloaded zip file. If I try to add route…
Nemanja K.
  • 131
  • 6
0
votes
1 answer

Silverstripe 4 themedir not working while take image from theme folder

Function $ThemeDir is not working in silverstripe template while using with img html tag for example
Ankit
  • 11
  • 2
0
votes
1 answer

SilverStripe 4.0 - status 403 when loading tinymce

I've just installed Silver Stripe 4.0 and everything seems ok beside...tinymce editor. When I try to edit page there's a problem with loading tinymce.js. I get 403 error. I don't know why but my htaccess in assets folder is set to 600. I tried to…
boddah
  • 11
  • 2
0
votes
1 answer

TinyMCE not loading Silverstripe 3.6.2 or 4 (beta 3)

I installed SilverStripe on my shared server and everything went fine, requirements met, etc. Right after the install, I deleted the install files and tried to edit my new site. Everything works fine in the back-end except when I want to edit a…
0
votes
1 answer

Unable to upload files in SilverStripe 4

I've created a simple extension to SiteConfig to add a logo uploadfield to the settings section. However, the server returns an error upon uploading a file. SiteConfig.php namespace mymodule\siteconfig; use SilverStripe\ORM\DataExtension; use…
Semicolon
  • 1,904
  • 14
  • 26
0
votes
1 answer

Map view leaflet on SilverStripe

I work on SilverStripe 4 using leaflet and my cards present these gray lines: I tried a lot of stuff on CSS and JS but no change. Can someone advise how to supress these gray lines?
1 2 3
23
24