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.
2,270
questions
0
votes
1
answer
19
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) ...
-2
votes
0
answers
23
views
Multiple hosted websites and Github repositories - Silverstripe
I have more than 10 websites hosted in different regions and with different domain names.
the code base of all the websites are almost same with small differences, e.g content/images/currency etc.
...
0
votes
2
answers
19
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 ...
0
votes
1
answer
18
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 ...
-1
votes
2
answers
27
views
Sliverstripe 4.6 Template not rendering anything
I am just a new learner on SliverStripe CMS. I try to create the form on the template, but my template does not seem to work and does not render my form or any HTML codes inside the .ss file.
...
0
votes
0
answers
44
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 ...
0
votes
2
answers
22
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?
0
votes
1
answer
52
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 ...
0
votes
1
answer
23
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 ...
0
votes
1
answer
26
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.
...
0
votes
1
answer
52
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 (...
0
votes
0
answers
18
views
Silverstripe CMS: Can't access "Files" section after Upgrade to 4.10
I just did an upgrade from Silverstripe 4.6 to 4.10. Everything works. But I can't access the "Files" section of the CMS any more. See attached screenshot for more details.
Uploading images ...
0
votes
1
answer
39
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: ...
0
votes
0
answers
31
views
Silverstripe Dropzone not publishing uploaded images
I have a DataObject called Listings. In Listings I have an image called HostImage, it is a has_one and is owned.
<?php
namespace SilverStripe\MyNameSpace;
use ...
class Listings extends ...
0
votes
1
answer
72
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 ...
0
votes
0
answers
60
views
SilverStripe CMS interface can you add or change the button in Save and Add?
The documentation is not exhaustive in this regard.
I would like the save button after the save action to initiate the creation of a new item.
Reference image
Thanks
0
votes
0
answers
8
views
Uploadfield causes "confirm that you want to leave" msgbox (all browsers)
I have some Uploadfields on a SiteConfig DataExtension. Everything works except when a file is already assigned to that field. Even if I have not updated any fields, I get a "do you want to leave ...
0
votes
0
answers
16
views
Silverstripe 4 model-admin dataobject HTMLEditorField Anchor link
in Silverstripe 4 ->
in Model-Admin ->
in a dataobject ->
in HtmlEditorField :
a text
a anchor-link
more and more text
a anchor
How do you set Anchor - links for this text?
In the link-...
0
votes
0
answers
23
views
Silverstripe 4.7 Config::modify()->set variable
My yml looks like this:
---
Name: scss
---
Axllent\Scss\ScssCompiler:
theme_dir: '_resources/themes/mytheme/'
sourcemap: 'inline' # 'file' | 'inline' | false
variables:
'...
0
votes
1
answer
126
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 ...
0
votes
0
answers
25
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 ...
0
votes
1
answer
65
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 ...
0
votes
0
answers
66
views
How to access the list of fields (column names) in SilverStripe?
The documentation states there is a fieldList method in the MySQLSchemaManager class which returns an array of all the fields (column names) of a model (table).
My implementation so far is:
use ...
0
votes
0
answers
20
views
SS4 locked out, password reset does not last
I’m trying to get into my own development install of Silverstripe 4. Dev environment. I used to be able to get in but today I am locked out and I have no idea why. I also get a “you have been locked ...
1
vote
0
answers
72
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 ...
1
vote
0
answers
20
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 ...
0
votes
1
answer
42
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 ...
0
votes
0
answers
33
views
Silverstripe 4 Zend missing
In Silverstripe 4 Zend is missing ?
With SS 3 i used Zend like this:
require_once 'Zend/Date.php';
$date = new Zend_Date(strtotime('MONDAY'), i18n::get_locale());
Whats the equivalent in Silverstripe ...
0
votes
0
answers
22
views
Silverstripe silvershop bulk csv upload
Silverstripe 4 and latest Silvershop module
So has anyone successfully used bulk csv upload to work with variations I am in need of a solution to this problem. The module comes with a test csv file ...
0
votes
1
answer
67
views
Silverstripe Test not Injecting config for Element
For some reason my test isn't injecting MockFormElement::$controller_class
My Test:
class NestedElementForms extends FunctionalTest {
protected static $fixture_file = 'NestedElementFormsFixture....
0
votes
1
answer
131
views
SilverStripe CMS, Dropdown Field search by title or another match?
Hi I would like to get a search either by title or by product code in this use case, but the map('ID', 'Title') method does not expect an array to the second parameter, how could I get it?
/* original ...
0
votes
0
answers
71
views
Multiple select fields not working in Silverstripe 4 admin search
I have a requirement to adding a checkbox set to the admin search, I have done this using
updateSearchContext
in a admin extension, But search not working,
Anyone knows how to do it? Or I want to ...
1
vote
1
answer
124
views
Why does my function output " the method 'forTemplate' does not exist on 'SilverStripe\View\ArrayData"
This will be my very first question on here. I hope I give you all the info you need.
I am running a personal project using silverstripe v4.8
In my template, I have a optionsetfield, which is ...
0
votes
1
answer
90
views
How can i return has many data in Summary Fields Silverstripe?
Am trying to fetch the Project Name from Project Details table
data is getting and project id saving in Timeline table
but i can't set Product name in summary fields
if anyone have the solution please ...
0
votes
1
answer
36
views
SilverStripe GraphQL many_many Query Fails In Production
If anyone could help me I’d be so grateful.
When I have my SilverStripe app running locally I can query many_many relationships with GraphiQL. But after I deploy my app on Heroku and run the exact ...
0
votes
1
answer
53
views
Silverstripe 4.7 custom SiteConfig onAfterWrite success message
Silverstripe 4.7
I have extended SiteConfig and I want to display a success - message in onAfterWrite - function.
How can this be done?
class FaviconSiteConfig extends DataExtension
{
//...........
...
0
votes
1
answer
47
views
SilverStripe 4 with fluent: "Table 'ss4_project.Member_Localised' doesn't exist"
I've got fresh project using SilverStripe 4.8 and fluent 5.0.0. I've added an extension to the Member and the fluent extension with fields to translate:
SilverStripe\Security\Member:
extensions:
...
0
votes
0
answers
47
views
Silverstripe: AWS Aurora - Doubled the query time
I'm experimenting with various DB systems to host hundreds of thousands of databases. At first glance, AWS Aurora (Serverless) seemed like a great option however the initial tests are not very ...
0
votes
0
answers
13
views
How to customize the pages section in admin side of SilverStripe?
I want to consider a flag for pages which are defined on the admin side and load them based on this flag (I mean I want to load them if this flag is true), and also I want to load the rest of them in ...
0
votes
1
answer
73
views
Silverstripe 4 add GridField in cms tab
Dear Silverstripe 4 users, i need someone to explain me how to slove my problem. Am building ecommerce module, i create data object for insert new proucts and categories without any problems.
Probelm ...
0
votes
1
answer
134
views
How can I configure the htaccess file in silverstripe on docker?
I have a project based on the SilverStripe framework and I want to move it on docker, but after the docker configuration, it has some problem with loading the project from public folder. It works fine ...
0
votes
0
answers
61
views
Silverstripe 4.7.3 htaccess redirect problem
maybe someone here using silverstripe 4.7.3 and can help me.
I have a problem with one solution. I need to display a certain page at a different URL address
for example:
test?code=1234
where i use ...
1
vote
1
answer
71
views
silverstripe: use another "root" - template instead of "Page.ss"
Is it possible to render another "root" template instead of the Page.ss file for some specific pages / controllers? There are already some pages using the Page.ss template, but now there ...
1
vote
2
answers
60
views
In Silverstripe, how can I automate the CMS field creation for Pages like it works in DataObjects?
In DataObjects, the getCMSFields method creates all the appropriate CMS Fields automatically (it is called scaffolding). However, in classes that extend SiteTree (i.e. Pages) this does not happen.
How ...
1
vote
0
answers
73
views
PHP's pg_connect() appears to be slower on a new
Got an obscure one. Been at this one for weeks. Here is what we’re doing:
Upgrade of Silverstripe 3.1 -> 3.7
Upgrade of Platform. PHP 5.6 -> 7.4, Postgres 9.5 -> 13
Old system is running ...
1
vote
0
answers
24
views
How to require javascript after construction but before template render in a SilveStripe form field
I currently have a custom form field with a bunch of optional parameters in the constructor. I want to change this and have the field use setter functions but I can't find any way to include my ...
1
vote
2
answers
76
views
Silverstripe - show products from parent category and subcategory
I have problem when i try to loop all products from parent category and its sub-catgories.
I create two extra page types:
ProductCategory
Product
In SiteTree (pages) i create structure:
|-Pages
...
0
votes
1
answer
107
views
Silverstripe - Repeating / Reusable grouped fields
I would like to implement a layout in which a column is repeated several times and can be specified as dynamic content in the CMS. However, I cannot find an object type that would fit for this.
Do I ...
1
vote
1
answer
171
views
SilverStripe CMS interface is it possible to make the table editable?
SilverStripe CMS interface you can make the table editable, such as add and remove rows, as well as edit text and information inside the cells. Is there any component that can help?
Just for example
...
1
vote
1
answer
447
views
DomPDF Image not found or type unknown
Technologies used:
PHP: v7.4
SilverStripe: v4.7
DomPDF: 1.0
Before posting this, I made sure that I was able to follow the other tips and articles that are related to this DomPDF not showing the ...