https://groups.google.com/d/forum/silverstripe-devSilverStripe Core DevelopmentDiscussions on the core development of the SilverStripe CMS and its modules: New and changed APIs, architecture and other complex issues requiring the attention of core developers.
<br>This group is not a support forum. If are looking for help, please see <a href="http://silverstripe.org/forums/">http://silverstripe.org/forums/</a>Google GroupsIngo Schommer2017-01-17T22:46:45Zhttps://groups.google.com/d/topic/silverstripe-dev/7TgVnfNIPFIRemove WebPI installer?Is anybody using the Microsoft WebPI installer to get SilverStripe running on Windows (with SQL Server and IIS)? My assumption is that it's rarely used, and the effort of maintaining releases for it is better spent elsewhere. Details on https://github.com/silverstripe/silverstripe-framework/pull/nicolaas2016-12-12T04:54:10Zhttps://groups.google.com/d/topic/silverstripe-dev/zx72ErBBlKofixing racing condition like caching issuesHi, I am having a hard time trying to fix racing condition like issues: - User presses go. - Site does a bunch of stuff (and saves in Database) - E-mail is sent to user. *ISSUE* When the email is sent to the user, the data in the e-mail is not what is actually supposed to be inRichard Rudy2016-12-12T02:02:41Zhttps://groups.google.com/d/topic/silverstripe-dev/GBYJTmVUUtoShould Menu() and getMenu() be renamed?This issue came up on the repo #1696 <https://github.com/silverstripe/silverstripe-cms/issues/1696>. It may worth while looking into changing the name of the function to something less generic. While using the Menu function is easy to type, it may be too generic. Beyond changing the names of theDamian Mooyman2016-12-05T00:16:34Zhttps://groups.google.com/d/topic/silverstripe-dev/0qMnMDWBu4ENew RFC: Form RequestHandler abstractionHello, we have now posted a new RFC at https://github.com/silverstripe/silverstripe-framework/issues/6362. This RFC proposes a refactor of the Form class into separate model and controller components. I welcome anyone interested to read and leave their comments. ;) Kind regards, Damian Mooymannicolaas2016-12-04T22:37:57Zhttps://groups.google.com/d/topic/silverstripe-dev/NFS2UXW8uEUmemcache helpHi, I just posted this question on stack overflow: http://stackoverflow.com/questions/40964315/stop-memcache-from-removing-data-in-php-silverstripe-zend-cache There is clearly something wrong, but I am not sure how to solve it. I did read about having a uniform size cache item, but that isTony Air2016-12-04T08:45:22Zhttps://groups.google.com/d/topic/silverstripe-dev/S4mPHYgL2KYNGINX extra Securityhi guys, I had some troubles with hacker attacks and bad referers so I have made auto updating NGINX configuration with extended black lists features. I think it will be helpful for others: https://github.com/a2nt/nginx-securityMichael van Schaik2016-11-30T16:44:13Zhttps://groups.google.com/d/topic/silverstripe-dev/k3fQr9QUxTkHow to deal with credentials/key files in a (reasonably) safe wayI'm more often integrating various cloud services into projects lately, and was wondering what would be considered the/a correct way of storing their API credentials in a SilverStripe project. For example, for Google Cloud services, one can create a 'Service Account' - which is something likenicolaas2016-11-30T03:05:06Zhttps://groups.google.com/d/topic/silverstripe-dev/IqkH5UPMRuIwebsites slow? what module is to blame?Hi, We have to two sites that load in 200ms / 300ms respectively (on my dev machine). A fresh install of SS 3.5 loads in about 35ms. I was wondering if anyone has worked out a quick and easy way to find the bottle necks. There are two modules that could help: - https://github.com/heydaypadbor2016-11-23T11:42:45Zhttps://groups.google.com/d/topic/silverstripe-dev/szQhsfLcVwIError Deleting Data from DatabaseConsider this: private static $db = array( "Show" => "Boolean", "Delete" => "Boolean" ); Private static $ summary_fields = array ( "Delete" => "Delete", "Show" => "Show" ); Each time the administration is reloaded, the data for that model is removed from the database.Lamin Barrow2016-11-21T10:02:47Zhttps://groups.google.com/d/topic/silverstripe-dev/p312W8Qh2fMGiving a greater Role to Silverstripe SakeSilverstripe's ./framework/sake is seldom used in Silverstripe except for the occasional task runner or DB build. Rails has the rails cli and laravel has the fantastic artisan cli tool. Unclecheese built "silversmith" and it had the potential to really improve the development workflow but theWerner Krauss2016-11-08T07:42:29Zhttps://groups.google.com/d/topic/silverstripe-dev/59QuAIzy3b0addons site not showing new modules?Hi all, it seems the addons site is broken and doesn’t scan for new modules… Last „newest add-on“ is from October 19th, latest „newest Release“ from Oct. 21st. Cheers, Wernerpadbor2016-11-04T04:57:07Zhttps://groups.google.com/d/topic/silverstripe-dev/yV0GpNQO8_sDevelopment web: Silverstripe Framework in Benin (Africa)In 4 hours, I'll start the web development training: @silverstripe <https://twitter.com/silverstripe> Framework, at university Cours Sonou in northern #Benin <https://twitter.com/hashtag/Benin?src=hash> ( #Africa <https://twitter.com/hashtag/Africa?src=hash> ) -- Boris PADONOU Twitter:Zauberfisch2016-10-27T20:32:18Zhttps://groups.google.com/d/topic/silverstripe-dev/XGiUMpD8wz4How do I semver a module and yet support multiple SilverStripe major releases?Hey guys, I raised that question on IRC yesterday and got some good input, but no real solution. So I'd like to re-raise it here and perhaps even generate a general recommendation for module authors: > <Zauberfisch> hey guys > <Zauberfisch> I need some advise on handling releases of a moduleIngo Schommer2016-10-27T20:26:51Zhttps://groups.google.com/d/topic/silverstripe-dev/ZLDDMkc_C_oRFC: Use GraphQL/Apollo for structured data access in the CMSWeb services (APIs) are becoming more important in the CMS as we switch to a more frontend-driven UI with React. GraphQL is the new kid on the block challenging REST principles, and I think is a great fit for our use case and wider ecosystem. We're looking for feedback on this approach - ifTony Air2016-10-25T16:12:57Zhttps://groups.google.com/d/topic/silverstripe-dev/mD1GzF5aZH0Member Profile extendable areaI think it will be great to include a frontend extendable area which will be extended by the other silverstripe modules. Some websites may have member management areas for an instance silvershop has it. It maybe also be extended by the other modules to manage the other things. I suggest to makeSam Minnée2016-10-20T20:53:42Zhttps://groups.google.com/d/topic/silverstripe-dev/pjLGqmfeifoVOTE: php-intl as a SilverStripe 4 dependencyHi everyone, We are looking to add php-intl as a dependency for SilverStripe 4 and we'd like to get your feedback on whether this is going to prevent you from upgrading to SilverStripe 4. There's a ticket to vote on here: https://github.com/silverstripe/silverstripe-framework/issues/6207 We'dDamian Mooyman2016-10-17T23:52:59Zhttps://groups.google.com/d/topic/silverstripe-dev/BVgFrxb7ISwRFC Replace Zend_Locale with new i18n backendHello everyone, Please note that there is now a new RFC on the github issues which addresses replacement of the existing zend-based i18n SilverStripe functionality. https://github.com/silverstripe/silverstripe-framework/issues/6194 This follows on from an earlier discussion around an upgrade toTony Air2016-10-12T02:49:51Zhttps://groups.google.com/d/topic/silverstripe-dev/ZvwNX7298b0Some Digital Ocean to Dropbox backup scriptsI have shared some scripts I did to save space at Digital Ocean and backup SilverStripe websites to Dropbox using zip-archives. Hopefully it will be useful for someone: https://github.com/a2nt/silverstripe-digitalocean-nginx-backup-scriptsDamian Mooyman2016-09-26T00:12:53Zhttps://groups.google.com/d/topic/silverstripe-dev/6nks_xV7hpMRFC Versioned many_manyHello all, I'm looking at gathering feedback on a feature we would like to develop for silverstripe 4.0.0 alpha3. In order to support versioning of many_many relationships we are looking to implement versioning through a versioned has_many relationship. This is sometimes called "has manyDamian Mooyman2016-09-12T06:25:37Zhttps://groups.google.com/d/topic/silverstripe-dev/GRt9e_hjO58Proposal and POC: silverstripe-recipe module typeAs we are nearing the date of 4.0.0 alpha2, and are getting ready to prepare for 4.0.0 stable, there has been a lot of discussion regarding the release process of the SilverStripe core, as well as the way that we version and manage dependencies. *The problem* Up until now, we have relied on aChristopher Pitt2016-09-07T22:27:40Zhttps://groups.google.com/d/topic/silverstripe-dev/14lJBw13jQIMore helpful exceptions/warningsHey folks, I've been thinking about making exceptions/warnings more useful, during development. I've put my thoughts into a couple pull request: https://github.com/silverstripe/silverstripe-framework/pull/5953 https://github.com/silverstripe/silverstripe-framework/pull/5963 I'm trying toIngo Schommer2016-09-05T03:07:28Zhttps://groups.google.com/d/topic/silverstripe-dev/qotN9OU8d6gLooking for full-time SilverStripe Open Source Dev in NZHello everyone, We've got an exciting opportunity opening up at SilverStripe Ltd. to work on SilverStripe Open Source full time. You'd be working from Wellington or Auckland (we might consider remote within the right timezone). If you want to get a chance to work with Chris J. (@flamerohr),Ingo Schommer2016-09-01T02:50:35Zhttps://groups.google.com/d/topic/silverstripe-dev/3lEgTZfT4OgSupport Timeline and LTS (draft)Hello everyone, the core team has been discussing how we plan to support SilverStripe core releases going forward, and strike a balance between speed of innovation for SilverStripe core, and stability for everyone's clients. Sam has created a support timeline < https://docs.google.com/spreadsheZauberfisch2016-08-31T13:25:10Zhttps://groups.google.com/d/topic/silverstripe-dev/NKdDDY4Ww8oStripeCon 2016 - Europe Conference / CfP and last chance for early bird ticketsHello everyone, As we rapidly approach the end of summer, StripeCon 2016 draws closer as well. Because of that, tomorrow will be the last day to get an early bird ticket. So grab one quickly if you haven't already. We are looking forward to presenting the schedule within the next two weeks,Tony Air2016-08-31T07:00:02Zhttps://groups.google.com/d/topic/silverstripe-dev/yi1wZpubEq8Looking for SilverStripe freelanceHi my name is Tony. I’m full-stack web developer. I have 3 years SilverStripe experience and PHP, CSS, HTML, MySQL experience about 10 years. Here’s my personal page: https://tony.twma.pro So if you need a freelance developer let me know. I’m looking for some extra remote job. If you needMichael Strong2016-08-24T09:18:37Zhttps://groups.google.com/d/topic/silverstripe-dev/q5khashNiuYReplace SilverStripe ConfigHi Everyone, This is quite a lengthy post so you may want to make yourself comfortable. I've spent quite a few hack days at SilverStripe looking at ways to improve the config system, mostly in relation to performance. I've found this difficult and frustrating to work with and there are veryPatrick Nelson2016-08-22T23:06:59Zhttps://groups.google.com/d/topic/silverstripe-dev/3EwA5HWCCegIs there no API for has_one relations?I'm noticing that there's a PHP-based API for has_many and many_many relations, but I'm not seeing any documentation covering an API for has_one relations, e.g. take a polymorphic has_one for example: // Where "tag" could also be any other DataObject which points back to "Story.Polymorphic"nicolaas2016-07-28T07:36:50Zhttps://groups.google.com/d/topic/silverstripe-dev/yuMnx9J1N_0why place several classes into one file?Hi Everyone I wonder why the following is stated on: https://docs.silverstripe.org/en/3.4/developer_guides/customising_the_admin_interface/how_tos/customise_site_reports/ - It is recommended to place all custom reports in the 1 file. - - Create a *CustomSideReport.php* fileSam Minnée2016-07-27T22:45:48Zhttps://groups.google.com/d/topic/silverstripe-dev/8i_vFiGheoQNew RFC: Namespacing and the Page classHi everyone, There's a new RFC available here: https://github.com/silverstripe/silverstripe-framework/issues/5844 Thanks, Sam -- Sam Minnée CEO SilverStripe LimitedDamian Mooyman2016-07-19T21:20:57Zhttps://groups.google.com/d/topic/silverstripe-dev/feLc_tJksFoLooking for feedback on SiteConfig assigned themesAs a part of recent refactoring in the master branches of the core modules, we have now introduced the concept of nested themes. You can see the implementation of this feature at https://github.com/silverstripe/silverstripe-framework/pull/5804. As this has been a reasonably major API change,nicolaas2016-07-19T00:54:25Zhttps://groups.google.com/d/topic/silverstripe-dev/HjsG8nM72uchow to make two websites talk to each other?Hi, We are working on two sites that need to share some information (e.g. blacklisted emails for newsletter, risky transactions). What is the best way to achieve this? Options I can see: (1) *sites talk directly* to each other - if so, would this be through a restful api or otherwise? Wouldnicolaas2016-07-19T00:40:30Zhttps://groups.google.com/d/topic/silverstripe-dev/_kcqw09oLI4is there any code for extracting private staticsHi We are working on increasing the quality of our modules. As part of this, we would like to make a full list of config options for each module. I have two questions in relation to this: (1) Has anyone written a piece of code for extracting all the private statics of a module? I am keen tokPodo2016-07-15T15:22:20Zhttps://groups.google.com/d/topic/silverstripe-dev/L6SJzpyzJyMRe: [silverstripe-dev] Abridged summary of silverst...@googlegroups.com - 8 updates in 1 topicGuys, how about flattening the icons altogether, using material icons (or, alright, FontAwesome) as a basis? I've found myself flattening the CMS interfaces the past 3 clients, removing gradients etc. You could use a custom icon, and color it based on its status, then play with drop shadows,Paul Clarke2016-07-14T04:15:52Zhttps://groups.google.com/d/topic/silverstripe-dev/R56n9BJuKc8Responsive CMS interactive mockupI have created a interactive mockup for a responsive menu and two different options for how the preview could work. It would be great to get some feedback on those interactions (either here, or directly comment on the mockup). Open to suggestions. https://invis.io/ZH7XCBCXV#/173199939_ResponsiveDamian Mooyman2016-06-27T02:54:55Zhttps://groups.google.com/d/topic/silverstripe-dev/Ig3ODKBEaT4RFC-6 Namespace: State of change and ORM namespace introductionHey all, we have begun implementation of the RFC-6 ( https://github.com/silverstripe/silverstripe-framework/issues/4562) which was posted quite some time ago. We have been hard at work to not only implement this namespacing, but also ensure that users upgrading to SilverStripe 4.0 will have thePatrick Nelson2016-06-15T09:54:37Zhttps://groups.google.com/d/topic/silverstripe-dev/uOvaY6vN664ArrayList's and comparison filters.Am I mistaken or is it really true that array lists do not actually utilize filters? I was racking my brain trying to figure out why the heck this filter wouldn't work at all: return $list->filter([ "IntegerField:GreaterThan" => 123, ])->first(); After inspecting the ->filter()Martimiz2016-06-08T08:33:17Zhttps://groups.google.com/d/topic/silverstripe-dev/9e4CZjAzrRwDocs not updated to 3.4I'm not sure this is the right place to report this - this is not an issue with the docsviewer as such - but the docs still mention 3.3 as the stable version and there's no mention of 3.4... MartineSam Walsh2016-06-08T00:02:06Zhttps://groups.google.com/d/topic/silverstripe-dev/m9ss4EqOEVYIs there a way to create a custom relationship (custom column name linking to a specific field in the relationship's table)?A system I'm building synchronises content from an API as Silverstripe DataObjects. The source already has it's own means for linking between objects using codes (e.g. EventCode on a Registration DataObject links to an Event DataObject that has that EventCode). The problem I'm having is that IFlorian Thoma2016-06-06T01:02:02Zhttps://groups.google.com/d/topic/silverstripe-dev/I5-AMUUZZScSupported versions and SS 3.0 end-of-lifeHi, A while ago I had a discussion with Matt Peel from SilverStripe about supported versions etc. While we have seen an official end-of-life announcement for SS 2.4 ( https://www.silverstripe.org/blog/silverstripe-2-4-end-of-life-announcement/), we haven't seen anything like it for SS 3.0.nicolaas2016-05-29T04:04:49Zhttps://groups.google.com/d/topic/silverstripe-dev/1uzYwIQOBTgworking with webpack - managing Page based variables - what is best practice?Hi Aaron, aka uncle cheese, recommended us to work with webpack ( https://webpack.github.io/). We are now using this, but it is a pretty steep learning curve. I am curious to get a best practice recommendation for injecting DB variables (set through CMS) into JS... I will give you anIngo Schommer2016-05-27T00:18:03Zhttps://groups.google.com/d/topic/silverstripe-dev/tY_aiEDZg9QUsing Zenhub for managing work in progressHello everyone, You might be aware that SilverStripe Ltd. has a team dedicated to open source, with individuals being either half-time or full-time members. At the moment this consists of Hamish, Damian, Paul and myself - with our Scrum Master Marcello. We're just switching from Scrum toSimon Erkelens2016-05-25T06:38:24Zhttps://groups.google.com/d/topic/silverstripe-dev/FFbK4EPm0_IRFC: Replace SS_HTTPResponse/SS_HTTPRequest with HTTPFoundationThis is a way bigger one. After talking with Dan a bit this morning, he came up with removing the SS HTTP handlers and replace them with HTTPFoundation <https://github.com/symfony/http-foundation>. This is quite a bigger replacement than mailer, Oembed etc., but we're keen for your thoughts.Michael van Schaik2016-05-24T08:39:25Zhttps://groups.google.com/d/topic/silverstripe-dev/iXkA66awmlkdocs.silverstripe.org downSS Docs have been showing nothing but dev-mode errors for me the past ~5 days (first noticed last friday). Anyone else noticed this? [image: Inline image 1]Simon Erkelens2016-05-24T07:35:57Zhttps://groups.google.com/d/topic/silverstripe-dev/gog2P9fmVdYRFC: Move all Shortcode Handlers to separate classesCurrently, for example Image holds the handle_shortcode method for Images. I think it would be more structured, to have an ImageShortcodeProvider etc. It would most probably also be more easy to maintain. Thoughts on yes/no and possible namespacing are very welcome.Simon Erkelens2016-05-22T01:13:09Zhttps://groups.google.com/d/topic/silverstripe-dev/oEWWT2VDl5wRFC: Remove mailer in favor of SwiftMailerI'm not sure. Currently, the Mailer doesn't look too bad, but it's just a thought. Hence, RFC.David Alexander2016-05-21T08:25:04Zhttps://groups.google.com/d/topic/silverstripe-dev/ipU1bMNAZFYPHPStorm : A SuperfluityPHPStorm on Ubuntu 16.04: Many nice PHPStorm keyboard combinations (like the one for multiple cursors and opening up settings!) are overridden by the Unity window manager. In Ubuntu, if you go into System Settings -> Keyboard -> Shortcuts you can disable or redefine the ones that conflict withMatthew Hailwood2016-05-20T23:06:47Zhttps://groups.google.com/d/topic/silverstripe-dev/d-uaYWg4uSYNew developer(s) required for PHPstorm SilverStripe plugin.Hey Folks, There was a question asked on here about what IDE people use for their development <https://groups.google.com/forum/#!topic/silverstripe-dev/bozY5hh9g4c> and the clear majority was PHPstorm - This is great but what also became apparent is the number of issues the only SilverStripeChristopher Pitt2016-05-20T00:08:33Zhttps://groups.google.com/d/topic/silverstripe-dev/dG_yJZGoeyEUsing the personal development server...Been working on some things, and this module <https://github.com/assertchris/silverstripe-serve> is a happy side-effect. Install it and you'll have a task you can run, to start the server. It's like we're living in Laravel-land!Simon Erkelens2016-05-17T08:16:32Zhttps://groups.google.com/d/topic/silverstripe-dev/GDlVknhWQFoRFC: Remove the very old BBCodeParser in favour of Golanka/BBCodeParserThe BBCodeParser as it's currently in the core, is making me twitch. It's from 2007, a lot of legacy and unmaintained. I would like to see this replaced with a more maintained external module. There are a few, the one most used is Golanka's module, which seems to be stable and doesn't need muchMartijn2016-05-16T15:23:43Zhttps://groups.google.com/d/topic/silverstripe-dev/-jKKzkkaQ-8RFC: Use Symfony Console Component for Tasks and better cli supporthttps://github.com/silverstripe/silverstripe-framework/issues/5542