#silverstripe IRC Log

IRC log for 30 November 2016

All timestamps are in UTC.

1: [00:04:38] * zippy_ quit (Quit: Textual IRC Client: www.textualapp.com)
2: [00:18:40] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
3: [00:22:01] * willr has joined #silverstripe
4: [00:29:25] * trash_ has joined #silverstripe
5: [00:29:39] <trash_> hi all
6: [00:32:44] <DanaeNZ> ok so ... shortcodes in HtmlEditorField. Say you put the shortcode in, then save. I have a problem where it's applying the shortcode in the SiteConfig area, in the HtmlEditorField. After saving settings, the shortcode is replaced. Is this the correct behaviour? The value is dynamic - so should replace itself on page load?
7: [00:32:49] <DanaeNZ> fuck, I don't know.
8: [00:33:19] <DanaeNZ> may as well just use str_replace
9: [00:35:29] <DanaeNZ> xdebug still isn't working
10: [00:35:34] <DanaeNZ> it's been a long ass week
11: [00:35:39] <DanaeNZ> and it's only wednesday
12: [00:43:28] <DanaeNZ> omg...switching from php versions in AMPPS also gets rid of the xdebug conf wtf
13: [00:50:31] * trash_ quit (Ping timeout: 260 seconds)
14: [01:03:45] * Nightjar_ has joined #silverstripe
15: [01:03:46] * Nightjar quit (Read error: Connection reset by peer)
16: [01:03:49] * DanaeNZ_ has joined #silverstripe
17: [01:06:00] * DanaeNZ quit (Ping timeout: 256 seconds)
18: [01:10:37] * Stomach quit (Ping timeout: 240 seconds)
19: [01:13:02] * Stomach has joined #silverstripe
20: [01:27:04] * Nightjar_ is now known as Nightjar
21: [01:31:46] * micmania1 quit (Quit: micmania1)
22: [01:47:06] * micmania1 has joined #silverstripe
23: [01:49:38] * Stomach quit (Quit: zzz)
24: [01:58:13] * Stomach has joined #silverstripe
25: [01:59:30] * UncleCheese has joined #silverstripe
26: [02:07:17] * bubaphex has joined #silverstripe
27: [02:12:41] * bubaphex quit (Quit: bubaphex)
28: [02:44:00] * Stomach quit (Ping timeout: 250 seconds)
29: [03:09:05] * willr quit (Quit: willr)
30: [03:09:20] * willr has joined #silverstripe
31: [03:09:27] * willr quit (Client Quit)
32: [03:12:13] * shlinx has joined #silverstripe
33: [03:14:43] <shlinx> Hi, anyone has suggestions on table name case compatibility when writing raw sql? For example 'SELECT City.ID FROM City' works on Linux but doesn't work on Windows.
34: [03:15:45] <shlinx> On Windows, it should be 'SELECT city.id FROM city' since the table name is all lowercase
35: [03:18:38] * adrexia has joined #silverstripe
36: [03:32:35] * Navid has joined #silverstripe
37: [03:33:31] <Navid> Hi All Experts! A quick question that how to interpret country code received after form submission back to its country fullname. I am using the built-in country field of silverstripe
38: [03:38:55] * janneklouman-- has joined #silverstripe
39: [03:43:45] * janneklouman-- quit (Ping timeout: 260 seconds)
40: [03:44:38] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
41: [03:45:11] <ss-helper> websites slow? what module is to blame? - https://groups.google.com/d/msg/silverstripe-dev/IqkH5UPMRuI/iEWR8tW5CQAJ
42: [03:46:01] <spronk> anyone remember the name of that really fast static site generator, i think something CWP uses it?
43: [03:46:13] <Snowman23> static publisher?
44: [03:46:18] <Snowman23> That's what CWP uses
45: [03:46:23] <spronk> nah its not an SS thing
46: [03:46:25] <spronk> CWP uses for docs maybe?
47: [03:46:35] <Snowman23> Um, the docs site is slow af
48: [03:46:37] <Snowman23> to generate
49: [03:46:44] <Snowman23> you're not thinking of a cache layer, like varnish?
50: [03:46:46] <spronk> nooo
51: [03:46:48] <spronk> like
52: [03:46:52] <spronk> it generates static sites
53: [03:46:57] <spronk> not that the generator is fast
54: [03:47:04] <Nightjar> shlinx, on windows it's case insensitive by default.
55: [03:47:29] <Snowman23> spronk: I mean, static publisher generates static sites :O. But honestly, you'll need to think of like... more keywords or something?
56: [03:47:36] <spronk> hmm
57: [03:47:42] <spronk> you build shit offline
58: [03:47:46] <spronk> generate static site
59: [03:47:57] <spronk> might have its own markup format or something? i dno
60: [03:48:00] <Snowman23> not like github pages?
61: [03:48:05] <Snowman23> that uses jeckyll
62: [03:48:06] <spronk> works in similar way i guess
63: [03:48:13] <spronk> wwtfff is it called
64: [03:48:19] <Snowman23> I don't know the thing you're talking about!
65: [03:48:24] <spronk> i thought Hugo might be it but the site looks different to what i remember
66: [03:48:26] <Snowman23> You're just describing a massive amount of software :(
67: [03:48:57] <spronk> oh
68: [03:48:59] <spronk> maybe it is hugo
69: [03:52:00] * janneklouman-- has joined #silverstripe
70: [03:53:20] <shlinx> @Nightjar, does that mean if I use 'SELECT City.ID FROM City', that'll also work on Windows?
71: [03:53:32] <shlinx> even the table name is city on Windows?
72: [03:53:32] <spronk> yeajh
73: [03:53:39] <spronk> hugo was what i was thinking of
74: [03:53:47] <Nightjar> shlinx, by the default install of MySQL on windows, yes.
75: [03:54:09] <Nightjar> it can be changed to obey case.
76: [03:54:10] <shlinx> That's great, I'll give that a try on a Windows machine. Thanks a lot guys
77: [03:55:29] <Navid> Nightjar: have you any idea about my query?
78: [03:55:55] <Nightjar> Nope
79: [03:56:02] * UncleCheese has joined #silverstripe
80: [03:56:23] <Nightjar> Dunno what you mean sorry Navid
81: [03:56:32] * janneklouman-- quit (Ping timeout: 260 seconds)
82: [03:58:19] <Navid> Nightjar: I will try to explain again :( I have a form where I am using SS CountryDropDown list. It populates all the countries by default. When I submit the form then I got the value for that field i.e. NZ and I want to translate it back to "New Zealand" for some way automatically....
83: [04:01:19] <Nightjar> Look at the docs, might be a method that does that. http://api.silverstripe.org
84: [04:03:04] <Nightjar> Then again, maybe not. I guess you'll have to find a list somewhere and parse it ¯\_(ツ)_/¯
85: [04:07:08] * willr has joined #silverstripe
86: [04:11:33] * willr quit (Ping timeout: 246 seconds)
87: [04:18:12] * kerozene quit (Ping timeout: 246 seconds)
88: [04:19:47] * kerozene has joined #silverstripe
89: [04:34:14] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
90: [04:39:30] * Stomach has joined #silverstripe
91: [04:40:08] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
92: [04:40:43] <Navid> Nightjar: I sorted it out while creating the field for the form. I got the country list by using the getSourceAsArray function and then searched the array for specific country code..
93: [04:40:56] <Navid> I have done :p
94: [04:41:03] <Nightjar> well done :)
95: [04:41:08] <Nightjar> ciao!
96: [04:41:09] * Nightjar quit (Quit: Leaving)
97: [05:00:05] * micmania1 quit (Quit: micmania1)
98: [05:09:39] * Navid quit (Quit: Page closed)
99: [05:25:44] * isaac_ has joined #silverstripe
100: [05:43:54] * DanaeNZ_ quit (Quit: TIME TO FEED)
101: [05:44:06] * Stomach quit (Quit: zzz)
102: [05:46:51] * isaac_ quit (Ping timeout: 260 seconds)
103: [06:03:28] * janneklouman-- has joined #silverstripe
104: [06:07:56] * janneklouman-- quit (Ping timeout: 252 seconds)
105: [06:16:47] * spronk quit (Quit: I may need a longer sleep timer...)
106: [06:45:17] <ss-helper> Re: websites slow? what module is to blame? - https://groups.google.com/d/msg/silverstripe-dev/IqkH5UPMRuI/L-ow5FfFCQAJ
107: [06:50:39] * helenclarko quit (Ping timeout: 268 seconds)
108: [07:04:58] * pweh has joined #silverstripe
109: [07:17:01] * wmk has joined #silverstripe
110: [07:50:15] * UncleCheese has joined #silverstripe
111: [07:53:31] * pweh quit (Ping timeout: 260 seconds)
112: [07:57:18] * pweh has joined #silverstripe
113: [08:04:28] * Stomach has joined #silverstripe
114: [08:07:07] * Stomach quit (Read error: Connection reset by peer)
115: [08:09:56] * Stomach has joined #silverstripe
116: [08:12:18] <wmk> Do you guys use .htaccess for redirecting to www and https...? Or the built in helper methods?
117: [08:14:11] <Firesphere> I use the helpers, as I don't use Apache
118: [08:14:28] <wmk> I guess that's affordable...
119: [08:23:17] * micmania1 has joined #silverstripe
120: [08:30:44] * Stomach quit (Quit: zzz)
121: [08:30:51] * pweh quit (Ping timeout: 260 seconds)
122: [09:00:13] <ss-helper> CountryDropdownField - Setting default to what is set in setEmptyString()? - http://stackoverflow.com/questions/38565172/countrydropdownfield-setting-default-to-what-is-set-in-setemptystring
123: [09:02:09] * kinglozzer has joined #silverstripe
124: [09:07:07] * janneklouman-- has joined #silverstripe
125: [09:09:03] * micmania1 quit (Quit: micmania1)
126: [09:18:52] * Shrike_Finland has joined #silverstripe
127: [09:30:14] <ss-helper> Silverstripe 3 - Filter dataobjeccts with checkboxes - http://stackoverflow.com/questions/40884491/silverstripe-3-filter-dataobjeccts-with-checkboxes
128: [09:44:23] * pweh has joined #silverstripe
129: [10:07:47] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
130: [10:15:08] * UncleCheese has joined #silverstripe
131: [10:15:22] * Azure quit (Read error: Connection reset by peer)
132: [10:16:10] * Azure has joined #silverstripe
133: [10:16:16] * trash_ has joined #silverstripe
134: [10:19:22] * Robdgreat quit (Ping timeout: 258 seconds)
135: [10:20:48] * Robdgreat has joined #silverstripe
136: [10:22:56] * ajmitch_ has joined #silverstripe
137: [10:25:44] * ajmitch quit (Ping timeout: 258 seconds)
138: [10:54:09] * Doniz has joined #silverstripe
139: [10:55:20] * pweh quit (Read error: Connection reset by peer)
140: [11:11:06] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
141: [11:51:41] * Shrike_Finland quit (Quit: Leaving.)
142: [12:18:48] * Shrike_Finland has joined #silverstripe
143: [12:40:51] * ninty9notout has joined #silverstripe
144: [12:41:09] <ninty9notout> howdy
145: [12:45:32] <slievr1> o/
146: [12:45:37] * slievr1 is now known as slievr
147: [12:54:27] <ninty9notout> \o
148: [13:19:53] * Shrike_Finland quit (Quit: Leaving.)
149: [13:49:48] * cupcake has joined #silverstripe
150: [13:58:06] <cupcake> heya all
151: [13:58:13] <slievr> ello
152: [13:58:17] <cupcake> is it possible to do a grouping in reports?
153: [14:20:27] * Shrike_Finland has joined #silverstripe
154: [14:20:44] * Shrike_Finland quit (Client Quit)
155: [14:46:40] * lerni has joined #silverstripe
156: [15:14:03] <cupcake> is it possible to do a grouping in reports?
157: [15:15:37] <ss-helper> Re: websites slow? what module is to blame? - https://groups.google.com/d/msg/silverstripe-dev/IqkH5UPMRuI/myDtEOfgCQAJ
158: [15:15:41] * r5v3rb has joined #silverstripe
159: [15:15:53] <r5v3rb> morning
160: [15:17:15] * kinglozzer quit (Read error: Connection reset by peer)
161: [15:18:24] * kinglozzer has joined #silverstripe
162: [15:43:28] <r5v3rb> kinglozzer: whatcha doin?!
163: [15:43:40] <r5v3rb> in out shaking it all about
164: [15:43:44] <kinglozzer> werkin twekin
165: [15:43:49] <kinglozzer> mainly werkin
166: [15:43:57] <kinglozzer> twerkin*
167: [15:43:58] <kinglozzer> damnit
168: [15:44:00] <r5v3rb> twekin or twerkin?
169: [15:44:03] <r5v3rb> Doh!
170: [15:44:05] <kinglozzer> :(
171: [15:44:23] <r5v3rb> heh, I’ll let you off
172: [15:54:29] <r5v3rb> json+pdf+function = layout mayhem == finished
173: [15:54:58] <r5v3rb> 8 more tests to produce = hometime == steam === cities skyline
174: [16:07:56] * helenclarko has joined #silverstripe
175: [16:30:52] <r5v3rb> eek not quite finished
176: [16:32:13] <r5v3rb> I need to work out if I always have enough items to fill a complete row with an arbitrary amount of columns - so keep addings rows with XX columns but then change the positioning if less than the original column count
177: [16:46:31] <cupcake> has anybody use this : SilverStripe GridField Groupable ?
178: [16:46:37] <cupcake> https://github.com/micschk/silverstripe-groupable-gridfield
179: [16:52:43] <r5v3rb> cupcake nope :(
180: [16:55:50] * muskie9 has joined #silverstripe
181: [16:57:15] <muskie9> anyone familiar with the cropper field module? https://github.com/willmorgan/silverstripe-cropperfield
182: [17:00:41] <ss-helper> How to deal with credentials/key files in a (reasonably) safe way - https://groups.google.com/d/msg/silverstripe-dev/k3fQr9QUxTk/upVOxojmCQAJ
183: [17:05:57] * janneklouman-- quit (Ping timeout: 256 seconds)
184: [17:09:05] <cupcake> no muskie9 we have our own custom made cropping image functionality
185: [17:12:45] <muskie9> gotcha, we've used focuspoint, but like how this one _looks_ as far as functionality... trying to get it working in a frontend form though...
186: [17:21:01] * cupcake quit (Ping timeout: 260 seconds)
187: [17:30:42] <ss-helper> Re: websites slow? what module is to blame? - https://groups.google.com/d/msg/silverstripe-dev/IqkH5UPMRuI/Ln9DyRnlCQAJ
188: [17:32:56] * kinglozzer quit ()
189: [17:45:41] * bubaphex has joined #silverstripe
190: [18:02:28] <r5v3rb> arggggggghhhhhhhhhh
191: [18:02:50] <r5v3rb> muskie9: i never got it working!
192: [18:02:56] <r5v3rb> if that helps
193: [18:03:24] <r5v3rb> muskie use Slim cropper ;) from envato I did
194: [18:03:36] <r5v3rb> muskie9: ^^
195: [18:03:41] <muskie9> lol, I'll play around with it and see what happens... do you have a link for slim cropper?
196: [18:04:00] <r5v3rb> https://codecanyon.net/item/slim-image-cropper-responsive-uploading-and-ratio-cropping-plugin/16364167
197: [18:04:09] <r5v3rb> absolutely brilliant
198: [18:04:33] <r5v3rb> worked first time, multiple uploads, ajax submission in custom ajax post
199: [18:05:21] * Doniz_ has joined #silverstripe
200: [18:06:31] <r5v3rb> muskie9: rik the programmer is also fantastic too - based in the Netherlands and very quick with support questions
201: [18:07:42] * Doniz quit (Ping timeout: 256 seconds)
202: [18:11:47] <muskie9> thnx r5v3rb, I'll check it out
203: [18:15:24] <ss-helper> Adding more uploadFile fields issue - http://stackoverflow.com/questions/40895389/adding-more-uploadfile-fields-issue
204: [18:17:32] <r5v3rb> i need to calculate 8 / 3 and get a result of 2 remainder 2 - is there a function php to do so or should I just divide by 3 and then % the answer if its not an integer?
205: [18:31:11] * bubaphex quit (Quit: bubaphex)
206: [18:37:20] * bubaphex has joined #silverstripe
207: [18:40:28] * Shrike_Finland has joined #silverstripe
208: [18:45:42] * Shrike_Finland quit (Quit: Leaving.)
209: [18:47:29] * bubaphex quit (Quit: bubaphex)
210: [18:49:36] * bubaphex has joined #silverstripe
211: [18:52:16] * lerni quit (Quit: Connection closed for inactivity)
212: [19:13:14] * Stomach has joined #silverstripe
213: [19:13:31] <muskie9> r5v3rb I was able to get both the cms and a frontend form working with the cropper field module
214: [19:13:59] <r5v3rb> excellent is it any good - can it handle min/max crop ratios?
215: [19:14:00] <muskie9> cms worked pretty much right away, frontend form took some legwork, but no module hacking which is good
216: [19:14:16] <muskie9> digging into the settings now, but I believe it can
217: [19:14:40] <r5v3rb> well, my frontend generates form fields on the fly from json strings so it needed to be super flexible :D
218: [19:15:10] <r5v3rb> so the fields are generated in <% loops %> from the json decoded arrays
219: [19:17:32] <muskie9> gotcha
220: [19:33:15] * muskie9 quit (Read error: No route to host)
221: [19:40:07] * gelignite has joined #silverstripe
222: [19:40:24] * r5v3rb quit (Quit: r5v3rb)
223: [19:47:16] * shlinx quit (Quit: Page closed)
224: [19:47:34] * janneklouman-- has joined #silverstripe
225: [19:53:44] * bubaphex quit (Quit: bubaphex)
226: [19:53:45] * DanaeNZ has joined #silverstripe
227: [19:57:38] * samsam has joined #silverstripe
228: [19:57:52] <samsam> sooo
229: [19:58:02] <Snowman23> soooooooo
230: [19:58:05] <samsam> what does DataObject::count() return when there are no records found?
231: [19:58:41] <samsam> DataObject::get()->count() I mean
232: [19:58:49] <Snowman23> Try it and see? :O
233: [19:58:52] <Snowman23> I presume it will return 0
234: [19:59:31] <samsam> i'm trying to find out by using die(var_dump());
235: [19:59:48] <samsam> but when adding objects through the gridfield, it doesn't dump on screen
236: [20:00:14] <DanaeNZ> samsam: do you have xdebug or anything?
237: [20:00:20] <DanaeNZ> oh wait
238: [20:00:26] <DanaeNZ> it should just show you in the Network tab
239: [20:00:29] <DanaeNZ> of developer tools
240: [20:00:58] <samsam> let me try that out! also, I hate xdebug :p
241: [20:01:44] * adrexia has joined #silverstripe
242: [20:02:22] <samsam> DanaeNZ: ha, you're right. Ajax
243: [20:10:46] * ninty9notout quit (Ping timeout: 260 seconds)
244: [20:14:36] * bubaphex has joined #silverstripe
245: [20:25:59] * janneklouman-- quit (Ping timeout: 256 seconds)
246: [20:30:46] <ss-helper> Re: [silverstripe-dev] How to deal with credentials/key files in a (reasonably) safe way - https://groups.google.com/d/msg/silverstripe-dev/k3fQr9QUxTk/MsHkCkzyCQAJ
247: [20:40:22] * muskie9 has joined #silverstripe
248: [20:44:01] * trash_ quit (Ping timeout: 260 seconds)
249: [20:44:04] * Stomach quit (Quit: bye)
250: [20:52:29] * Stomach has joined #silverstripe
251: [20:55:50] * micmania1 has joined #silverstripe
252: [20:57:28] * janneklouman-- has joined #silverstripe
253: [21:06:55] * trash_ has joined #silverstripe
254: [21:11:21] * micmania1 quit (Quit: micmania1)
255: [21:12:48] * muskie9 quit (Read error: Connection reset by peer)
256: [21:13:02] * micmania1 has joined #silverstripe
257: [21:15:47] <ss-helper> Re: [silverstripe-dev] How to deal with credentials/key files in a (reasonably) safe way - https://groups.google.com/d/msg/silverstripe-dev/k3fQr9QUxTk/tzn_PNv0CQAJ
258: [21:21:17] * bubaphex_ has joined #silverstripe
259: [21:21:18] <ss-helper> bubaphex_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
260: [21:21:18] * bubaphex quit (Read error: Connection reset by peer)
261: [21:25:14] <samsam> when setting a url_handler on some page's controller and assigning it to a function as follows: $url_handlers = array("$Category/$Product" => "someAction");
262: [21:25:46] <samsam> is it normal behaviour that the function is executed even though the parameters are not entered in the URL?
263: [21:26:06] * micmania1 quit (Quit: micmania1)
264: [21:26:22] * Jakx has joined #silverstripe
265: [21:26:31] <samsam> domain.com/page/ is the root. domain.com/page/toys/cars is an example when the action should be executed
266: [21:26:34] <Jakx> yo
267: [21:26:45] <Jakx> How goes SS irc?
268: [21:27:03] <samsam> as in, how helpful?
269: [21:27:32] <Jakx> Aha, no, you don't get to judge yourselves on that :P
270: [21:27:55] <Jakx> But then, who am I to say.
271: [21:28:15] <Jakx> I was more meaning more like, how to each of your fair?
272: [21:28:42] <Jakx> fare*
273: [21:28:58] <samsam> how to each of your fare? sorry rephrase that? :p
274: [21:29:24] <Jakx> This is not going as I anticipated.
275: [21:29:55] <Jakx> lol
276: [21:30:00] <Jakx> Aaanyway.
277: [21:30:13] <Jakx> Is there a way to DataList::sort() with lowercase values?
278: [21:30:33] <Jakx> I.e Page::get()->sort('title');
279: [21:35:16] <DanaeNZ> Jakx: why does it need to be lowercase?
280: [21:35:21] <samsam> I was wondering the same
281: [21:36:14] <Jakx> DanaeNZ, I'm passing sort paramters via get var, to create a rudamentary API. I don't want to force the end consumer to have exact case.
282: [21:36:28] <Firesphere> Then just use ucfirst
283: [21:36:37] <Firesphere> also, passing get parameters into a query???
284: [21:37:01] <Firesphere> Or do a lowercase matching on the object db properties, and take that key
285: [21:37:04] <Jakx> Firesphere, They're being cleansed. UCfirst will work on all fields that aren't camelcased
286: [21:37:24] <Jakx> Firesphere, aaah, yeah nice, that's a decent idea. I'll give it a shot.
287: [21:40:04] <DanaeNZ> A field map is a good idea anyway, it will also filter out nonsense or fields you don't want to be able to sort by
288: [21:42:42] * UncleCheese has joined #silverstripe
289: [21:59:32] <Jakx> Firesphere, singleton('Page')->toMap() isn't giving me all the available fields, whereas Page::get()->First()->toMap() is. Do you happen to know why?
290: [22:00:52] <Firesphere> You want DataObject::database_fields('Page', false);
291: [22:01:22] <Firesphere> Instead of actually querying the database
292: [22:03:17] * bubaphex_ quit (Quit: bubaphex_)
293: [22:04:48] <Jakx> Firesphere, cool, so that gives me the other side of the coin. And still not all the fields available in the Page::get()->First()->toMap()
294: [22:04:57] <Jakx> hmmm
295: [22:05:17] <Firesphere> toMap() gives you an SS_List of the database fields with their values
296: [22:06:09] <Firesphere> database_fields() should give you a list of available fields and their type, how can you have database fields that are not in $db??
297: [22:07:28] <Jakx> Firesphere, I think that's the point, it gives me the list of available fields in the table for that class, so it doesn't include fields from extended classes, and thus, doesn't represent all of the available sortable fields.
298: [22:07:36] <Jakx> If I understand correctly.
299: [22:07:42] <Firesphere> Ah, right
300: [22:07:52] * Navid has joined #silverstripe
301: [22:07:54] <Firesphere> You need to specify what class you exactly want.
302: [22:08:12] <Jakx> Sweet, I'll see what I can come up with.
303: [22:08:14] <Firesphere> OOf course getting the fields from Page, won't give you the fields from it's inheriting classes
304: [22:08:22] <Firesphere> as those classes are lower hierarchy
305: [22:10:51] * Doniz_ quit (Remote host closed the connection)
306: [22:11:24] * Doniz has joined #silverstripe
307: [22:16:01] * Doniz quit (Ping timeout: 250 seconds)
308: [22:29:15] * micmania1 has joined #silverstripe
309: [22:32:28] * trash__ has joined #silverstripe
310: [22:32:28] <ss-helper> trash__: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
311: [22:33:06] * trash_ quit (Ping timeout: 260 seconds)
312: [22:45:49] <ss-helper> Re: [silverstripe-dev] How to deal with credentials/key files in a (reasonably) safe way - https://groups.google.com/d/msg/silverstripe-dev/k3fQr9QUxTk/DujJUPb5CQAJ
313: [22:53:26] <trash__> any idea how to autoload traits?
314: [22:54:04] <trash__> I get "Fatal error: Trait 'BreadCrumb' not found in ............"
315: [22:54:29] <trash__> I have executed flush=all but this does not help
316: [23:00:01] * ss-helper quit (Remote host closed the connection)
317: [23:00:18] * ss-helper has joined #silverstripe
318: [23:03:52] * Tron has joined #silverstripe
319: [23:04:28] <Tron> Hey guys how would i write a piece of yaml only id my ss environment was set to dev
320: [23:06:25] <helenclarko> Come again.
321: [23:06:30] * DanaeNZ quit (Remote host closed the connection)
322: [23:07:06] * DanaeNZ has joined #silverstripe
323: [23:10:54] <samsam> Tron: do you want to change your ss environment setting?
324: [23:11:38] * DanaeNZ quit (Ping timeout: 258 seconds)
325: [23:14:17] <Tron> I want to turn ssl off if I am on dev and be able to push stuff to live and forgot about the ssl
326: [23:14:26] <Tron> I think ---only
327: [23:14:51] <Tron> environment_type: 'live'---
328: [23:15:06] <Tron> then my yaml to turn off ssl redirection will work?
329: [23:15:45] <Tron> I think I just need to listen to a yaml god talk about yaml
330: [23:25:12] <Firesphere> You can't do that in YML
331: [23:25:40] <Firesphere> In your _config.php just do if(Director::isLive()) { Director::forceSSL; }
332: [23:25:53] * bubaphex has joined #silverstripe
333: [23:31:04] * DanaeNZ has joined #silverstripe
334: [23:33:11] * bubaphex quit (Quit: bubaphex)
335: [23:38:07] <Tron> Hmmm Firesphere appreciate the help. But you absolutely can do it in yaml
336: [23:38:25] <Tron> --- Only: environment_type: 'dev' --- CwpControllerExtension: ssl_redirection_force_domain: false ssl_redirection_enabled: false
337: [23:43:00] * Stomach quit (Quit: zzz)
338: [23:45:36] <samsam> return $this->Pages()->Link('foo');
339: [23:45:56] <samsam> when Pages() is ManyManyList
340: [23:46:20] <samsam> how do you get the right one?
341: [23:46:28] <Tron> @Firespere apologies, cant be done all in yaml, got a little ahead of myself
342: [23:55:23] <Tron> So is there really no way in yaml to check what our environment type is? and the run some more yaml if it matches our environment?
343: [23:56:39] <Jakx> Tron, I would say no. And I would say it's because that doesn't seem like an ideal situation. If you have local build requirements and tools, they should be effectively abrastracted from the production dependancies.
344: [23:57:53] <Jakx> If you moved your development "tools" to another module, then you can comfortably include the yml needed.

These logs were automatically created by ss-log on irc.freenode.net.