silverstripe Questions

3

Solved

How can this be done inside of a template? I have done it with ArrayData using the key in the template loop to access values from the template, but if I have an arbitrary array of strings with no k...
Schroth asked 29/7, 2013 at 10:27

11

Solved

I am using Twitter Bootstrap to create collapsible sections of text. The sections are expanded when a + button is pressed. My html code as follows: <div class="row-fluid summary"> <div c...
Ascogonium asked 25/4, 2013 at 21:1

3

Solved

In Silverstripe 4 a file that is uploaded must be published before it is visible to the public side of the site. If I create a $Page with a $has_one Image::Class and then also assign that image to...
Locality asked 8/1, 2018 at 5:19

1

I have a form that has two FieldGroups, and in one of the FieldGroups I have a SelectionGroup. The SelectionGroup_Items show up in the form FieldGroup but the radio boxes to select one of the opti...
Crime asked 20/2, 2017 at 1:12

9

Solved

Locally I do this to dump and move a database, upgrading silverstripe 2.3 to 2.4: mysqldump --opt --default-character-set=latin1 --skip-set-charset --user=$root -p$password $oldDatabase -r db.sql ...
Gramineous asked 27/8, 2010 at 11:29

4

Solved

In SilverStripe 3.1 is it possible to overwrite the SilverStripe logo and the url (instead of replacing it) which is shown on top of the CMS on the left side?
Belshin asked 19/11, 2013 at 18:16

2

I've uploaded a site to the live server, imported the database and updated the db connection info in mysite/_config.php but am getting the following error: SilverStripe Framework requires a $datab...
Outlawry asked 4/12, 2013 at 19:42

3

Solved

I am trying to create a single page that will display multiple userforms in a tabbed view. For example basic contact form, request a quote form etc. I thought I could make a new page type and loop...
Heckle asked 19/1, 2016 at 22:17

1

Solved

I'm just learning SilverStripe and I'm having a problem with the lessons on the silverstripe website actually. I have this class: namespace SilverStripe\Lessons; use Page; class ArticlePage ...
Bazil asked 15/2, 2018 at 11:57

1

I have two objects Schedule and LocationPage. Object Schedule has a $has_one relation to LocationPage: class Schedule extends DataObject { private static $db = array( 'Date' => 'Date', ); ...
Bonkers asked 15/6, 2017 at 7:59

1

I'm trying to do something very different for a SilverStripe site: on several subpages are tables of data, and these tables each have their own set of column headers, and some tables have more colu...
Meggie asked 15/5, 2017 at 13:5

0

I am working on a Silverstripe custom report which had been created before my time at my current employer. The report returns CompetitionEntry rows for a specific Competition along with the title o...
Joanajoane asked 15/5, 2017 at 10:43

2

Solved

How do I filter $Product on AdditionalCategories in the template? I've tried: $Product.filter('AdditionalCategories', $MyFilter) But there is no AdditionalCategories column on Product in the da...
Higdon asked 12/5, 2017 at 17:34

2

Solved

I want to have a ModelAdmin interface show up as the default rather than Pages - is there a way to do this?
Dharana asked 2/5, 2017 at 23:56

2

Solved

I know that we can randomly sort a DataList with the following: $example = Example::get()->sort('RAND()'); But when I try to randomly sort an ArrayList it doesn't work. I can sort an ArrayLis...
Allhallowtide asked 29/3, 2017 at 20:31

2

Solved

I already used versioning on DataObjects when they contain a lot of content, now I'm wondering if it's possible to apply versioning to a many_many relation? Assuming I have the following: class P...
Rascality asked 27/7, 2013 at 10:41

1

Solved

is there a way to pass a URL variable to a form action? I've got it working on a user details form, but when I'm trying to do it with a user file upload it won't work. As you will see below, I hav...
Gonzalez asked 30/8, 2016 at 6:46

2

Solved

In Silverstripe if you right click on a page in Sitetree you have the ability to duplicate either a single page or a page and all its children. We have found that users occasionally duplicate pa...
Agility asked 29/8, 2016 at 4:56

1

Solved

In SilverStripe 3.4.1 I want to control _config.php file values through the Admin settings. I want to set some variables in Admin > Settings > MyTab and then access these variables in _config.php. ...
Uruguay asked 31/8, 2016 at 16:46

1

Solved

Unable to locate in the SilverStripe Documentation how to have a DataObject Model inject a collection of default records on /dev/build Anybody able to point me in the right direction This is what...
Him asked 25/8, 2016 at 6:45

1

Solved

I've been googling for about 2 hours now and can't find an answer to this question. I'm trying to filter blog posts (using the silverstripe-blog module) by Author/MemberID. So far I've got: public...
Bangweulu asked 25/8, 2016 at 2:37

1

Solved

I have a DataObject with a default sort: class Author extends DataObject { private static $db = array('Name' => 'Varchar'); private static $default_sort = 'Name ASC'; } I want to Author::ge...
Sycosis asked 17/8, 2016 at 10:10

1

Solved

This question is about the URL Update feature when changing the value of a Page Title field. The behaviour is coded into CMSMain.EditForm.js. I'm stripping down and customising the CMS to be usa...
Colossal asked 19/7, 2016 at 12:52

2

Solved

Lets say you show a random statement per page request and use a function to return a random object like: Statement::get()->sort("RAND()")->limit("1"); But now in the template you want to r...
Eddie asked 3/4, 2013 at 20:33

1

Solved

In SilverStripe I want to return two fields when I use map in a DropdownField. I have a data object Teacher with fields firstname and lastname. So in my DropdownField I want to merge these two fie...
Jasminjasmina asked 18/6, 2016 at 13:15

© 2022 - 2024 — McMap. All rights reserved.