Quantcast
Channel:
Browsing all 4235 articles
Browse latest View live
↧

UploadField with dateTime appended to filename

Hi I'm trying to find a way of ensuring that users can't overwrite and existing uploaded file so that we will always have a full history of changes made. My first thought was to append the current...

View Article


Re: UploadField with dateTime appended to filename

Sounds like "Versioned Files" (versioned like the sitetree) might be what you are looking for...https://github.com/silverstripe-australia/silverstripe-versionedfilesPosted to: UploadField with dateTime...

View Article


SS 3.1 way of implementing SSL for admin and various pages

Hi,Just wondering if there is any documentation on how to implement SSL on various sections (particularly Admin, forms and various page types) and page types in SS 3.1? Has anything changed with the...

View Article

3.1.2 - Sync Files Validation Error

SS 3.1.2When I click the "Sync Files" button in the Files section, i get:"Validation error: Validation error writing a Page object: Page type "Page" not allowed as child of this parent page. Object not...

View Article

Re: SS 3.1 way of implementing SSL for admin and various pages

As per previous versionsDirector::forceSSL(array('/^registration/', '/^Security/','/^admin/'));Posted to: SS 3.1 way of implementing SSL for admin and various pages | Show Thread | Post Reply

View Article


Re: SS 3.1 way of implementing SSL for admin and various pages

Couldn't be any easier. Thanks for your response @Willr. VWD.Posted to: SS 3.1 way of implementing SSL for admin and various pages | Show Thread | Post Reply

View Article

Re: Only one level being returned for Sitetree

In your example $pages will only be the pages for the a single level. If you want to get the children of those$pages = SiteTree::get()->filter('ParentID', 54);foreach($pages as $page)...

View Article

Re: Module filter at backend

You should post some more details about your situation. If you have a has_one relation between video and users (where Video has one 'User' you can get a users videos by using...

View Article


Re: Data Object with Activate and Deactivate password.

How do you store the password to deactivate it? Is this password the user login password? To check whether a given string matches the users login password, you can do something like the following which...

View Article


Re: HTMLEditor Field in frontend (SS3)

Purplespider, more than the solution described above??Posted to: HTMLEditor Field in frontend (SS3) | Show Thread | Post Reply

View Article

Re: Only one level being returned for Sitetree

Thanks Willr,Is there a method that returns every page? Staticpublisher example seem to point to SiteTree::get(); but on my site (c. 2500 pages) when I run it it maxs out CPU for a while and doesn't...

View Article

Re: Only one level being returned for Sitetree

Try staticpublisherqueue (https://github.com/silverstripe-labs/silverstripe-staticpublishqueue) which will generate pages through an event system and perhaps better for larger sites (and going to be...

View Article

Re: Only one level being returned for Sitetree

Thanks great, thanks a mill for the advice, much appreciated! (Funny thing is that when the same site was on version 2.3 the staticpublishing worked fine, must be something to do with switch to...

View Article


Re: Empty $Messageblocks on checkfields

Yep, found this thread before the github issue https://github.com/silverstripe/silverstripe-framework/issues/2489I've done a pull request directly from github.com (as mentioned here:...

View Article

Re: ManyMany Grid Field Search Case Sensitive

Hi,This has been fixed in 3.1, but if you're using 3.0 you can do this quick patch. Note that this will break other databases, which is why we haven't committed it to 3.0.---...

View Article


Re: Data Object with Activate and Deactivate password.

Thanks so much Willr. Very useful information. Any ideas on this subject? http://www.silverstripe.org/dataobjectmanager-module-forum/show/28974#post327198Thanks so much for your help!Posted to: Data...

View Article

Re: Upload HTTP Error

Solved.Check this like too.http://www.silverstripe.org/customising-the-cms/show/28519Posted to: Upload HTTP Error | Show Thread | Post Reply

View Article


Re: 3.1.2 - Sync Files Validation Error

SolvedFound a Page page-type that was a child where it's parent had $allowed_children declared. As well as two obsolete page-types, so those pages just needed to be published using different a...

View Article

Change Filename -> Upload

I want to change the filename when uploading images.I have an additional text field, the value should have then file name.How do I solve this?Posted to: Change Filename -> Upload | Show Thread |...

View Article

Re: Stage=stage does not work on 3.1.2

Hi,unfortunately i wasn't able to solve this one yet. I have found this one https://github.com/silverstripe/silverstripe-framework/issues/2645 on Github. Seems to be a knowen issue. Can anybody help to...

View Article
Browsing all 4235 articles
Browse latest View live