SS3.1 - Sorting in Search Results
Is there any way to sort the search results from the SearchForm class? Or maybe some other in class in Silverstripe that can do this?Posted to: SS3.1 - Sorting in Search Results | Show Thread | Post Reply
View ArticleRe: Render Custom template
Hi both,Wouldn't it make more sense to add the code that sets the template name in an extension of controller (or content controller).That way the template will be available globally?Cheers,MoPosted...
View ArticleRe: CHARACTER SET 'utf8' error
I'm seeing the error too. It only occurs when the static 404 error page is hit, which is weird because it's static.I'm guessing it's a problem with the code used to serve or regenerate the static error...
View ArticleRe: Addon update notifications
I've just finished an addon which parses composer.json|lock and checks against Packagist for updates. Sends an email notification once found to whomever you...
View ArticleRe: Editing DataObject in the frontend
The "offical" method for 2.4 is genericviews - https://github.com/chillu/silverstripe-genericviewsI Think this is mostly going to work on 3.x too.Posted to: Editing DataObject in the frontend | Show...
View ArticleDisabling Requirements from controller
From looking at SSViewer it is possible to disable the output of Requirements to the template via the 'includeRequirements(true/false)' method - however I can't work out how to access the instance of...
View ArticlePages disappearing from Site Tree after Delete Draft
Hi,spent the afternoon playing around with 3.1.4 when i came across this very strange behaviour. Working through the tutorials I've added a couple of pages. They show up in the Admin Sitetree and...
View ArticleRe: Pages disappearing from Site Tree after Delete Draft
Trying to reproduce this in various ways.Edit ModeIf i delete a draft I can still access the deleted page in Sitetree and get the Restore Button. Once i log out and back in the Page is gone for...
View ArticleMethod location best practises
When choosing whether to place my template method in the Controller or the Model - what are the general best practises?For instance I have a method to get a simple 'copyright' strapline that sits in...
View ArticleRe: addHeader memberprofiles
same here. Would be great to get a fix for this. $this->response->addHeader('X-Frame-Options', 'SAMEORIGIN');This is recommended here: http://doc.silverstripe.com/framework/en/topics/securitybut...
View ArticleRe: addHeader memberprofiles
I guess an obvious work around is if(is_object($this->response)){ $this->response->addHeader('X-Frame-Options', 'SAMEORIGIN'); }Posted to: addHeader memberprofiles | Show Thread | Post Reply
View ArticleAjax 404 problem
I'm trying to get first things first in Ajax in SS 3.1 with this rudimentary example of an Ajax calculator:JS:$('button').on('click', function(){ $.get('myajax/add/5/6', function(data){...
View ArticleGlobal contact fields
Hi all,I would like to ask you a very basic question. I wanted to make tab 'contacts' in admin page edit where will be everything. From phone numbers, address, to social links. It works like a charm,...
View ArticleChecking variables of a chlid
Hello,I am trying to achieve few things. I have a TeamHolder Page and then children of TeamHolder are TeamPlayer. I would like to write a method in TeamHolder that is going to check if TeamPlayer has a...
View ArticleAdmin password not working
I changed the email address for admin in the mysql member table.Since that time, I cannot log in as admin. It keeps reporting that the credentials are not correct.If I request a password reset, I get...
View ArticleRe: Pages disappearing from Site Tree after Delete Draft
Just wanted to say I have also experienced this behaviour when unpublishing and then deleting drafts.I end up with some sections of pages completely missing from the displayed site tree.I have to log...
View ArticleRe: Pages disappearing from Site Tree after Delete Draft
If you feel this may be a bug, and it hasn't been reported yet, please create an issue on GitHub here:https://github.com/silverstripe/silverstripe-cms/issues?state=openThanks, MartinePosted to: Pages...
View ArticleRe: Admin password not working
Just to make sure - did you actually change it in the Member table by hand or the intended way, by using the CMS? As this happened immediately after changing the e-mailaddress, you could try changing...
View ArticleRe: Checking variables of a chlid
In your template you're calling the MySocialClass() function from within the Children loop. At that point you are already within the context of the TeamPlayer page, so the function in the...
View ArticleRe: Global contact fields
That is where the SiteConfig class comes in - see the Settings menuitem in the left menubar. Here you can add your sitewide settings. The way to do that is create a DataExtension for the SiteConfig,...
View Article