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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

Sliverstripe CMS populate dropdown with enum values

I need two additional fields for general settings (TimeForClosingTab, ClosingTabOnOff). I get the fields but I don't know how to populate the enum field correctly. The file is in app/src/extensions. ...
user805528's user avatar
0 votes
2 answers
70 views

Silverstripe throwing sendmail error on ForgotPassword form and member password change

I'm having an issue where trying to use the ForgotPassword form, or trying to change a users existing password in admin/Security throws the following error: Connection to "process /usr/sbin/...
galilee's user avatar
  • 459
0 votes
0 answers
16 views

Debuging Solr Search in Silverstripe

I have a silverstripe site that uses solr for search. It has developed an error: PHP Warning: Attempt to read property "ClassName" on null in /var/www/stage/public_html/vendor/firesphere/...
Will's user avatar
  • 4,542
0 votes
0 answers
15 views

Silverstripe and ProxySQL

Has any one had any success setting ProxySQL up to work with Silverstripe? I get errors like: Unknown Error] Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an ...
Thrash Cardiom's user avatar
0 votes
0 answers
103 views

Disable Apache Web Server Signature from displaying in browser

We have a website that is built on Silverstripe / PHP / Apache Tomcat. For all valid requests, the redirections for Page not found and backend not available are working fine which are configured in ....
apark's user avatar
  • 63
0 votes
1 answer
30 views

Silverstripe 4 - exclude specific group from view

Hi i'm trying to exclude some groups from view buttons in navigation. I see option in Pages->Page->Settings to show element for specific group but i want add exclude group option. Did anyone ...
Kamil Wawrzyński's user avatar
0 votes
1 answer
30 views

Silverstripe override BlogController

I'm trying to override the blog module BlogController, just to use some ajax filtering. what I've got currently: use SilverStripe\Core\Extension; use SilverStripe\Control\Controller; class ...
galilee's user avatar
  • 459
0 votes
0 answers
30 views

401 Error trying to run solrConfigureTaks after changes to MyIndex.php

I have a stage server that until yesterday had a working Solr search using silverstripe-solr-search module Then I tried to add Files to the search by adding a Search/MyIndex.php to the app code, ...
Will's user avatar
  • 4,542
0 votes
1 answer
37 views

Silverstripe 4 UploadField additional Formfield

With Silverstripe 4 how can i have an UploadField(Extension) and an additional FormField (e.g. TextField) and get the value of this TextField via POST in the function upload when uploading a file? ...
Sepp Hofer's user avatar
0 votes
1 answer
25 views

Silverstripe merge 2 pagetypes into alternating list

I'm trying to merge 2 pagetypes into a single SSList where the classes alternate, ie something like this: $news = BlogPost::get()->sort('PublishedDate'); $projects = ProjectPage::get(); result ...
galilee's user avatar
  • 459
1 vote
1 answer
35 views

Permanently delete a page in Silverstripe

Using Silverstripe 4 I've got a page (URL Segment : careers-2) which when I try to rename to "careers" it never lets me. I can't find a page with the URLSegment "careers" in the ...
Ela Buwa's user avatar
  • 1,688
0 votes
1 answer
33 views

In silverstripe Can we create Vanity URL for the member profile?

In silverstripe Can we create Vanity URL for the member profile like "mydomain.com/john-doe"? I tried to do it via the routes.yml but it is breaking the other URLs like admin and other ...
santhosh's user avatar
0 votes
1 answer
219 views

I am done installing a new project using composer create-project silverstripe/installer example, done with .env set-up but i have this on my webpage

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /Applications/MAMP/htdocs/example2/vendor/silverstripe/framework/src/Control/HTTPRequest.php on line 583 Website Error There ...
Samuel Oyintey's user avatar
0 votes
1 answer
78 views

How to combine Codrops tutorial codes into a SilverStripe project?

I love all the tutorials and code examples on the Codrops website. Codrops Website I would like to include some of them in my SilverStripe projects. SilverStripe CMS I've learnt how to install them to ...
pinkp's user avatar
  • 445
0 votes
0 answers
51 views

Silverstripe extensions not registering

I've got a simple extension which I'm planning to use in order to add extra fields. <?php use SilverStripe\Forms\FieldList; use SilverStripe\Forms\TextField; use SilverStripe\ORM\DataExtension; ...
Ela Buwa's user avatar
  • 1,688
0 votes
1 answer
63 views

Silverstripe GridField set search result format

I've got a class which has the below structure. class TheTeam extends BaseElement { private static $table_name = 'theTeam'; private static $inline_editable = false; private static $belongs_many_many ...
Ela Buwa's user avatar
  • 1,688
0 votes
0 answers
45 views

Silverstripe get site attributes from SiteTree

in my site I have the pages "Product" and "Reference". I'm trying to link the references to their product and display the product icon on the reference page. I'm using SiteTree ...
Mauritz Funke's user avatar
0 votes
1 answer
73 views

Silverstripe 4 bulk image upload and create Dataobject from each image

This is a question about creating DataObjects from bulk-Uploaded images. Normally i use Colymba\BulkUpload\BulkUploader in this way: (all pseudo code) e.g.: And a normal setup with (Modeladmin) ...
Sepp Hofer's user avatar
1 vote
1 answer
147 views

SilverStripe 4 - Remove slash at the end of the URL

I've been trying for some time to delete the slash at the end of the URL link, but it doesn't work. I searched a lot of examples but none of them solve my problem. I'm using Silverstripe 4 and ...
Ivan's user avatar
  • 5,141
0 votes
1 answer
24 views

Customizable form doesn't show

I've made customizable form but it doesn't show on the page. It is my first time using silverstripe and I couldn't understand from the documentation which is even the entry file. Don't really know ...
Toma Tomov's user avatar
  • 1,508
0 votes
1 answer
146 views

Check for Null when looping through ArrayList in Template

I have a template that is looping through a GroupedList of data from an API (that I don't control) in a template. This has worked fine for a while, but now some of the elements in the loop are Null, ...
Will's user avatar
  • 4,542
0 votes
2 answers
69 views

How can I pass content to a parent template from a child template in Silverstripe

I want to pass some content from a elemental block up to a parent template (to change the page header) - Is this possible? I don't have any example code for what I'm trying because I don't have any ...
Will's user avatar
  • 4,542
0 votes
0 answers
20 views

Update items within php objects [duplicate]

I want to update the Content string within the object. With the first foreach I get this: object(Page)#1716 (20) { ["_cache_statusFlags":protected]=> NULL ["...
user805528's user avatar
1 vote
0 answers
50 views

Silverstripe Gridfield Export CSV misses first column

I am setting custom export columns in a ModelAdmin for the 'Export to CSV' - the resulting csv file always has blank first column values, no matter what I set for the column - the column name is there,...
galilee's user avatar
  • 459
0 votes
0 answers
51 views

Silverstripe 4.7 let member view, edit, delete only own data objects

In Silverstripe (4.7) how can i manage the member only to view, edit and delete its own created Dataobjects? I thought i could use canView() but no success. Ive tried with PermissionProvider and ...
Sepp Hofer's user avatar
0 votes
1 answer
88 views

SilverStripe GridField default values

I want to have a GridField for creating a list of theme colors. I also want some colors to always be in that list (maybe not even being removable) e.g. black and white. How can I add default Objects ...
TimSchulzRC's user avatar
0 votes
1 answer
148 views

Silverstripe 4 PaginatedList get Page-number - Link (Backlink)

In Silverstripe 4 I have a DataObject 'PublicationObject', a 'PublicationPage' and a 'PublicationPageController' PublicationObjects are displayed on PublicationPage through looping a PaginatedList. ...
Sepp Hofer's user avatar
0 votes
0 answers
58 views

Cannot get SilverStripe site working on Amazon Linux 2 Server?

I am trying to get this website online, mainly for my own intellectual curiosity (CS student) but also for functional use. The site is built on SilverStripe 4 and developed on a LAMP stack environment....
Toby Meyrick's user avatar
0 votes
1 answer
161 views

How Can I filter by a function in silverstripe

I want to get a list of Files that are missing for a SilverStripe report. The filesize is not directly stored in the database, instead I have to call method getSize() If I try to iterate through the ...
Will's user avatar
  • 4,542
0 votes
1 answer
88 views

Error Level Analysis with Imagick PHP - result without color

yesterday I posted about a problem with recreating an Error Level Analysis in PHP with Imagmagick. In this question I found a solution with the command-line interaction and tried to translate it into ...
AnBau's user avatar
  • 1
0 votes
1 answer
288 views

How to change order of items in SilverStripe GridField

I use a GridField in SilverStripe to create HTML section items that are rendered on a page. This works so far but it always displays the sections in the order that I added them to the CMS or rather by ...
TimSchulzRC's user avatar
1 vote
1 answer
40 views

How can I change the configuration for Failed Login Attempts for Member Authentication

If a member gets their login wrong a couple of times, they get logged out for 15mins. Is this configurable? To say 6 times locked for 30?
Will's user avatar
  • 4,542
0 votes
1 answer
167 views

Access to MariaDB container denied when trying to send a request to running server

Testing a new installation of SilverStripe on Linux (Ubuntu 20.04). My DB Container is set up like this: ... services: db: image: mariadb:10 env_file: - .env environment: ...
Faith Baghan's user avatar
1 vote
1 answer
243 views

SilverStripe: Getting "you need to change the ClassName before you can write it" after update files to use namespaces

I'm getting this exception when trying to ->write() a DataObject called 'ModelSheet', it says the name should be Models\ModelSheet instead of ModelSheet only (i am under the same namespace (Models) ...
Guilherme Lourenço's user avatar
0 votes
2 answers
52 views

MYSQL based FulltextSearchable With Elemental blocks

Is it possible to use the mysql based fulltextsearchable functionality to search elemental blocks content? Elemental has integration features with Solr, but I'm working on a few sites that are too ...
Will's user avatar
  • 4,542
0 votes
1 answer
30 views

SilverStripe unable to populate multiple member Childs

I have 3 type of users salesman => has many buyers buyer => has many agents agent has none child so I want to list all the buyers associate with that salesman when viewing salesman and all the ...
Pervaiz Iqbal's user avatar
1 vote
1 answer
246 views

Get value from CMS template variable (SilverStripe) into React.js component props

I am attempting to render a React.js component on a page template (Page.ss) in a Silverstripe CMS instance. I have the following react component: import styles from './myComponent.module.scss'; type ...
SilentDesigns's user avatar
0 votes
2 answers
193 views

Silverstripe: how can I debug a GraphQL Error?

In Silverstripe, GraphQL provides an error in the browser console, but there is no backtrace, making debugging tricky. Is there a way to get a backtrace?
Nicolaas Thiemen Francken's user avatar
0 votes
1 answer
267 views

How do I configure Symfony Mailer with Silverstripe?

I am new to Silverstripe and currently doing the lessons. The version is 4.10 which has dropped support for Swiftmailer and are recommending Symfony Mailer. I have installed Symfony Mailer using ...
Bululu's user avatar
  • 555
0 votes
1 answer
121 views

Silverstripe 4 show specific records in GridField

I created a module that will allow certain user groups to create a request in the CMS.Any logged in user can access the module. When user visit 'RequestModeule' in in CMS section in GRID CMS FIELDS I ...
Ivan's user avatar
  • 5,141
0 votes
1 answer
132 views

Silverstripe 4 save variable in database

Is posible to save SS template variable in database from CMS and after execute it in template? Okay lets see example: In CMS i have settings where i put social media links and contact informatios. ...
Ivan's user avatar
  • 5,141
0 votes
1 answer
344 views

Silverstripe 4 use additional custom HTMLEditorField

In Silverstripe 4 how can we use different HTMLEditor configs ? I'd like to have two different HTMLEditorFields in the same environment. One with all functionality and all Buttons. And another one (...
Sepp Hofer's user avatar
0 votes
1 answer
199 views

LAMP Error on AWS: Error writing server configuration file ".htaccess"

I'm setting up a silverstripe(4) project using LAMP with AWS and I am new to the programming world. I'm having trouble with after entering the php dev/build. This error comes up: error-log.ERROR: ...
Emma Kevern's user avatar
0 votes
1 answer
250 views

Silverstripe 4 Form on custom PageController submit

I have a Form in my custom PageController. The Form renders properly in template Register.ss. In my setup the submit - function on PageController doesn't work. I have tried it without setting the ...
Sepp Hofer's user avatar
0 votes
1 answer
430 views

Silverstripe 4.9.0 can't access CMS administration / Silverstripe Framework requires a "database" key in DB::getConfig()

I am a newbie to Linux and everything in its regard, but currently I am trying to get Silverstripe 4.9.0. running on a Debian 10 server. I ran into 2 problems, each one is appearing in one of two ...
kosr04's user avatar
  • 1
0 votes
1 answer
74 views

On Silverstripe, how can we auto publish child pages if rearrange?

I'm trying to auto publish child pages if they are rearrange. Right now when we arrange those child pages it says modified. We're trying to achieve an automation on how to auto publish it once we ...
user3425625's user avatar
0 votes
1 answer
169 views

How to get all the columns name of a DB table in SilverStripe

I am new to SilverStripe and I want to perform a simple query using SilverStripe functions (I don't want to use raw SQL). I want to get all the columns' names of the product table. So far, I didn't ...
Helena's user avatar
  • 11
1 vote
0 answers
85 views

Add extra fields when creating relation

I have two tables. One is Product, one is Document (instruction manuals, brochures, etc). Each product can have many Documents, and a Document may be assigned to many products. Product private ...
user3769009's user avatar
1 vote
0 answers
131 views

Silverstripe 4 LoginForm redirect default_login_dest

I've created a new page type called LoginPage.php. I'm using $LoginForm in the LoginPage template. I want users to be redirected to another page (HomePage.php) depending on what permissions group they ...
Jamie Barker's user avatar
0 votes
1 answer
102 views

Run silverstripe SS4 tasks as cron jobs in a subdomain of SS3

I have a CPanel account. I have a main site still in SS3 and an SS4 copy of the site. The SS4 is still being developed/tested. The SS4 site is a subdomain, as in https://ss4.mySS3domain.co.nz I am ...
user3769009's user avatar

1
2 3 4 5
46