#silverstripe IRC Log

IRC log for 20 September 2016

All timestamps are in UTC.

1: [00:00:02] * ss-helper quit (Remote host closed the connection)
2: [00:00:15] * ss-helper has joined #silverstripe
3: [00:00:19] * DanaeNZ quit (Ping timeout: 255 seconds)
4: [00:03:42] * DanaeNZ has joined #silverstripe
5: [00:17:29] * DanaeNZ quit (Remote host closed the connection)
6: [00:18:06] * DanaeNZ has joined #silverstripe
7: [00:22:14] * DanaeNZ quit (Ping timeout: 250 seconds)
8: [00:22:15] * UncleCheese quit (Read error: Connection reset by peer)
9: [00:46:09] * muskie9 has joined #silverstripe
10: [00:46:32] * Hailwood quit (Remote host closed the connection)
11: [00:50:17] * Hailwood has joined #silverstripe
12: [00:50:49] <Hailwood> Hey folks
13: [00:50:55] <ss23> hi Hailwood
14: [00:51:03] <muskie9> Hailwood o/
15: [00:52:07] <Hailwood> Does anyone know if there's something like stripecon in NZ or AUS?
16: [00:52:32] <muskie9> dunno, I'm US
17: [00:53:24] <Hailwood> muskie9, Lucky you, all the good conferences!
18: [00:53:48] <muskie9> if by good you mean worderp this and derpal that 😆
19: [00:54:11] <muskie9> there are some good php conferences, unfortunately we're so busy I don't get to go often
20: [01:00:04] <ss-helper> Silverstripe: Cleaning up URLs - http://stackoverflow.com/questions/39584132/silverstripe-cleaning-up-urls
21: [01:07:13] * micmania1 quit (Quit: micmania1)
22: [01:10:43] * Stomach quit (Quit: zzz)
23: [01:14:35] * Stomach has joined #silverstripe
24: [01:16:25] * DanaeNZ has joined #silverstripe
25: [01:21:22] * Phlunk3 has joined #silverstripe
26: [01:24:04] * _longines quit (Ping timeout: 240 seconds)
27: [01:27:04] * _longines has joined #silverstripe
28: [01:29:02] * micmania1 has joined #silverstripe
29: [01:30:36] * spronk quit (Quit: I may need a longer sleep timer...)
30: [01:33:14] * spronk has joined #silverstripe
31: [01:47:43] * DanaeNZ quit (Remote host closed the connection)
32: [01:50:11] * Hailwood quit (Remote host closed the connection)
33: [01:55:56] * DanaeNZ has joined #silverstripe
34: [02:11:27] * Stomach quit (Quit: zzz)
35: [02:21:24] * Stomach has joined #silverstripe
36: [02:30:40] <DanaeNZ> I fly out on Friday, omgggg
37: [02:30:48] <ss23> I fly out on Thursday
38: [02:30:53] <ss23> DanaeNZ: ARE YOU EXCITED?
39: [02:30:53] <DanaeNZ> everyone flying
40: [02:30:59] <DanaeNZ> I AM NERVOUS AS FUCK
41: [02:31:03] <DanaeNZ> gonna hurl
42: [02:31:07] <ss23> heh
43: [02:31:08] <DanaeNZ> nah I'm excited
44: [02:31:11] <ss23> DanaeNZ: ganbettene!
45: [02:31:22] <DanaeNZ> arigatouuuu
46: [02:31:29] <ss23> xD
47: [02:31:39] <DanaeNZ> I CAN DO IT
48: [02:31:41] <DanaeNZ> aghh
49: [02:31:45] <ss23> My little brother messed up while we were there. Waitress hands over his meal -- "GOMENASAI"
50: [02:31:55] <ss23> she didn't even flinch, lol, must get stupid white people all the time
51: [02:33:08] <DanaeNZ> lmao
52: [02:33:18] <DanaeNZ> I feel like you get a certain amount of "tourist exceptions"
53: [02:33:26] <DanaeNZ> like, oh they are just a tourist
54: [02:33:31] <ss23> mm
55: [02:39:40] <Audlex> what would prevent a page from rendering and give me the default "Getting Started" page?
56: [02:39:43] <Audlex> its doing my head in
57: [02:39:55] <ss23> What does it render instead?
58: [02:40:15] <Audlex> Just gives me the "Getting Started" page
59: [02:40:24] <Audlex> All other templates are fine
60: [02:40:41] <DanaeNZ> Audlex: routes, or you're missing a Controller?
61: [02:41:17] <DanaeNZ> Audlex: Maybe you extended Controller instead of ContentController / Page_Controller
62: [02:42:17] <Audlex> You are 100% correct! Thank you so much. I knew it would be something stupid -_-
63: [02:58:25] * Hailwood has joined #silverstripe
64: [03:13:47] * spronk quit (Quit: I may need a longer sleep timer...)
65: [03:15:32] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
66: [03:16:51] * spronk has joined #silverstripe
67: [04:46:56] * Phlunk3 quit (Quit: Leaving)
68: [04:49:27] <Hailwood> If you have a CheckboxField::create() call - can you set an attribute on the containing div?
69: [04:56:07] <Jakx> Hailwood, as far as I'm aware, you'll need to use your own template.
70: [04:56:50] <Hailwood> That is annoying
71: [04:57:45] <Jakx> Hailwood, yeah the default FormField template is quite frustrating at times.
72: [04:58:36] <Hailwood> Jakx, I need to hide the field by default and just show it with Javascript, but of course I can't just do ->setAttribute('style', 'display: none')
73: [05:00:25] <Jakx> Hailwood, the fieldholder div inherits the ExtraClasses, maybe try and achieve it with that if you're adverse to overriding/extending?
74: [05:01:01] <Hailwood> Jakx, That's not a bad idea, thanks.
75: [05:05:29] * Hailwood quit (Remote host closed the connection)
76: [05:21:40] <DanaeNZ> Guh
77: [05:21:51] <DanaeNZ> I need to select the next upcoming events (pages)
78: [05:22:00] <DanaeNZ> Each Event has_many Times
79: [05:22:17] <DanaeNZ> I need to show the events in order of the next upcoming time
80: [05:41:55] * wmk_ has joined #silverstripe
81: [05:46:50] <DanaeNZ> oo I figured it out
82: [05:52:51] * Jakx quit (Read error: Connection reset by peer)
83: [05:54:29] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
84: [06:02:03] * ahr3n quit (Ping timeout: 240 seconds)
85: [06:04:04] * Mike123_ has joined #silverstripe
86: [06:26:46] * adrexia has joined #silverstripe
87: [06:31:03] * DanaeNZ quit (Quit: TIME TO FEED)
88: [06:31:07] * Eliseth has joined #silverstripe
89: [06:35:04] * wmk_ is now known as wmk
90: [06:40:23] * Stomach quit (Ping timeout: 265 seconds)
91: [06:48:02] * micmania1 quit (Quit: micmania1)
92: [07:30:10] <ss-helper> Unable to save File to database from front end form in SilverStripe 4 - http://stackoverflow.com/questions/39588063/unable-to-save-file-to-database-from-front-end-form-in-silverstripe-4
93: [07:30:31] * wmk quit (Read error: Connection reset by peer)
94: [07:33:51] * spronk quit (Quit: I may need a longer sleep timer...)
95: [07:40:31] * Shrike_Finland has joined #silverstripe
96: [07:55:51] * L03TJ3 has joined #silverstripe
97: [08:04:34] * kinglozzer has joined #silverstripe
98: [08:08:33] * spronk has joined #silverstripe
99: [08:11:23] * janneklouman-- has joined #silverstripe
100: [08:16:49] * slievr has joined #silverstripe
101: [08:17:15] <slievr> morning all o/
102: [08:20:12] * L03TJ3 quit (Ping timeout: 240 seconds)
103: [08:20:58] <swaiba> slievr mornin
104: [08:44:18] * spronk quit (Quit: I may need a longer sleep timer...)
105: [09:11:25] * pweh has joined #silverstripe
106: [09:12:27] * Shrike_Finland quit (Quit: Leaving.)
107: [09:23:39] * micmania1 has joined #silverstripe
108: [09:36:10] * Stomach has joined #silverstripe
109: [10:08:42] * Stomach quit (Quit: zzz)
110: [10:16:18] * Shrike_Finland has joined #silverstripe
111: [10:30:26] * giovdk has joined #silverstripe
112: [10:31:14] <giovdk> Hello, is it possible to have a custom validator for a Page only for one specific field and then fallback to the default one for all the others?
113: [10:33:10] * jbrungar quit (Ping timeout: 244 seconds)
114: [10:33:18] * jbrungar has joined #silverstripe
115: [10:33:34] <giovdk> mh actually, is there a validator at all for page?
116: [10:35:39] <swaiba> giovdk yes you can make custom validator
117: [10:46:59] * Shrike_Finland quit (Quit: Leaving.)
118: [10:49:37] * Shrike_Finland has joined #silverstripe
119: [11:03:47] * Shrike_Finland quit (Quit: Leaving.)
120: [11:08:27] * Shrike_Finland has joined #silverstripe
121: [11:27:02] * Shrike_Finland quit (Quit: Leaving.)
122: [11:45:48] * kinglozzer quit ()
123: [11:57:03] * micmania1 quit (Quit: micmania1)
124: [12:03:29] * swaiba quit (Remote host closed the connection)
125: [12:22:31] * UndefinedOffset has joined #silverstripe
126: [12:25:01] * Shrike_Finland has joined #silverstripe
127: [12:44:49] * giovdk quit (Quit: Page closed)
128: [12:48:54] * shellbac1pacific has joined #silverstripe
129: [12:51:21] * shellbackpacific quit (Ping timeout: 248 seconds)
130: [12:52:20] * kinglozzer has joined #silverstripe
131: [12:55:47] * Shrike_Finland quit (Quit: Leaving.)
132: [13:02:52] * shellbac1pacific quit (Ping timeout: 255 seconds)
133: [13:03:37] * pweh quit (Read error: Connection reset by peer)
134: [13:05:54] * shellbackpacific has joined #silverstripe
135: [13:15:49] * r3v3rb has joined #silverstripe
136: [13:15:52] <r3v3rb> hello
137: [13:16:22] <r3v3rb> whats the best way to return only a few fields from a DO in a DOS as JSON? I only need two fields...
138: [13:16:32] <r3v3rb> a couple even*
139: [13:17:28] <r3v3rb> i assume its just loop and create a new DOS and DO from each in the original - but wonder if there is a better built in?
140: [13:24:37] * Shrike_Finland has joined #silverstripe
141: [13:37:27] * Shrike_Finland quit (Quit: Leaving.)
142: [13:46:32] <r3v3rb> hmm, so close - ArrayList > ArrayData with nested ArrayList > ArrayData I get the first level ArrayList and Data as JSON but the nested ones return class: ArrayList
143: [13:46:42] * Mike123_ quit (Ping timeout: 240 seconds)
144: [13:47:32] <r3v3rb> i need to parse the inner ArrayList too somehow {"items":[{"Title":"Corporate","Products":{"class":"ArrayList"}},{"Title":"Retail","Products":{"class":"ArrayList"}},{"Title":"Restaurant","Products":{"class":"ArrayList"}}]}
145: [13:48:32] <slievr> isn't toNestedArray a thing?
146: [13:48:37] <slievr> then you could json parse it
147: [13:49:35] <r3v3rb> slievr, it is?
148: [13:49:49] <slievr> http://api.silverstripe.org/3.3/class-ArrayList.html#_toNestedArray
149: [13:49:58] <slievr> went diggin'
150: [13:51:24] <r3v3rb> slievr, still returns the inner arraylist as before class: arraylist
151: [13:53:20] <r3v3rb> i need toNestedArrayRecursively() that doesn't seem to exist ;)
152: [13:57:26] <slievr> could modify the toNestedArray method to add an extra step
153: [13:57:29] <slievr> untested
154: [13:57:32] <slievr> http://kopy.io/jVM6o
155: [13:59:18] <slievr> I don't mean modify core (just to clarify)
156: [14:03:21] * ^pH has joined #silverstripe
157: [14:14:05] <r3v3rb> or i could just write the json out as I parse each object anyway! easier...
158: [14:14:13] <r3v3rb> but prone to error!
159: [14:16:37] <slievr> Whatever works best for you =D
160: [14:29:09] <r3v3rb> :) slievr yup
161: [14:29:36] <r3v3rb> just need to test for each arraylists end now to get the closing braces set properly and done
162: [14:36:11] * muskie9 has joined #silverstripe
163: [14:36:35] * muskie9 quit (Client Quit)
164: [14:43:41] * Shrike_Finland has joined #silverstripe
165: [15:08:25] * kinglozzer quit (Ping timeout: 248 seconds)
166: [15:11:15] * kinglozzer has joined #silverstripe
167: [15:12:30] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
168: [15:20:20] * flowsn has joined #silverstripe
169: [15:32:47] <r3v3rb> how can I get the first item in a many_many relation in a controller
170: [15:33:03] <r3v3rb> $this->ManyMany()->First() i thought but ut fails
171: [15:33:40] <slievr> that's it
172: [15:35:40] <slievr> getting any errors?
173: [15:35:56] <r3v3rb> non-object even when I know they exist... unless i'm having a moment here
174: [15:40:28] <r3v3rb> ugh, someone deleted the previewimages!
175: [15:40:35] <r3v3rb> bloody client
176: [15:41:08] <slievr> always fun. =D
177: [15:46:00] * UndefinedOffset quit (Quit: Leaving.)
178: [15:46:33] * UndefinedOffset has joined #silverstripe
179: [15:49:33] * flowsn quit (Ping timeout: 240 seconds)
180: [16:09:46] * muskie9 has joined #silverstripe
181: [16:29:34] * kinglozzer quit ()
182: [16:35:01] * slievr quit (Quit: Leaving.)
183: [16:50:38] * muskie9 quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
184: [17:07:20] * muskie9 has joined #silverstripe
185: [17:14:10] * janneklouman-- quit (Ping timeout: 260 seconds)
186: [17:27:18] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
187: [17:28:54] * gelignite has joined #silverstripe
188: [17:38:11] * UndefinedOffset quit (Quit: Leaving.)
189: [17:41:14] * UndefinedOffset has joined #silverstripe
190: [17:45:20] * Azure has joined #silverstripe
191: [17:46:54] * Azure|dc quit (Ping timeout: 265 seconds)
192: [18:11:20] * UndefinedOffset quit (Quit: Leaving.)
193: [19:07:59] * Shrike_Finland quit (Quit: Leaving.)
194: [19:23:31] * BrewNaked has joined #silverstripe
195: [19:34:13] * Stomach has joined #silverstripe
196: [19:47:39] * UndefinedOffset has joined #silverstripe
197: [20:17:54] <r3v3rb> hmm, got an error with yaml translation in @stable framework with 2.1 silverstripe-comments
198: [20:21:32] * UndefinedOffset quit (Quit: Leaving.)
199: [20:29:47] * Stomach quit (Quit: zzz)
200: [20:30:31] * Stomach has joined #silverstripe
201: [20:33:34] <r3v3rb> ugh, worse no lang.yml files being used for translated site
202: [20:34:18] <r3v3rb> [User Error] Uncaught InvalidArgumentException: Unable to parse string: Malformed inline YAML string (').
203: [20:34:41] <r3v3rb> everytime I try and view a translated page that uses a _t in the controller
204: [20:36:25] <r3v3rb> anyone?
205: [20:47:29] <r3v3rb> ok, fixed that, now for the lang files
206: [20:53:17] * Stomach quit (Quit: zzz)
207: [20:54:39] * Stomach has joined #silverstripe
208: [21:02:11] * adrexia_ has joined #silverstripe
209: [21:10:50] * Hailwood has joined #silverstripe
210: [21:20:38] * muskie9 has joined #silverstripe
211: [21:24:07] <r3v3rb> it.yml is broken in framework missing lots of enclosing quotes... Can I do a pull request?
212: [21:24:26] <r3v3rb> or is it better somenhere else - transifex?
213: [21:24:56] * r3v3rb quit (Quit: Leaving)
214: [21:25:56] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
215: [21:35:35] * ahr3n has joined #silverstripe
216: [21:37:02] * muskie9 has joined #silverstripe
217: [21:39:13] * BrewNake_ has joined #silverstripe
218: [21:39:13] * BrewNaked quit (Read error: Connection reset by peer)
219: [21:46:41] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
220: [21:54:33] * Stomach quit (Ping timeout: 240 seconds)
221: [21:56:57] * DanaeNZ has joined #silverstripe
222: [21:57:08] * micmania1 has joined #silverstripe
223: [22:07:11] * muskie9 has joined #silverstripe
224: [22:09:03] * AlphaCactus_ has joined #silverstripe
225: [22:09:42] * cloph is now known as cloph_away
226: [22:10:31] * AlphaCactus quit (Ping timeout: 255 seconds)
227: [22:10:43] * AlphaCactus_ is now known as AlphaCactus
228: [22:11:50] * micmania1 quit (Quit: micmania1)
229: [22:19:41] * micmania1 has joined #silverstripe
230: [22:20:03] * guzzlefry has joined #silverstripe
231: [22:22:12] * Stomach has joined #silverstripe
232: [22:26:19] * Stomach quit (Client Quit)
233: [22:37:47] * Stomach has joined #silverstripe
234: [22:48:50] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
235: [23:00:06] * Azure quit (Quit: Oops.)
236: [23:09:43] * UncleCheese has joined #silverstripe
237: [23:20:09] <muskie9> anyone else upgrade to sierra???
238: [23:42:44] * BackEndCoder quit (Excess Flood)
239: [23:44:22] * BackEndCoder has joined #silverstripe
240: [23:57:54] <muskie9> userforms, y u so buggy
241: [23:59:25] * BrewNake_ quit (Remote host closed the connection)
242: [23:59:58] * BrewNaked has joined #silverstripe

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