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 GroupsMichael 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/5542Martijn2016-05-16T09:42:10Zhttps://groups.google.com/d/topic/silverstripe-dev/6ME-tIROq1oForm template locationAm I the only one that finds it a little confusing that MyCustomFormTemplate.ss should live in an Include folder and will not work when put in a forms folder, where MyCustomFieldTemplate.ss works fine when put in forms? https://docs.silverstripe.org/en/4.0/developer_guides/forms/form_templates/Martijn2016-05-12T07:19:33Zhttps://groups.google.com/d/topic/silverstripe-dev/YQ9ru7UuUV0Better support for testing out of the boxAfter I have seen how easy it is to write tests in a clean Laravel install, I really think Silvertripe lacks in this compared to Laravel. See also this ticket : https://github.com/silverstripe/silverstripe-installer/issues/116 After a composer install you want to invite the developer by runningSimon Erkelens2016-05-12T07:06:39Zhttps://groups.google.com/d/topic/silverstripe-dev/Sy2hBqzgcbwRFC: Remove shortcode parser in favor of thunderer/ShortcodeShortcode parsers are terrible to maintain if you ask me. Having an external library to do this for us, would save a lot of time and clean up the framework more to do what it is supposed to do. I don't think parsing shortcodes is one of those things. Also I'm wondering, how often do peopleIngo Schommer2016-05-09T03:50:58Zhttps://groups.google.com/d/topic/silverstripe-dev/-lWznj3Wi6ISS4 build tooling now documentedHey everyone! We're progressing towards a shiny new ReactJS frontend in the SilverStripe 4 CMS (campaigns and assets sections). Which means more build tooling! We're put Gulp/Browserify in place, and packaged it all up with some NPM aliases. If you plan to contribute to the SS4 frontend dev,Ingo Schommer2016-04-29T00:03:15Zhttps://groups.google.com/d/topic/silverstripe-dev/H5v2t5vg6aIWatch out, 4.0.0-alpha1 is nigh!Hello everyone, After quite a few months of development by SilverStripe Ltd. and the SilverStripe community, we're getting close to a first product milestone: 4.0.0-alpha1. It is intended as a preview for interested developers and users. The release will show off a lot of groundwork for the newCam Findlay2016-04-26T03:27:49Zhttps://groups.google.com/d/topic/silverstripe-dev/IgcXxKcmF0gOn safari for 2 monthsNot the browser... not driving across the African plains... I'm going on safari in the New Zealand Government for 2 months (May/June)! (Should I be this excited?) Well, it's a secondment really, to help out with putting together a useful Open Source licensing framework to help the public sectorPaul Clarke2016-04-22T03:39:55Zhttps://groups.google.com/d/topic/silverstripe-dev/Zmkiu3wADL84.0 Coding conventionsThings are coming along with SilverStripe 4 alpha and to help keep things clean from the get-go we would like to progress some of our standards and conventions around structure of code, the use of CSS/SCSS and its naming conventions. As you all know we are basing our styles off Bootstrap 4Christopher Pitt2016-04-19T23:15:19Zhttps://groups.google.com/d/topic/silverstripe-dev/mj5GlYJ2PcoLooking for a replacement FIG repHey folks, Would any body like to replace me as the FIG rep, or nominate a replacement? Kind regards ChrisSam Minnée2016-04-19T21:30:25Zhttps://groups.google.com/d/topic/silverstripe-dev/2bVc9g6gse4New RFC: drop RestfulServicehttps://github.com/silverstripe/silverstripe-framework/issues/5347 Keen to hear everyone's feedback! -- Sam Minnée CEO SilverStripe LimitedSam Minnée2016-04-19T10:30:01Zhttps://groups.google.com/d/topic/silverstripe-dev/9LRoTiklOwAWelcome, Aaron and Stevie!Hi everyone, After years of contributions to the SilverStripe open source project and community, I am extremely pleased to announce that we have 2 new people joining the SilverStripe core committers team. Aaron Carlino, better known to many as Uncle Cheese, is no stranger to most of us:Ingo Schommer2016-04-18T11:08:08Zhttps://groups.google.com/d/topic/silverstripe-dev/abppWYheKwwAnybody keen to help us create an SS4 pattern library?We're writing components for SS4 in React and BEM. This is great for developing components in isolation from the UIs they'll be used in, and (hopefully) means smaller and faster UI iterations. And it will allow more contributions on components, where the contributor doesn't need to know (much)Patrick Nelson2016-04-15T19:34:22Zhttps://groups.google.com/d/topic/silverstripe-dev/p9zLNxevWosCookie::set() expiry only in days?Is there some finer degree of resolution than *days* for setting a cookie expiration in SilverStripe? Does it make sense for this API to be enhanced to allow seconds instead of days? For some reason this ::set() method has parameters that exactly match that of PHP's native setcookie() <http://phDavid Alexander2016-04-13T19:44:33Zhttps://groups.google.com/d/topic/silverstripe-dev/bozY5hh9g4cPHP/Silverstripe IDE Survey : What IDE do you use for SS work ?Hi all. I am curious about which IDEs SilverStripers are using. I have experimented with Eclipse PDT, CodeLite, PHPStorm, NetBeans. I have also tried Sublime. All tend to feel like running a marathon in a tropical country wearing a down winter jacket, especially compared to my beloved and nimbleSam Minnée2016-04-11T00:07:04Zhttps://groups.google.com/d/topic/silverstripe-dev/PzDnq5p0cCAA couple of informal RFCs about splitting core features into new modulesHi everyone, I've raised a couple of informal RFCs about splitting core functionality out into modules that I'd like to draw your attention to. To keep the discussion in one place, it would probably be best if the discussion occurred on the GitHub issues rather than in the mailing list. SplitMartimiz2016-04-07T13:05:52Zhttps://groups.google.com/d/topic/silverstripe-dev/sgFpfrPza1UWrong README displayed in Addons - how is this determined?Hi, I was just checking my language-prefix module in the Addons and noticed that the README that it displays belongs to a testbranche (dev-no-prefix-for-default), stating that in large letters, which will definitely give potential users the wrong idea. Note that Packagist displays the masterPatrick Nelson2016-04-07T00:07:38Zhttps://groups.google.com/d/topic/silverstripe-dev/THBW_f-cUH8Use of user_error() instead of exceptions.I wanted to throw in flame words like "pervasive" or "overuse" just to stir the pot a bit, but I want to express ahead of time that I'm assuming there's a good reason for this. On to my point: Is there some particular reason why SilverStripe prefers to use user_error() instead of throwingIngo Schommer2016-04-02T00:24:10Zhttps://groups.google.com/d/topic/silverstripe-dev/vgQZpUnxrI4"Supported modules" and github.com/silverstripe-labsI think we can all agree that the "labs" distinction is pretty arbitrary - we have many <https://github.com/silverstripe-labs/comment-notifications> modules <https://github.com/silverstripe-labs/silverstripe-content-widget> on <https://github.com/silverstripe-labs/silverstripe-environmentcheck>Simon Erkelens2016-04-01T23:18:37Zhttps://groups.google.com/d/topic/silverstripe-dev/308k1-RP-4MSecurity and Login functionality for SS4The questions below are to improve the extendability of the security and login related functionality currently implemented. The security of the framework or CMS is *not at risk.* I just want to improve it. Continuing from what I've already done (Sorry, can't show it off yet), I'd like to haveSimon Erkelens2016-03-31T20:51:08Zhttps://groups.google.com/d/topic/silverstripe-dev/P5wiPxiRYVIBrowser support for 4.0: Netscape NavigatorAs we all know, government and corporate systems are often very far behind on the technology they are supporting. I suggest, since we are dropping IE9, to add Netscape Navigator to keep both the amount of supported browsers up to the same level, as well as making sure we can provide theseWerner Krauss2016-03-31T08:26:12Zhttps://groups.google.com/d/topic/silverstripe-dev/fFfFM5PVUEsAnnouncing SilverStripe related blog: www.silverstrip.esHello SilverStripers, Barry Swaisland (swaiba) and me (wmk) launched a SilverStripe related blog last summer. The main goal is to save those little snippets and "a-ha" moments while developing and helping out others on IRC. We already have some guest posts from James, Gordon, Loz, Lukas, andChristopher Pitt2016-03-29T02:47:51Zhttps://groups.google.com/d/topic/silverstripe-dev/d94YIBEf6dICodes of ConductI noticed that Helpful Robot has been scoring modules <https://helpfulrobot.io/silverstripe/sharedraftcontent> (by a percent or two) according to whether they have a code of conduct or not. This isn't actually part of the supported module standard <http://www.silverstripe.org/software/addons/supSimon Erkelens2016-03-25T03:12:38Zhttps://groups.google.com/d/topic/silverstripe-dev/S2fAgIh49IQA <% wrap %> method for template parserA lot of the template parsing mechanisms, support some sort of conditional wrapping. For example, if an image exists, include the image, otherwise, don't. In SilverStripe, I have to check with an if-statement. Also, an often called feature is the link. If a link exist, wrap the text in an <a>Christopher Pitt2016-03-16T21:41:47Zhttps://groups.google.com/d/topic/silverstripe-dev/IoMtKlju3RcPreferred method for converting framework to PSR-2Hi folks, This is mostly a question for the core committers: do you think it would be better to convert the whole codebase at once, or take a more iterative approach <https://github.com/silverstripe/silverstripe-framework/pull/5190>? This won't mitigate the blame problem, but it will makeMichael : DesignerX.com.au2016-03-13T20:59:14Zhttps://groups.google.com/d/topic/silverstripe-dev/MC7dak-EFoQRe: [silverstripe-dev] Abridged summary of silverst...@googlegroups.com - 6 updates in 2 topicshttps://groups.google.com/forum/?utm_source=digest&utm_medium=email#%21forum/silverstripe-dev/topics%0A> > Google Groups > < https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#%21overview> > < https://groups.google.com/forum/?utm_source=digest&utm_medium=email/anselmdk2016-03-10T07:53:06Zhttps://groups.google.com/d/topic/silverstripe-dev/uJx4iytU0gkBehat tests on modulesAs some of you might have noticed, I’ve come to love Behat, and it’s integration in SilverStripe. Though it can be a mess to set up, and there’s even some controversy in the core group whether it’s the right tool ( https://github.com/silverstripe-labs/silverstripe-behat-extension/issues/62), I