#silverstripe IRC Log

IRC log for 27 November 2014

All timestamps are in UTC.

1: [00:00:01] <JeremyRoundill> Looks crazy, yo
2: [00:01:16] <JeremyRoundill> Why'd Fifflaren retire.
3: [00:01:21] <JeremyRoundill> I'm not even up with the pro scene :D
4: [00:02:24] <Kingy> was dying too muh
5: [00:02:24] <Kingy> much
6: [00:02:33] <JeremyRoundill> Ahh
7: [00:02:34] <JeremyRoundill> Lame
8: [00:12:16] * muskie9 has joined #silverstripe
9: [00:12:26] * pixelboy quit (Quit: Leaving)
10: [00:12:30] * _muskie9_ quit (Ping timeout: 265 seconds)
11: [00:14:32] * terryapodaca quit (Quit: Leaving.)
12: [00:23:31] <Ryan-Toast> Wish I could tell clients to go back to the shitty devs who made their shitty websites.
13: [00:25:12] <Colin[pi]> Ryan-Toast: ?
14: [00:25:57] <Ryan-Toast> just clients who moved hosting to us, so we ahave to fix all the fucking bugs in shitty legacy code.
15: [00:26:00] <Ryan-Toast> RABB;E RABB;LE
16: [00:26:15] <Colin[pi]> Ryan-Toast: mm I know that feel
17: [00:26:27] <Ryan-Toast> EVERYTIME I RELOAD THE PAGE THERES AUTO PLAYING MUSIC! SHUT THE FUCK UP!!!!
18: [00:27:38] <Colin[pi]> Ryan-Toast: I once worked on a podiatry site which had an embedded "I'M WALKING ON SUNSHINE, WOAAH OHH!" midi
19: [00:27:50] <Colin[pi]> the owner was the ONLY person who liked it
20: [00:27:58] <Colin[pi]> he used to leave it open and on loop in the office
21: [00:35:51] <guzzlefry> Colin[pi]: http://www.themostamazingwebsiteontheinternet.com/ I like this song.
22: [00:37:20] <Colin[pi]> guzzlefry: oh god I think I just threw up in my mouth a little
23: [00:37:37] <guzzlefry> pft
24: [00:37:39] <guzzlefry> that website is amazing
25: [00:39:16] <JeremyRoundill> This one's proudly hosted on my server
26: [00:39:16] <JeremyRoundill> http://cheaptoaster.info/
27: [00:39:44] <guzzlefry> noice!
28: [00:40:27] <JeremyRoundill> I clicked the Mel Gibson,.
29: [00:40:31] <JeremyRoundill> It took me here: http://www.cccoe.k12.ca.us/bats/good.htm
30: [00:40:33] <JeremyRoundill> Bat facts!
31: [00:57:49] <antmas> Colin[pi]: this is pretty good http://safeshare.tv/w/IEgQqEQmpJ
32: [00:59:19] <Colin[pi]> antmas: lol
33: [00:59:33] <Colin[pi]> but.. but.. is it CGI? I JUST DONT KNOW WHAT TO BELIEVE ANY MORE
34: [01:00:00] <antmas> dat honda pain
35: [01:00:02] * Stomach quit (Read error: Connection reset by peer)
36: [01:00:56] <Colin[pi]> antmas: the last few shots kinda look a bit fake
37: [01:01:07] <antmas> they probably will be
38: [01:01:27] * Stomach has joined #silverstripe
39: [01:08:21] * antmas_ has joined #silverstripe
40: [01:10:25] * antmas quit (Ping timeout: 246 seconds)
41: [01:10:41] * spekulatius has joined #silverstripe
42: [01:10:48] * antmas_ is now known as antmas
43: [01:12:15] <antmas> o.O http://io9.com/the-new-reboot-series-is-still-happening-and-now-has-a-1663904087
44: [01:12:19] <antmas> dat nostalgia
45: [01:15:40] * [3dgoo] quit (Ping timeout: 246 seconds)
46: [01:18:02] * Tanger has joined #silverstripe
47: [01:23:50] <Colin[pi]> my fucking internet... (╯°□°)╯︵ ┻━┻
48: [01:23:57] <Colin[pi]> so slow today
49: [01:24:24] <simon_w|work> Colin[pi], I'm blaming you!
50: [01:24:33] <Colin[pi]> simon_w|work: you too?
51: [01:24:44] <simon_w|work> Yeah :(
52: [01:24:59] <Colin[pi]> simon_w|work: any problems with some sites responding, others not?
53: [01:25:19] <simon_w|work> Oh, Amazon's CDN is down too
54: [01:26:51] <JeremyRoundill> Wait wut
55: [01:27:03] <JeremyRoundill> Actually down, or just some network between you and them is down?
56: [01:27:15] <Olliepop> "We are currently investigating increased error rates for DNS queries for CloudFront distributions."
57: [01:28:15] <micmania1> ┬─┬ノ( º _ ºノ)
58: [01:29:37] * simon_w|air has joined #silverstripe
59: [01:31:34] * ajshort has joined #silverstripe
60: [01:31:39] * ajshort quit (Client Quit)
61: [01:33:24] <Ryan-Toast> How can I add specific fields to be included by the search function?
62: [01:33:34] <Ryan-Toast> e.g a SKU field
63: [01:35:04] <Ryan-Toast> *crickets*
64: [01:35:34] <Ryan-Toast> http://i.imgur.com/nv4hM.gif
65: [01:38:26] <Stomach> Ryan-Toast - which search fields
66: [01:39:45] <Olliepop> Ryan-Toast: You could copy the results from ContentControllerSearchExtension.php into your Page.php and change the value of the 'Results' key in $data to whatever query you want
67: [01:42:41] <Ryan-Toast> Stomach: Just a custom $db field, Varchar or Text.
68: [01:42:59] <micmania1> Ryan-Toast: Your SKU field needs to be on SiteTree. You need to overload the current fulltext index on SiteTree. You need to battle your way through hell.
69: [01:43:14] <Ryan-Toast> fucks sake.
70: [01:43:31] <Ryan-Toast> nothing today can just be simple, can it.
71: [01:47:45] <Ryan-Toast> Olliepop: Could you elborate on that a little more, please?
72: [01:48:38] * helenclarko has joined #silverstripe
73: [01:49:21] * helenclarko quit (Client Quit)
74: [01:49:23] <Stomach> Ryan-Toast - install lucene
75: [01:49:34] <Stomach> :P
76: [01:49:56] <Stomach> Ryan-Toast - coming to SS meetup today?
77: [01:51:25] <Ryan-Toast> Stomach: NAh, Thursday is date night.
78: [01:51:33] <Stomach> date with Stevie?
79: [01:51:36] * Stomach flutters eyelashes
80: [01:51:41] <Ryan-Toast> :P
81: [01:51:50] <Stomach> ooo I just got tongued
82: [01:51:52] <Stomach> this date is going well
83: [01:52:11] <Ryan-Toast> http://i.imgur.com/3T2sn.jpg
84: [01:52:20] <Stomach> hahaha
85: [01:52:33] <Ryan-Toast> Thursday is a stupid time for a meetup.
86: [01:52:42] <Ryan-Toast> Why not friday at a pub somewhere?
87: [01:52:54] <simon_w|air> Or Wednesday, like every other one
88: [01:53:08] <Ryan-Toast> Can’t Wednesday either, have hockey.
89: [01:53:48] <Stomach> tongue hockey
90: [01:53:51] <Stomach> with Stevie
91: [01:53:53] <Stomach> amirite
92: [01:54:14] <Olliepop> Ryan-Toast: Untested but if you put this in Page.php it will override default search to only search Products and their Title/SKUCode properties http://pastebin.com/px4R8Rkb
93: [01:54:51] <Ryan-Toast> Olliepop: What if I still want to search the content as well?
94: [01:55:41] <Ryan-Toast> Could I just add in another parameter there?
95: [01:55:51] <Olliepop> Ryan-Toast: You could chuck in another filterAny and merge the DataLists
96: [01:55:57] * Andrew_ has joined #silverstripe
97: [01:56:11] <Olliepop> I know what you're trying to do, i'm not sure how to simply add a field to search sorry :(
98: [01:56:44] <Olliepop> I would probably write my own search, or override the default search with custom queries like the pastebin
99: [01:57:48] <Olliepop> Sorry I should point out that the code from that pastebin should go in Page_Controller in Page.php
100: [01:59:09] <Ryan-Toast> Olliepop: Wow, that actually works for the fields :P
101: [01:59:40] <simon_w|air> Ryan-Toast, that gif is freaky
102: [01:59:40] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
103: [02:00:10] <Ryan-Toast> simon_w|air: which one?
104: [02:00:20] <simon_w|air> Ryan-Toast, the one I can still see on my screen
105: [02:00:28] <Andrew_> Hi, I have a question about a SwipeStripe problem I am having, I have put in the downloadables addon, and I am just trying to reference it in the Receipt email, I have it showing on the Account_Pge_order.ss, but when I copy the code to Order_ReceiptEmail.ss the "if Downloadables" stops it, and as far as I can see it is call all the same parts of the code.
106: [02:00:30] <Ryan-Toast> simon_w|air: http://i.imgur.com/3T2sn.jpg
107: [02:00:47] * Ryan-Toast has joined #silverstripe
108: [02:01:01] <Colin[pi]> lol wat
109: [02:01:03] <Ryan-Toast> That feeling when you get back into the room: http://i.imgur.com/3T2sn.jpg
110: [02:01:08] <simon_w|air> Turning that into a ban is actually less typing
111: [02:01:38] <Ryan-Toast> Seriously though, having images display on your IRC is a dangerous game.
112: [02:02:03] <simon_w|air> I don't on simon_w. Settings must not have synced properly
113: [02:02:08] <simon_w|air> Oh, different Textual version
114: [02:03:00] <Colin[pi]> http://i.imgur.com/Q9t4HnM.gif
115: [02:03:04] * tsbdeveloperadmi has joined #silverstripe
116: [02:03:11] * tsbdeveloperadmi is now known as unsignedint
117: [02:03:42] * elgrodo quit (Ping timeout: 264 seconds)
118: [02:03:46] * simon_w|air quit (Quit: Textual IRC Client: www.textualapp.com)
119: [02:03:57] * UncleCheese has joined #silverstripe
120: [02:04:18] * simon_w|air has joined #silverstripe
121: [02:04:40] <Andrew_> Hi, I have a question about a SwipeStripe problem I am having, I have put in the downloadables addon, and I am just trying to reference it in the Receipt email, I have it showing on the Account_Pge_order.ss, but when I copy the code to Order_ReceiptEmail.ss the "if Downloadables" stops it, and as far as I can see it is call all the same parts of the code.
122: [02:05:16] * simon_w|air quit (Client Quit)
123: [02:06:01] * simon__w has joined #silverstripe
124: [02:06:11] <Stomach> Andrew_ - can you paste the entire contents of the Order_ReceiptEmail.ss file for us to look at?
125: [02:06:25] <Kingy> new logo \o/
126: [02:06:38] * simon__w is now known as simon_w|air
127: [02:07:02] <Andrew_> http://pastebin.com/i1KKF0Ev
128: [02:07:48] <Andrew_> the <% include OrderDownloads %> works fine in the Account_Page_order.ss but not on the receipt or notification
129: [02:11:34] <Stomach> I think that the receipt email gets it template populated with stuff if I remember correctly
130: [02:11:40] <Stomach> so the downloads may not be in the template
131: [02:12:32] <Stomach> yeah it passes the order into itself
132: [02:12:39] <Stomach> whats the OrderDownloads template look like?
133: [02:14:02] <Stomach> you might need to do <% include OrderDownloads Downloads=$Order.Downloads %>
134: [02:14:30] <Andrew_> http://pastebin.com/2mA64rBN
135: [02:14:47] * elgrodo has joined #silverstripe
136: [02:15:51] <Stomach> try what I said above about the include :)
137: [02:16:22] <Andrew_> sure, one moment.
138: [02:19:44] * UncleCheese quit (Remote host closed the connection)
139: [02:20:30] * veb quit (Quit: Textual IRC Client: www.textualapp.com)
140: [02:25:53] * veb has joined #silverstripe
141: [02:30:19] <Andrew_> Hmm, email doesn't seem to be going out now.
142: [02:31:49] * UncleCheese has joined #silverstripe
143: [02:34:24] * antmas quit (Quit: Page closed)
144: [02:41:21] * Jakx has left #silverstripe
145: [02:41:36] <Ryan-Toast> antmas is gone, talk shit about him behind his back!
146: [02:41:45] <Ryan-Toast> I hear he smells funny.
147: [02:42:33] <JeremyRoundill> What can you expect from a guy with a name like antmas?
148: [02:52:16] <Andrew_> Stomach The email was going through, just looking in the wrong spot. It is now going through the OrderDownloads.ss but not getting the $LicenceName or $DisplayLicenceKey etc..
149: [02:53:35] <JeremyRoundill> Ryan-Toast: How are you getting on with that anti-folk playlist?
150: [02:53:52] <JeremyRoundill> Here's one to start you off
151: [02:53:52] <JeremyRoundill> https://www.youtube.com/watch?v=80FSg5o3dqY
152: [02:54:03] * spekulatius quit (Quit: Leaving)
153: [02:54:43] <Ryan-Toast> JeremyRoundill: http://i.imgur.com/rN7Xe9o.gif
154: [02:54:55] <JeremyRoundill> Andrew_: Is it getting any of the variables from your model?
155: [02:55:11] <JeremyRoundill> Ryan-Toast: Hahaha
156: [02:57:23] <Andrew_> None of the variables are working inside the OrderDownload
157: [02:58:00] <JeremyRoundill> Okay.
158: [02:58:08] <JeremyRoundill> Where are you pulling the variables from.
159: [02:58:18] <JeremyRoundill> Your model, right?
160: [02:58:25] <JeremyRoundill> Like, a Page or DataObject or something?
161: [03:00:23] <Andrew_> http://pastebin.com/yyKi7FxU
162: [03:01:16] <Andrew_> That is inside Donwloadable.php, where it gets the variables from
163: [03:02:06] <JeremyRoundill> Groovy.
164: [03:02:17] <JeremyRoundill> What's the link to your controller & view?
165: [03:03:00] <Andrew_> huh?
166: [03:03:14] <JeremyRoundill> Umm
167: [03:03:22] <JeremyRoundill> The Layout file.
168: [03:03:51] <JeremyRoundill> And the code that matches your Downloadable_File to that Layout file.
169: [03:05:33] <Colin[pi]> "the menu looks a bit lopsided to me, everything is on the left with a huge space on the right"
170: [03:05:40] <Colin[pi]> "uh, it's a left-aligned menu?"
171: [03:05:52] <Colin[pi]> "add more top-level menu items?"
172: [03:06:16] <Andrew_> The Layout files are the .ss ones up above?
173: [03:06:45] * Phlunk3 quit (Remote host closed the connection)
174: [03:07:19] <Andrew_> I could remove my code generation part and give you the whole file if you like?
175: [03:10:45] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
176: [03:11:21] <Andrew_> This is the whole Downloadable.php http://pastebin.com/0Femv2wK
177: [03:12:30] <JeremyRoundill> Hmm
178: [03:13:10] <JeremyRoundill> I'm guessing the page is being built from the wrong model.
179: [03:13:19] <JeremyRoundill> For what you want to do anyway.
180: [03:13:25] <Andrew_> I find it odd that it works perfectly on the AccoutPage_order.ss and has identical code on the email but fails.
181: [03:19:30] * UncleCheese has joined #silverstripe
182: [03:20:28] <Andrew_> I am not sure what you mean by wrong model.
183: [03:24:19] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
184: [03:30:25] * Olliepop quit (Ping timeout: 246 seconds)
185: [03:32:03] <Colin[pi]> what's everyone's editor of choice?
186: [03:32:33] <Colin[pi]> I'm trying to try some others but it's really like changing out of a nice old pair of comfy socks
187: [03:34:06] * Stomach quit (Ping timeout: 264 seconds)
188: [03:36:16] * Snowman23 quit (Ping timeout: 244 seconds)
189: [03:39:52] * unsignedint quit (Ping timeout: 256 seconds)
190: [03:39:54] <JeremyRoundill> Andrew_: You'll be rendering the template with the wrong dataobject/page
191: [03:41:50] * unsignedint has joined #silverstripe
192: [03:42:52] <Kingy> JeremyRoundill you get drops when watching dreamhack apparently
193: [03:43:00] <JeremyRoundill> Kingy: I've heard.
194: [03:43:09] <JeremyRoundill> Kingy: You need to link up your Steam account though.
195: [03:43:23] <Kingy> done
196: [03:43:32] <Kingy> going to put my laptop on tonight and just stream it overnight lol
197: [03:43:53] <Andrew_> How can I tell what dataobjects I am rendering it with on the account page, so I can render them with it on the email
198: [03:46:39] <JeremyRoundill> It should be obvious enough from the code you're using to generate the email and the account page.
199: [03:46:52] <JeremyRoundill> Sorry my answers aren't too useful.
200: [03:47:02] <JeremyRoundill> I don't have enough time to look too far into it
201: [03:47:41] * ss23 has joined #silverstripe
202: [03:48:37] <Andrew_> Thats the problem they call the same "with" and "if"
203: [03:48:46] * ss23 is now known as Snowman23
204: [03:50:15] <Andrew_> http://pastebin.com/i1KKF0Ev http://pastebin.com/ky2N8bpP
205: [03:50:36] <Andrew_> There are the two files, they are very similar and calling the same stuff, which is why I am stumped
206: [03:58:38] * jedateach quit (Quit: jedateach)
207: [03:59:26] * Andrew_ has left #silverstripe
208: [04:06:21] * clairef1 has joined #silverstripe
209: [04:06:42] * Zopiclone quit (Read error: Connection reset by peer)
210: [04:08:23] * leigh quit (Ping timeout: 240 seconds)
211: [04:09:56] * clairef quit (Ping timeout: 264 seconds)
212: [04:09:56] * Snowman23 quit (Ping timeout: 264 seconds)
213: [04:09:56] * Tanger quit (Ping timeout: 264 seconds)
214: [04:09:56] * Snowman23 has joined #silverstripe
215: [04:10:18] * JeremyRoundill quit (Ping timeout: 264 seconds)
216: [04:10:39] * Tanger has joined #silverstripe
217: [04:10:43] * JeremyRoundill has joined #silverstripe
218: [04:11:40] <Tanger> Colin[pi]: Go vim! Vim vim vim!
219: [04:12:06] <Tanger> Colin[pi]: It takes a while to get the hang of, but once you do it's pretty magical
220: [04:12:44] <Colin[pi]> Tanger: hmmm I'd prefer not ;P
221: [04:17:26] * veb has joined #silverstripe
222: [04:21:25] * veb quit (Client Quit)
223: [04:30:50] * veb has joined #silverstripe
224: [04:30:51] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
225: [04:31:42] <elgrodo> Colin[pi]: Once had a UNIX geek when drunk take me by the scruff of the neck and say "CHANGE YOUR EDITOR, CHANGE YOUR LIFE"!
226: [04:37:06] * cloph_away has joined #silverstripe
227: [04:37:17] * cloph quit (Ping timeout: 240 seconds)
228: [04:38:41] * simon_w|air quit (Read error: Connection reset by peer)
229: [04:39:12] * simon_w|air has joined #silverstripe
230: [04:39:36] * simon_w|air is now known as Guest31622
231: [04:43:23] <Colin[pi]> elgrodo: just neckbeard things
232: [04:58:27] * Kingy is now known as Kingy[a]
233: [05:17:22] * spronk2 quit (Quit: I may need a longer sleep timer...)
234: [05:18:41] * Ryan-Toast quit (Quit: Ryan-Toast)
235: [05:20:10] * unsignedint quit (Ping timeout: 256 seconds)
236: [05:21:50] * unsignedint has joined #silverstripe
237: [05:25:48] * micmania1 quit (Quit: micmania1)
238: [05:27:13] * clairef1 quit (Quit: Leaving.)
239: [05:28:57] * jeg_ has joined #silverstripe
240: [05:30:43] <jeg_> hi all, I'm trying to add a custom CMS button using FormAction::create('doAction', 'Action button'). I've extended LeftAndMainExtension, and my button works when I add it using getCMSActions. But I really need it to be standalone and in a CMSFields tab. however, when I add it using getCMSFields it does't work
241: [05:31:11] <jeg_> Is there a way to do this? What am I missing?
242: [05:34:49] * leigh has joined #silverstripe
243: [05:37:27] * veb_veb_VEB has joined #silverstripe
244: [05:38:15] * jedateach has joined #silverstripe
245: [05:40:16] * veb quit (Ping timeout: 244 seconds)
246: [05:45:57] * Colin[pi] quit (Ping timeout: 240 seconds)
247: [05:50:04] * jeg_ quit (Ping timeout: 246 seconds)
248: [06:02:06] * wracu_ has joined #silverstripe
249: [06:05:20] * wracu quit (Ping timeout: 258 seconds)
250: [06:25:41] * Guest31622 quit (Quit: Ping timeout: your mum)
251: [06:31:51] * leigh quit (Quit: Leaving)
252: [06:41:36] * Stomach has joined #silverstripe
253: [07:11:59] * Error404NotFound has joined #silverstripe
254: [07:36:47] * Stomach quit (Quit: zzz)
255: [07:38:29] <Eliseth> Morning
256: [07:46:16] * arnhoe has joined #silverstripe
257: [07:47:11] * wmk has joined #silverstripe
258: [07:59:17] * Frans_Amsterdam has joined #silverstripe
259: [08:01:44] <Frans_Amsterdam> Hi all, I have a question about a filled form. It keeps the filled values after a browser refresh. What can I do to prevent this?
260: [08:06:25] <simon_w> Frans_Amsterdam, did you subclass Form and override forTemplate()?
261: [08:07:55] <Frans_Amsterdam> @simon yes I did
262: [08:08:31] * jedateach_ has joined #silverstripe
263: [08:09:29] * jedateach quit (Ping timeout: 264 seconds)
264: [08:09:30] * jedateach_ is now known as jedateach
265: [08:12:15] <simon_w> Frans_Amsterdam, don't. Just use $form->setTemplate('blah')
266: [08:12:50] <Frans_Amsterdam> simon_w thanks
267: [08:13:19] * CerV has joined #silverstripe
268: [08:14:31] <wmk> Frans_Amsterdam, or at least call parent::forTemplate()
269: [08:16:34] <Frans_Amsterdam> wmk Thats great, I get some more understanding of Forms in SS
270: [08:16:50] <wmk> jup.
271: [08:17:26] <wmk> just struggling with FoundationForm class, which is sadly a subclass of form. So no easy way to plug this functionality to all forms automatically
272: [08:17:42] <wmk> i don't want to subclass FoundationForm for every form i generate.
273: [08:17:53] <wmk> and it's kind of impossible when using 3rd party modules :(
274: [08:18:05] <wmk> bootstrapform is pretty the same :(
275: [08:18:36] <wmk> simon_w, no easy way to extend / add functionality to Form::forTemplate() ?
276: [08:18:47] <simon_w> wmk, nope
277: [08:18:49] <wmk> do you think it might be worth putting a extension point in there
278: [08:18:55] <simon_w> wmk, nope
279: [08:19:03] <wmk> why not?
280: [08:19:30] <wmk> is an extension point on generation of a form (constructor or whatever?)
281: [08:19:41] <wmk> so i can change template and add an extra class for it
282: [08:19:48] <simon_w> If you want something to affect every form, you can subclass
283: [08:19:57] <simon_w> You can already change the template
284: [08:20:00] <simon_w> Make a Form.ss
285: [08:20:13] <wmk> but it doesn't affect the subclasses of Form when i subclass
286: [08:22:19] * mahfuz quit (Ping timeout: 246 seconds)
287: [08:22:39] <wmk> simon_w, something like this, but an extension instead of a subclass
288: [08:22:43] <wmk> https://github.com/ryanwachtl/silverstripe-foundation-forms/blob/master/code/FoundationForm.php
289: [08:24:09] * Stomach has joined #silverstripe
290: [08:24:22] <Tanger> I love other IT folk sometimes.
291: [08:24:54] <Tanger> Like when they say they'll change some A records "Later this evening" at 5pm
292: [08:24:56] <wmk> hi Stomach
293: [08:25:03] <Stomach> good evening
294: [08:32:14] <Frans_Amsterdam> wmk As being new in developing SS. Your solution is implemented in the subclass? Can you give me a clue?
295: [08:32:35] <wmk> see link above to the FoundationForm.ss
296: [08:32:44] <wmk> .php ;)
297: [08:32:59] <wmk> it's a module that modifies forms to use foundation compatible templates.
298: [08:33:18] <wmk> using a FormTransformation
299: [08:33:56] <wmk> unfortunately only works using subclasses, so any direct subclasses of Form (e.g. MemberLoginForm etc.) have to be subclassed, too, and replaced
300: [08:48:34] * jeroenem has joined #silverstripe
301: [08:55:09] * oetiker quit (Ping timeout: 258 seconds)
302: [08:58:13] * Colin[pi] has joined #silverstripe
303: [08:58:34] * kinglozzer has joined #silverstripe
304: [09:00:49] * irogue_ has joined #silverstripe
305: [09:08:12] * Error404NotFound quit (Disconnected by services)
306: [09:08:12] * Err404NotFound has joined #silverstripe
307: [09:08:17] * spronk2 has joined #silverstripe
308: [09:08:56] <spronk2> boof
309: [09:09:00] <Snowman23> foob
310: [09:09:21] <simon_w> Uh oh, is getting dark
311: [09:09:22] <kinglozzer> ofob
312: [09:13:46] <wmk> bofo
313: [09:14:06] <spronk2> #bofo
314: [09:14:23] <spronk2> FOBO
315: [09:14:25] <spronk2> YEAH
316: [09:14:29] <irogue_> you're a fobo
317: [09:14:40] <spronk2> your mum’s a fobo
318: [09:15:02] <spronk2> mums? mum's?
319: [09:15:22] <spronk2> -‘
320: [09:17:16] * jedateach quit (Quit: jedateach)
321: [09:17:53] * Error404NotFound has joined #silverstripe
322: [09:19:09] * Err404NotFound quit (Ping timeout: 265 seconds)
323: [09:21:51] * Error404NotFound quit (Disconnected by services)
324: [09:21:52] * Err404NotFound has joined #silverstripe
325: [09:22:04] * jeroenem quit (Quit: Page closed)
326: [09:26:54] * Err404NotFound quit (Ping timeout: 264 seconds)
327: [09:39:00] * Error404NotFound has joined #silverstripe
328: [09:40:51] * kerosene quit (Quit: WeeChat 0.4.2)
329: [09:41:23] * kerosene has joined #silverstripe
330: [09:43:13] <irogue_> dum dee doo
331: [09:43:19] * Error404NotFound quit (Ping timeout: 255 seconds)
332: [09:43:24] <spronk2> COOKIES!?
333: [09:43:43] <irogue_> negative
334: [09:43:50] <spronk2> cookies :(
335: [09:43:58] * irogue_ hands spronk2 a vodka & redbull
336: [09:44:03] <spronk2> COOKIES!?!?
337: [09:45:11] <irogue_> tankr and I casually sitting at the office waiting for 11pm
338: [09:45:16] <spronk2> lawl
339: [09:45:19] <spronk2> what happens at 11?
340: [09:45:23] <irogue_> deployment
341: [09:45:32] <spronk2> DUM DEE DOOOO
342: [09:47:39] * Tanger quit (Quit: Tanger)
343: [09:50:40] * jeroenem has joined #silverstripe
344: [09:56:30] <spronk2> hey guys
345: [09:56:31] <spronk2> hey guys
346: [09:56:31] <spronk2> http://wiki.jetbrains.net/intellij/Developing_and_running_a_Java_EE_Hello_World_application
347: [09:56:36] <spronk2> quick hello world tutorial!
348: [10:06:13] <irogue_> lawl
349: [10:12:29] * Pynomk has joined #silverstripe
350: [10:16:20] <irogue_> kia ora Pynomk
351: [10:19:07] <Pynomk> kia ora e hoa
352: [10:19:38] <irogue_> who u callin a hoa
353: [10:19:39] <irogue_> :P
354: [10:20:16] <Pynomk> :>
355: [10:20:38] * simon_w quit (Quit: Ping timeout: your mum)
356: [10:20:45] <Pynomk> I dunno irogue_, your web camp tells me you live on a corner...
357: [10:21:28] <Pynomk> web camp? yea, I JUST HEARD YOU LIKE TO PITCH TENTS ALRIGHT
358: [10:21:31] * Colin[pi] quit (Quit: cocks)
359: [10:21:43] * Otterpocket has joined #silverstripe
360: [10:22:31] <irogue_> lawl
361: [10:22:42] <irogue_> hmm, things are getting rowdy outside
362: [10:23:26] <Pynomk> Fuck yeah, successfully relaxed the dress code to pretty much my old job. Jeans (stupid pre-scuffed kind), red belt, short sleeved shirt, NO SHOES :D
363: [10:23:33] <Pynomk> hoody.
364: [10:23:38] <Pynomk> #livingthedream
365: [10:23:41] <Otterpocket> Hi, I am returning ArrayData to my template and one of the properties is a unix timestamp. How do I make sure this is returned to the template as a SS Date object so that I can use the template date methods like .Nice etc?
366: [10:23:48] <spronk2> #winning #yolo
367: [10:24:36] <Pynomk> Otterpocket: you cannot.
368: [10:24:41] <irogue_> Pynomk: i'm currently wearing dress pants
369: [10:24:44] <Pynomk> (make it magically turn into one)
370: [10:24:56] <irogue_> first time since a mate's funeral 5+ years ago
371: [10:25:00] <Pynomk> irogue_: haha, sneakretly I have some of those in my satchel bag
372: [10:25:13] <irogue_> (same pair cos theyre the only ones i own)
373: [10:25:19] <Pynomk> we're being taken out to dinner tonight, so I actually have a full suit tucked into the bag, haha
374: [10:25:26] <Pynomk> incl. shirt with cuff links
375: [10:25:26] <irogue_> had a client lunch today at a fancyish restaurant
376: [10:25:42] <Pynomk> irogue_: haha, pretty similar to what we're up to.
377: [10:25:56] <Pynomk> Busy year in IT, so director is taking us out to fancy meal tonight
378: [10:25:56] <irogue_> p.s. fancyish restaurant food is overrated
379: [10:28:15] <irogue_> nice
380: [10:28:39] <irogue_> this was a "take our good clients out to lunch"
381: [10:30:37] <Otterpocket> How do you create a date object from a timestamp?
382: [10:33:46] <wmk> anyone got a shortcode with form running?
383: [10:36:35] <irogue_> Otterpocket: unix time?
384: [10:36:48] <Otterpocket> yea
385: [10:39:14] * simon_w|air has joined #silverstripe
386: [10:40:58] <irogue_> Otterpocket: should support it immediately
387: [10:41:03] <irogue_> it just pushes through strtotime
388: [10:42:32] <Otterpocket> irogue_: so, new SS_DateTime($timestamp) ?
389: [10:44:25] <Pynomk> but I don't wanna let the colleagues know I have fancy dress clothes, so I keep them in my bag irogue_ until tonight, haha
390: [10:44:31] <Pynomk> I'm a cunt like that :P
391: [10:44:38] <simon_w|air> Otterpocket, no, DBField::create_field('SS_DateTime', $timestamp)
392: [10:45:46] <Otterpocket> simon_w|work: Great thanks
393: [10:45:52] <Otterpocket> irogue_: Thanks
394: [10:46:03] <simon_w|air> Huh, I picked up an |air
395: [10:46:08] * simon_w|air is now known as simon_w
396: [10:46:20] <Pynomk> ehwut
397: [10:46:53] <Pynomk> wanna drive wanna drive wanna drive
398: [10:56:08] <irogue_> ain't no party like a deployment party
399: [10:56:51] * spronk2 quit (Quit: spronk2)
400: [11:12:37] * cloph_away is now known as cloph
401: [11:14:18] * adrexia quit (Ping timeout: 258 seconds)
402: [11:14:51] * Stomach quit (Quit: zzz)
403: [11:19:19] <Pynomk> irogue_: http://iforce.co.nz/i/foiyojkh.bbi.jpg
404: [11:21:27] <Teddy_> anyone know why after i send a email from the website and i redirect to success=1 i get page not found (email send all good tho)
405: [11:21:54] * ThePeach has joined #silverstripe
406: [11:22:19] <CerV> hi all
407: [11:22:26] <ThePeach> hi
408: [11:22:40] <CerV> can anyone recommend a sitemap module for silverstripe
409: [11:23:26] <ThePeach> I just installed xhprof extension from https://github.com/titledk/silverstripe-xhprof but I can't get any further down than main(), is there anything needed or is there a guide to have a better breakdown?
410: [11:26:18] * adrexia has joined #silverstripe
411: [11:27:20] * Teddy_ quit (Ping timeout: 258 seconds)
412: [11:31:08] * spronk2 has joined #silverstripe
413: [11:32:56] <CerV> There is some sitemap functionality included in silverstripe right? is there some documentation on this, i cannot find anything with the search function
414: [11:33:44] <irogue_> CerV: are you referring to googlesitemaps or just an HTML page sitemap?
415: [11:35:32] * spronk2 quit (Ping timeout: 250 seconds)
416: [11:38:59] * owonoko is now known as KaraokeFX
417: [11:41:46] <Pynomk> Teddy_ bercause you have to direct to a valid page.
418: [11:42:43] * Error404NotFound has joined #silverstripe
419: [11:43:01] <Pynomk> ThePeach: no idea, maybe if Anselm is around he could help.
420: [11:43:15] <Pynomk> CerV: no, no sitemap built in.
421: [11:43:22] <Pynomk> irogue_: tree structure (not google)
422: [11:43:35] <Pynomk> shit, I have one, but I forgot to put it on the line last night
423: [11:45:11] <Pynomk> CerV: you can achieve one with what basially amounts to a controller extending from ContentController, a route, and some recursive templates.
424: [11:45:16] * gelignite has joined #silverstripe
425: [11:45:52] <Pynomk> class SiteMap extends ContentController {}
426: [11:46:10] <Pynomk> themes/themename/tempaltes/SiteMap.ss
427: [11:46:36] <ThePeach> Pynomk: thanks I'll stick around to see if he pops out
428: [11:46:59] <Pynomk> <% include SiteMapParent %>
429: [11:47:06] <Pynomk> ... etc
430: [11:47:29] <Pynomk> ThePeach: yeah, just leave the page idle in the background. I'm afraid although he's often logged in, he's not often around.
431: [11:47:51] <Pynomk> the other person you might be able to ask is simon_w - he likes the facebook stuffs.
432: [11:47:57] <Pynomk> but he might be asleep now.
433: [11:48:27] <ThePeach> sounds good, Pynomk I'll drop the question later on today, so I can get a better chance
434: [11:49:51] <Pynomk> No I mean he'll have just /gone/ to sleep.
435: [11:50:11] <Pynomk> nay to awake again within your workday.
436: [11:50:30] <ThePeach> well not that kind of person
437: [11:50:31] <ThePeach> :)
438: [11:50:40] <ThePeach> I'd rather leave a message on the forum
439: [11:50:51] <Pynomk> yeh, that could work too.
440: [11:51:01] <Pynomk> and/or stackoverflow
441: [11:58:26] * Colin[pi] has joined #silverstripe
442: [11:58:37] <ThePeach> kewl, thanks Pynomk
443: [11:58:45] <irogue_> CerV: I think there might be modules to do it
444: [11:58:56] <ThePeach> left a question on https://stackoverflow.com/questions/27170227/xhprof-in-silverstripe-not-showing-enough-information
445: [12:00:38] <Pynomk> irogue_: yeah, I have one, but it's not online atm :<
446: [12:00:59] <Pynomk> Also I'm not 100% sure it'll take translatable into account.
447: [12:03:15] <irogue_> mmm yeah
448: [12:04:08] * Error404NotFound quit (Ping timeout: 258 seconds)
449: [12:05:08] <irogue_> tankr is zzzz-ing
450: [12:06:16] <Pynomk> irogue_: eh?
451: [12:06:28] <Pynomk> asleep on your couch or something
452: [12:06:29] <Pynomk> ?
453: [12:06:37] <Pynomk> Or are you still in the office or something?
454: [12:10:24] <irogue_> in the office
455: [12:14:24] <irogue_> had an 11pm deployment
456: [12:14:27] <irogue_> it has not gone to plan
457: [12:16:36] <Pynomk> D:
458: [12:16:45] <Pynomk> tankr is sleeping on the job? haha
459: [12:17:29] <Pynomk> Lucky bastard, I wish I got paid to sleep :P
460: [12:21:00] * Colin[pi] quit ()
461: [12:25:34] * CerV quit (Ping timeout: 246 seconds)
462: [12:27:09] <Pynomk> irogue_: so you get Friday off right?
463: [12:27:12] <Pynomk> joys!
464: [12:27:49] <irogue_> Pynomk: we had a brief wait while someone on-call at their end was called up
465: [12:28:24] <irogue_> Pynomk: yeah depending how long this goes on for that may just happen
466: [12:28:46] <Pynomk> irogue_: yeah, but you're still working. It's already Friday. So if you make it to 8 hours before the day 'starts' does that count and you just party long weekend?
467: [12:29:06] <Pynomk> irogue_: shouldn't Snowman23 just deal with this? Isn't he on call?
468: [12:29:39] <irogue_> Pynomk: yep, if we clock up 8 hours on this then no work.
469: [12:30:30] <Pynomk> great :D
470: [12:30:40] <Pynomk> get time and a half for now?
471: [12:30:46] <Pynomk> coz dat OT
472: [12:30:50] <irogue_> yeh overtime
473: [12:40:09] * CerV has joined #silverstripe
474: [12:41:53] * spronk2 has joined #silverstripe
475: [12:43:43] * fb3rasp has joined #silverstripe
476: [12:44:11] * jheneknights has joined #silverstripe
477: [12:44:43] <fb3rasp> Hi guys, I go t a general question due to a problem I have with asset management. I read a few times that this is a recurrent issue. Problem is: I got a lot of files (1000s) across a few folders.
478: [12:44:51] <jheneknights> hey guys, how do you receive data submited to a controller from a form
479: [12:45:30] <fb3rasp> The treedropdown starts to exceed memory due to the large amount of files which are loaded and stored in memory. Is there a particular reason why the Hierarchy extension is applied to File and not Folder?
480: [12:45:34] <jheneknights> I have the route set fine in the routes.yml, but the page just loads up blank
481: [12:45:36] <Pynomk> jheneknights: read tutorial #3
482: [12:45:50] <Pynomk> jheneknights: you're probably misunderstanding everything.
483: [12:45:57] <Pynomk> or doing something abnormal.
484: [12:46:08] <Pynomk> fb3rasp: tree dropdown?
485: [12:46:13] <Pynomk> for choosing a file
486: [12:46:14] <Pynomk> ?
487: [12:46:15] <jheneknights> I have, a thousand times, am sending it from a form generated from an dataobject
488: [12:46:21] * Shrike_Finland has joined #silverstripe
489: [12:46:33] <Pynomk> jheneknights: explanation very... obscure.
490: [12:46:37] <Pynomk> please elaborate
491: [12:46:42] * spronk2 quit (Ping timeout: 264 seconds)
492: [12:46:50] <irogue_> jheneknights: paste some code please :)
493: [12:46:56] <Pynomk> yeh ^
494: [12:47:09] <jheneknights> OK COOL
495: [12:47:12] <Pynomk> fb3rasp: why are you using treedropdown?
496: [12:47:16] <fb3rasp> TreeDropdownField builds up partial tree and iterates through all children of the folder to expand/collaps children (other folders). as there are lots of files, it also reads the file objects out of the database.
497: [12:47:34] <jheneknights> So this is my form
498: [12:47:35] <jheneknights> public function BuyerForm() { $fields = new FieldList( TextField::create('FirstName', 'First Name') , TextField::create('SurName', 'Surname') , EmailField::create('EmailAddress', 'Your Email Address'), HiddenField::create('BookPrice')->setValue($this->getUnitPrice()) ); // Create actions $actions = new FieldList( FormAc
499: [12:47:37] <fb3rasp> @pynomk: example when you use tinyMCE
500: [12:47:38] <Pynomk> yeah I know how tree dropdown works
501: [12:47:40] <Pynomk> what no
502: [12:47:41] <Pynomk> no
503: [12:47:42] <Pynomk> no
504: [12:47:42] <Pynomk> no
505: [12:47:42] <Pynomk> no
506: [12:47:43] <Pynomk> no
507: [12:47:43] <Pynomk> no
508: [12:47:44] <Pynomk> no
509: [12:47:58] <Pynomk> good.
510: [12:48:01] <fb3rasp> @pynomk: example when you use tinyMCE and insert an image
511: [12:48:02] <jheneknights> Its in a dataobject
512: [12:48:03] <irogue_> fb3rasp: yeah, TreeDropdown isn't a great option for Files. Use a FileField or UploadField instead
513: [12:48:03] <Pynomk> now. Think about this a bit.
514: [12:48:13] <Pynomk> and then use pastie.org
515: [12:48:16] <Pynomk> paste2.com
516: [12:48:18] <Pynomk> or something
517: [12:48:23] <jheneknights> hahahah okay
518: [12:48:26] <Pynomk> fb3rasp: please don't @ me
519: [12:48:35] <Pynomk> this is irc, not twitter.
520: [12:48:52] <fb3rasp> pynomk, ups
521: [12:48:56] <fb3rasp> pynomk, ups sorry
522: [12:49:10] <Pynomk> fb3rasp: when I use tinymce it gives gives a treedropdown?
523: [12:49:12] <Pynomk> o.0
524: [12:49:29] <Pynomk> sec, lemme start my vm and I'll see.
525: [12:50:05] <fb3rasp> pynomk, when you want to insert an image and then switch to chose file from cms, you get a dropdown to select the folder you want to list the files from
526: [12:50:26] <fb3rasp> pynomk, when you want to insert an image and then switch to chose file from cms, you get a dropdown to select the folder you want to list the files from.
527: [12:51:42] <jheneknights> SEE THIS, this is the dataobject creeating the form BuyerForm
528: [12:52:16] <jheneknights> The form renders well with an action to "buybook/paypal"
529: [12:52:17] <jheneknights> http://pastie.org/9746820
530: [12:52:20] <Pynomk> data objects don't make forms.
531: [12:52:21] <Pynomk> ever.
532: [12:52:53] <Pynomk> if your models are making forms, you misunderstand MVC
533: [12:53:07] <jheneknights> Just see the paste since the form is being generated well using $BuyerForm in template
534: [12:53:34] <Pynomk> I see probelms already
535: [12:53:46] <jheneknights> I havent am just using SS freewill
536: [12:53:48] <jheneknights> :)
537: [12:54:11] <Pynomk> static config options should ALL be explicitly private, not public.
538: [12:54:44] <Pynomk> your form is wrong, like I said.
539: [12:54:51] <fb3rasp> jheneknights the form should be in the controller and add BuyerForm in allow_actions so the form-actions can be executed.
540: [12:54:53] <jheneknights> Correct me plis
541: [12:55:01] <Pynomk> jheneknights: $this is a DataObject.
542: [12:55:14] <Pynomk> DataObjects are MODEL layer, they do not CONTROL, they do not handle requests
543: [12:55:26] <Pynomk> Form::create($this //<-- wrong.
544: [12:56:01] * Shrike_Finland quit (Quit: Leaving.)
545: [12:56:12] <jheneknights> OK got it, I used it since I was giving the dataobject its own page eg. PageController_show.ss
546: [12:56:20] <fb3rasp> jheneknights you might be able to create a form here (and as Pynomk says, the form construct needs a controler, too), the actions of the form will be handled by a controller and that controller is not there in your implementaiton.
547: [12:56:50] <Pynomk> jheneknights: that's not a page, that's just a template.
548: [12:57:04] <jheneknights> Like a page to show a single controller
549: [12:57:08] <Pynomk> PageController_show is the show method (action) on the PageController CONTROLLER
550: [12:57:19] <Pynomk> jheneknights: thinking about it backwards.
551: [12:57:22] <fb3rasp> jheneknights do you have a class Page_Controller which extends ContentController?
552: [12:57:27] <Pynomk> controllers show pages, pages do not show controllers.
553: [12:57:39] <jheneknights> Yes, I know that
554: [12:57:48] <jheneknights> Yes I have one
555: [12:57:59] <Pynomk> controllers do not even need dataobjects.
556: [12:58:11] <fb3rasp> try to move the method buyerform into that controller and add $allowed_actions
557: [12:58:24] <Pynomk> moving it to the releveant controller would be better.
558: [12:58:31] <fb3rasp> update the setFormAction as that is hardcoded
559: [12:58:46] <fb3rasp> and add a tag $BuyerFrom into your template.
560: [12:58:57] <irogue_> well, town is going off tonight
561: [12:59:16] <jheneknights> I did that before, and the form wudnt show
562: [12:59:38] <Pynomk> A DataObject doesn't control.
563: [12:59:46] <jheneknights> I knoooowwww
564: [13:00:15] <Pynomk> forms are control objects.
565: [13:01:37] * jeroenem quit (Ping timeout: 246 seconds)
566: [13:03:03] <fb3rasp> jheneknights sometimes it is a bit tricky but the form should be in the control (tutorial 3 is a good example). You would need is to populate the values in to the fields, like the unitprice.
567: [13:03:31] <fb3rasp> when you ignore that for now and just leave values empty, you need to do the following things:
568: [13:03:46] <Pynomk> If the form didn't show then it's because you have and issue with your template and/or aren't calling the controller like you think you are.
569: [13:04:52] <fb3rasp> (1) create a hook in your template you use, named after the method you use to create the form. (2) create the form in the controller, (3) add allowed_action so the form can handle the actions. the name of the form should be the same as the method you use to create the form. the form action should be in the controller class.
570: [13:04:56] <Pynomk> A form always submits to itself.
571: [13:04:59] <Pynomk> or should.
572: [13:05:31] <Pynomk> A request comes in, a controller is found, then the action is determined, then that method is executed.
573: [13:05:37] <Pynomk> that action will be the form.
574: [13:06:06] <Pynomk> models don't really come into it unless you're loading pages (by default).
575: [13:06:19] <Pynomk> this can cause confusion between controllers and models
576: [13:06:29] <Pynomk> I suggest that perhaps you have this confusion.
577: [13:06:46] <Pynomk> and that's why your form doesn't render when it's on the controller where it should be.
578: [13:09:06] <Pynomk> a single controller can load any of many models. This is how pages work, if you're trying to replicate this, then you'll need to implement like that. Having a DataObject Book doesn't make that happen.
579: [13:10:12] <jheneknights> Let begin from the 1st thing I did, how do you show a singel object on its own page?
580: [13:10:43] <jheneknights> When clicked from a collection of dataObjects listed by a Page
581: [13:11:00] <jheneknights> It is related to
582: [13:11:20] <Pynomk> well there are many solutions to this.
583: [13:11:38] <Pynomk> the easiest is to make an action on that Page's controller
584: [13:12:07] * UndefinedOffset has joined #silverstripe
585: [13:13:26] <Pynomk> BookListPage_Controller { private static $allowed_actions = array('showbook'); public function showbook() { return $this->customise('Book' => $this->Books()->byID($this->request->getAction())); } ...
586: [13:13:47] <Pynomk> thatPage/showbook/45
587: [13:14:02] <Pynomk> will give you the book in the tempalte under $Book
588: [13:17:02] <jheneknights> And the template naming?
589: [13:18:31] <Pynomk> if it must be a separate template (you could just use <% if Book %>), then BookListPage_showbook.ss
590: [13:19:47] <jheneknights> OK, now, how do you show the form in BooklistPage_showbook.ss?
591: [13:20:21] <Pynomk> assuming the form is also on BookListPage_Controller, and it is named BookForm (for example) $BookForm
592: [13:21:00] <jheneknights> Yeah...
593: [13:21:44] <Pynomk> You will need to keep track of the book ID you're viewing (and validate it accordingly) yourself though.
594: [13:21:52] <Pynomk> perhaps a hiddenfield.
595: [13:22:45] <jheneknights> OK, let me try this first
596: [13:22:55] <jheneknights> BRB
597: [13:38:32] * veb_veb_VEB quit (Quit: My Mac has gone to sleep. ZZZzzz…)
598: [13:41:25] * jeroenem has joined #silverstripe
599: [13:59:34] <jeroenem> how come this is giving me "server error" http://pastie.org/9746917
600: [14:00:10] <jeroenem> when using FieldGroup instead of FieldList - it works fine. Shitty thing about field group is that the output in HTML is quite cluttered
601: [14:03:44] * oetiker has joined #silverstripe
602: [14:07:39] <kinglozzer> jeroenem: What's the error?
603: [14:09:12] <jheneknights> How do you pass a form function in a ArrayData into a template
604: [14:14:44] <jeroenem> kinglozzer: i get "Sorry, there was a problem with handling your request."
605: [14:14:58] <jeroenem> i did set my environment_type on dev in my config.yml
606: [14:15:05] <kinglozzer> jeroenem: That's not the actual error, check your error logs
607: [14:16:15] <jeroenem> shouldn't it just put an error uit on the page itself? even turned display errors on =o
608: [14:18:30] <jeroenem> [Error] Uncaught Exception: Object->__call(): the method 'getname' does not exist on 'FieldList'
609: [14:19:37] <jeroenem> i assume you cant have a fieldlist inside a fieldlist?
610: [14:26:09] <jheneknights> How do you pass a form function in a ArrayData into a template
611: [14:41:57] <kinglozzer> jeroenem: Nope, and you shouldn't ever need one
612: [14:42:08] <kinglozzer> (a FieldList inside a FieldList)
613: [14:42:24] <kinglozzer> Not sure what's calling that function, but try just putting the fields in an array instead
614: [14:42:30] <kinglozzer> If that fails, use CompositeField instead of FieldList
615: [14:43:09] <kinglozzer> jheneknights: I don't really know what you're trying to do... but ArrayData::create(array('MyFormVariable' => $form));?
616: [14:43:26] <kinglozzer> (where $form = $this->FormFunctionName() if you're in a controller)
617: [14:44:54] * irogue_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
618: [14:48:43] <Pynomk> jeroenem: because 500. That's what server error means.
619: [14:49:05] <Pynomk> also, fieldlist and fieldgroup are two ENTIRELY different things.
620: [14:49:10] <Pynomk> not even closely related.
621: [14:49:12] <jheneknights> Hey Thanks, lemi try that, thats exACTLY WHAT AM TRYING TO DO
622: [14:49:38] <jeroenem> Pynomk: yeah i got it sorted now
623: [14:51:03] <Pynomk> you're looking for compositefield, by the sounds of it.
624: [14:55:58] <Pynomk> Server error usually indicates a PHP issue, just so you know. Not a silverstripe one.
625: [15:04:36] <wmk> is there an easy way to print all form data to an email?
626: [15:04:49] <wmk> with field labels and the field input?
627: [15:05:00] <Pynomk> yep
628: [15:05:22] <wmk> Pynomk, how? (without putting every field in the template manually)
629: [15:05:23] <Pynomk> <% loop Fields %>$Title: $Value<% end_loop %>
630: [15:05:33] <Pynomk> with form, loop fields
631: [15:05:57] <Pynomk> or, alternatively ArrayData::create($data)
632: [15:06:12] <Pynomk> then looping that should produce the... wait no, can't get field names that way (that I know of)
633: [15:10:23] <Pynomk> loop Form.Fields probably easier (less verbose at least) wmk
634: [15:10:35] <wmk> yup. but inclusive SecurityID
635: [15:11:04] <wmk> maybe readonlytransformation will help?
636: [15:11:13] <Pynomk> lol, <% if Name != SecurityID %> I guess.
637: [15:11:22] <Pynomk> seems nasty hack, but the SecurityID name is pretty set.
638: [15:11:32] <Pynomk> oh
639: [15:11:41] <Pynomk> or you could use if Visible or something
640: [15:12:58] <Pynomk> I'm pretty sure Form Fields have some method or property that can be used to tell if they're visible to the user or not.
641: [15:24:35] * arnhoe quit ()
642: [15:26:25] <kinglozzer> Pynomk, wmk perhaps this would work in a template? <% loop Fields.DataFields %>
643: [15:26:30] <kinglozzer> Never tried it
644: [15:26:31] <wmk> Pynomk, even better:
645: [15:26:33] <wmk> $readonlyForm = clone $form;
646: [15:26:33] <wmk> $readonlyForm->makeReadonly();
647: [15:26:33] <wmk> $readonlyForm->Fields()->removeByName('SecurityID');
648: [15:26:33] <wmk> $readonlyForm->setActions(FieldList::create());
649: [15:26:41] <wmk> and in template just $Form
650: [15:27:03] <wmk> (though html in email is a bit polluted with divs and co...)
651: [15:27:45] <wmk> renders the form with all headerfields inside and quite nice layout
652: [15:28:27] <wmk> well, let's tell Boolean field to translate nicely
653: [15:29:40] <wmk> damnit not translated in 3.1.8
654: [15:30:13] <jheneknights> HI what am I doing wrong here
655: [15:30:29] <wmk> but transifex says all strings are translated
656: [15:30:45] <wmk> guys, didn't you sync lang files before rolling out a release?
657: [15:30:50] <jheneknights> http://pastie.org/9747043
658: [15:30:51] <wmk> kinglozzer, do you know something about that?
659: [15:31:02] <jheneknights> WHy is the form not loading into the Template
660: [15:31:15] <kinglozzer> wmk: Sorry, no idea, Ingo usually does that :/
661: [15:31:26] <jheneknights> In the function show()
662: [15:32:08] <kinglozzer> jheneknights: What's wrong?
663: [15:32:40] <jheneknights> I get the book ID and then render it using the function show()
664: [15:32:46] <Pynomk> yes
665: [15:32:54] <jheneknights> Along with a form, the form does not get rendered
666: [15:33:05] <jheneknights> Link to controller shared above
667: [15:33:07] <jheneknights> http://pastie.org/9747043
668: [15:33:41] <wmk> seems like transifex doesn't have the recent keys
669: [15:33:42] <kinglozzer> jheneknights: And you're just using {$BuyerForm} in your template? Not inside <% with %> or <% loop %>?
670: [15:33:54] <jheneknights> Yes I am
671: [15:33:57] <Pynomk> jheneknights: you don't need to decorate with the form.
672: [15:34:01] <Pynomk> err customise()
673: [15:34:16] * muskie9 has joined #silverstripe
674: [15:35:22] * muskie9 quit (Client Quit)
675: [15:35:36] * fb3rasp quit (Quit: Lingo: www.lingoirc.com)
676: [15:36:27] <Pynomk> jheneknights: is your template BookController_show.ss?
677: [15:36:32] <jheneknights> Yes
678: [15:36:57] <Pynomk> can you paste it?
679: [15:37:44] <jheneknights> OK
680: [15:41:54] <jheneknights> http://pastie.org/9747061
681: [15:42:47] <Pynomk> 1: don't loop book, <% with Book %>
682: [15:42:54] <Pynomk> 2: exactly what kinglozzer said.
683: [15:42:57] <Pynomk> wrong scope.
684: [15:43:14] <Pynomk> If I draw a php example you might follow better.
685: [15:43:24] <kinglozzer> > Not inside <% with %> or <% loop %>
686: [15:43:26] <kinglozzer> :P
687: [15:43:26] <Pynomk> $book = new Book()
688: [15:43:49] <Pynomk> Book.id, book.this, book.that, book.DRAWFORM
689: [15:44:05] <Pynomk> you want Book.id, book.this, book.that, controller.form
690: [15:44:09] <Pynomk> err, this.form
691: [15:44:17] <Pynomk> as a pseudo code example.
692: [15:44:19] <jheneknights> ave tried with, form still not showing up
693: [15:44:24] <Pynomk> no
694: [15:44:27] <Pynomk> you misunderstand again.
695: [15:44:48] <Pynomk> loop should be with. But that ddoesn't change the fact that you're looking for the form ON THE BOOK.
696: [15:44:55] <Pynomk> it is not on the book, it is on the controller.
697: [15:45:01] <Pynomk> you need to exit the book scope first.
698: [15:45:06] <jheneknights> ooohhhh right
699: [15:45:10] <Pynomk> OR you could use $Up, or $Top
700: [15:46:31] <Pynomk> also jheneknights, public function getBook - you are doing this the hard way.
701: [15:46:39] <Pynomk> Just as my example earlier:
702: [15:46:44] <jheneknights> so $Up.$BuyerForm
703: [15:46:49] <Pynomk> yes
704: [15:46:49] * wilsonstaff quit (Ping timeout: 246 seconds)
705: [15:47:04] <Pynomk> Go up one scope level and look for BuyerFrom
706: [15:47:13] <Pynomk> jheneknights: oh wait, no. No $ on the BuyerForm
707: [15:47:22] <Pynomk> $Up.BuyerForm
708: [15:48:40] <Pynomk> jheneknights: public function getBook() {$book = Book::get()->byID($this->request->param('ID'))->first(); return $book->exists() ? $book : false; }
709: [15:48:50] <Pynomk> or even shorter
710: [15:48:53] <jheneknights> Still not working
711: [15:49:01] <jheneknights> {$Top.$BuyerForm}
712: [15:49:03] <Pynomk> jheneknights: public function getBook() { return Book::get()->byID($this->request->param('ID'))->first(); }
713: [15:49:13] <kinglozzer> jeroenem: {$Up.BuyerForm}
714: [15:49:14] <Pynomk> jheneknights: ok, so again with a php example
715: [15:49:18] <kinglozzer> No second $
716: [15:49:19] <jheneknights> no I ment {$Top.BuyerForm}
717: [15:49:22] <Pynomk> $this->$something()->$otherthing
718: [15:49:31] <Pynomk> Right, ok.
719: [15:49:33] <Pynomk> that will work.
720: [15:51:12] <Pynomk> jheneknights: exactly this http://pastie.org/9747061 except change line 50 from $BuyerFrom to $Top.BuyerForm
721: [15:51:21] <jheneknights> Nope, still fails
722: [15:51:59] <kinglozzer> jheneknights: Try putting $BuyerForm before your <% with Book %> and see if it appears
723: [15:52:22] <Pynomk> Or after.
724: [15:52:32] <jheneknights> tried wth both "with" and "loop"
725: [15:52:35] <jheneknights> still failed
726: [15:52:38] <Pynomk> no NO LOOP
727: [15:52:43] <Pynomk> it's not a list/array
728: [15:52:45] <jheneknights> OK Let me do that
729: [15:52:48] <Pynomk> it's an object
730: [15:52:58] <jheneknights> Yes, I used with and the form still dint show up
731: [15:53:13] <Pynomk> with $Top it should
732: [15:54:50] <jheneknights> Hey Kinglozzer, it still doesnt show up even outside the book loop
733: [15:55:05] <jheneknights> book-with, I mean
734: [15:55:13] <Pynomk> :>
735: [15:55:35] <kinglozzer> jheneknights: Try not adding it to $Data in your controller
736: [15:55:46] <kinglozzer> You've already got the form available, so you don't need to customise to add it again
737: [15:55:51] <Pynomk> http://pastie.org/9747043
738: [15:55:51] <jheneknights> Ok
739: [15:56:12] <Pynomk> [15:33] <Pynomk> jheneknights: you don't need to decorate with the form. [15:33] <Pynomk> err customise()
740: [15:56:28] <kinglozzer> Yeah so just remove the 'BuyerForm' => $this->BuyerForm() line
741: [15:56:32] <kinglozzer> it's not doing anything
742: [15:57:55] <Pynomk> well it probably is, it's probably preventing the form from displaying
743: [15:57:57] <jheneknights> Yewp still nothing
744: [15:58:10] <jheneknights> I removed it
745: [15:58:15] <jheneknights> And still nothing
746: [15:58:21] <jheneknights> Nway tried this -- http://pastie.org/9747086
747: [15:58:27] <jheneknights> And THIS WORKED
748: [15:58:35] <jheneknights> Yeaaeey
749: [15:58:37] <jheneknights> :)
750: [15:58:39] <Pynomk> you also do not need to renderWith
751: [15:58:48] * wmk quit (Ping timeout: 256 seconds)
752: [15:59:31] <jheneknights> How Do it render then
753: [16:01:10] <Pynomk> function show() { $book = Book::get()->byID($this->request->getParam('ID')); if(!$book->exists()) $this->httpError(404, '<h2>Sorry that Book could not be found</h2>'); return array('Book'=>$book); }
754: [16:03:22] <jheneknights> throws an error dude
755: [16:05:13] <Pynomk> http://pastie.org/9747096
756: [16:10:32] <Pynomk> jheneknights: ^
757: [16:11:58] <Pynomk> if it throws an error, you should tell me what the error is
758: [16:16:37] <jheneknights> Am implementing it, al let u know
759: [16:16:54] <Pynomk> it's just a refactor of what you already have
760: [16:20:06] * micmania1 has joined #silverstripe
761: [16:24:48] * micmania1 quit (Ping timeout: 258 seconds)
762: [16:33:42] * jeroenem quit (Quit: Page closed)
763: [16:37:34] * Eliseth quit (Ping timeout: 250 seconds)
764: [16:53:43] * NETim has joined #silverstripe
765: [16:54:06] <NETim> Morning. Any way of setting the admin password for a site using sake?
766: [16:58:45] <Pynomk> well yeh, probably
767: [16:58:49] <Pynomk> if you make a task for it.
768: [16:59:10] * unsignedint quit (Ping timeout: 244 seconds)
769: [16:59:18] <Pynomk> sake is cli though, you don't need credentials for it.
770: [16:59:19] <NETim> Thanks, helpful as always :)
771: [16:59:37] <Pynomk> but for explicitly setting a password, you'll need to build a task for it, then run it with sake.
772: [16:59:45] <Pynomk> there's nothing built in, if that's what you're asking.
773: [16:59:51] <Pynomk> try findorcreateadmin
774: [16:59:55] <Pynomk> iirc is a method somewhere
775: [17:09:21] <Pynomk> cannay find. Something like that though.
776: [17:09:42] <Pynomk> OOOH HEAVEN IS A PLACE ON EARTH
777: [17:09:43] * Pynomk quit ()
778: [17:15:43] * kinglozzer quit ()
779: [17:18:02] * Frans_Amsterdam quit (Quit: Textual IRC Client: www.textualapp.com)
780: [17:18:10] * NETim quit (Ping timeout: 246 seconds)
781: [17:32:46] * Otterpocket quit (Quit: Otterpocket)
782: [17:53:49] * wmk has joined #silverstripe
783: [18:13:02] * ThePeach quit (Quit: leaving)
784: [18:45:46] * Kingy[a] is now known as Kingy
785: [18:46:14] <Kingy> morning
786: [18:56:10] * jheneknights quit (Ping timeout: 246 seconds)
787: [18:59:30] <Kingy> JeremyRoundill: NiP about to start
788: [18:59:35] <Kingy> http://www.twitch.tv/dreamhackcs
789: [19:04:09] <Kingy> both US teams out lulfail
790: [19:07:12] <JeremyRoundill> Yeah
791: [19:07:16] <JeremyRoundill> Expected.
792: [19:07:23] * Stomach has joined #silverstripe
793: [19:07:24] <JeremyRoundill> Hellraisers won both games.
794: [19:07:30] <Kingy> yeah
795: [19:07:36] <Kingy> fnatic destroyed everyone
796: [19:07:36] <JeremyRoundill> I didn't see Fnatic vs. whoever the winner of the bottom bracket was.
797: [19:07:37] <Kingy> hackers :P
798: [19:07:51] <JeremyRoundill> Nah, Fnatic lost to Hellraisers.
799: [19:07:54] <Kingy> oh wait
800: [19:07:56] <Kingy> yeah jsut saw that
801: [19:07:57] <Kingy> interesting
802: [19:08:04] <Kingy> is Hellraisers that good?
803: [19:08:08] <JeremyRoundill> I only managed to catch 3 games.
804: [19:08:13] * unsignedint has joined #silverstripe
805: [19:08:16] <JeremyRoundill> Yeah, Hellraisers is good.
806: [19:08:23] <JeremyRoundill> They played really well
807: [19:08:31] <JeremyRoundill> Simple destroyed JW
808: [19:08:34] <JeremyRoundill> It was crazy
809: [19:08:39] <Kingy> nice
810: [19:09:34] <Kingy> I was just watching Na`vi v Flipsid3
811: [19:09:38] <Kingy> Na`vi destroying them
812: [19:09:42] <Kingy> 7-1 when I left
813: [19:10:17] <JeremyRoundill> :P
814: [19:10:26] <JeremyRoundill> I've got the stream up and running.
815: [19:10:33] <JeremyRoundill> I wanna see NiP wreck this game.
816: [19:10:35] <Kingy> Na`vi or NiP?
817: [19:11:20] <Kingy> they're winning 14-3 at the moment lol
818: [19:11:32] <Kingy> commentators saying they're playing sloppy lol
819: [19:13:40] <Kingy> cobblestone
820: [19:14:58] <JeremyRoundill> Eww
821: [19:14:59] <Kingy> nope
822: [19:15:00] <JeremyRoundill> Cobblestone.
823: [19:15:00] <Kingy> overpass
824: [19:15:09] <JeremyRoundill> I played my first game of Cobblestone last night.
825: [19:15:15] <JeremyRoundill> Aaaabsolutely disgusting.
826: [19:15:19] <JeremyRoundill> I think we won too.
827: [19:15:20] <Kingy> played cobble HEAPS back in 1.6
828: [19:15:23] <JeremyRoundill> It was just really gross.
829: [19:15:25] <Kingy> loved that map
830: [19:15:28] <JeremyRoundill> It's waaaay too bit.
831: [19:15:30] <JeremyRoundill> *big
832: [19:15:31] <Kingy> yeah!
833: [19:15:35] <Kingy> 5v5 on it is crazy
834: [19:15:42] <Kingy> was great for like 12v12
835: [19:15:46] <JeremyRoundill> Hahaha
836: [19:15:49] <JeremyRoundill> 12v12
837: [19:15:51] <JeremyRoundill> Hectic.
838: [19:15:57] <Kingy> well 1.6 was all casual
839: [19:16:06] <Kingy> cs:go is the first time i've ever played legit comp lol
840: [19:16:07] <JeremyRoundill> 16v16 and 32v32 used to be awesome in SS:T
841: [19:16:11] <JeremyRoundill> :D
842: [19:16:34] <Kingy> seized going for the 2v1 clutch to win it
843: [19:16:39] <Kingy> fails
844: [19:17:16] * Olliepop has joined #silverstripe
845: [19:17:32] <JeremyRoundill> What a name for a team
846: [19:17:35] <JeremyRoundill> Planet Key
847: [19:17:40] <Kingy> yeah i know
848: [19:17:46] <Kingy> seems like they should be from NZ
849: [19:18:51] <Kingy> jesus no mucking around is there lol
850: [19:19:12] <JeremyRoundill> Yeah
851: [19:19:22] <JeremyRoundill> It's because the commentary is quite bad.
852: [19:19:28] <JeremyRoundill> They don't lead into the game.
853: [19:19:42] <Kingy> raped
854: [19:19:42] <JeremyRoundill> They just talk until the game's going.
855: [19:19:59] <Kingy> mirage is fully CT sided
856: [19:20:04] <Kingy> it's 15-8 now lol
857: [19:20:12] <JeremyRoundill> Yeah.
858: [19:20:25] <JeremyRoundill> Except if you're fnatic vs hellraisers.
859: [19:21:22] <JeremyRoundill> What the hell
860: [19:21:36] <JeremyRoundill> They just won the second round after losing the pistol
861: [19:21:42] <Kingy> friberg ftw
862: [19:22:17] <Kingy> na'vi win
863: [19:22:23] <JeremyRoundill> Yeah
864: [19:23:24] <Kingy> in their groove now
865: [19:23:43] <Kingy> i couldn't imagine this pressure
866: [19:25:16] <Kingy> friberg has some serious aim!!
867: [19:25:30] * unsignedint quit (Quit: Lost terminal)
868: [19:25:35] <JeremyRoundill> I can't watch properly atm :)
869: [19:25:37] <JeremyRoundill> Work :P
870: [19:25:49] <Kingy> haha 2 screens
871: [19:26:01] <JeremyRoundill> Same
872: [19:26:02] * Fuxo has joined #silverstripe
873: [19:26:06] <Kingy> blatantly sitting on the second screen :P
874: [19:26:07] <Kingy> fullscreen
875: [19:26:08] <JeremyRoundill> But I can't focus on the pre-fire/aim
876: [19:26:14] <JeremyRoundill> Mine's half of my second screen
877: [19:26:38] <Kingy> i thought get_right was their awper
878: [19:28:32] <JeremyRoundill> Dunno. :P
879: [19:28:59] <Kingy> Mikalele or whatever is going atm
880: [19:30:55] <Kingy> nice
881: [19:31:04] <JeremyRoundill> These 4ks seem to be what makes rounds.
882: [19:34:44] <Kingy> lol man the follow the nade is sweet
883: [19:35:18] * jedateach has joined #silverstripe
884: [19:41:09] <Kingy> omg he's actually dakdaking
885: [19:41:19] <Kingy> wattadick lol
886: [19:42:05] <JeremyRoundill> Yup
887: [19:44:05] * helenclarko has joined #silverstripe
888: [19:45:25] * Fuxo quit (Quit: Leaving)
889: [19:46:21] <Kingy> troubly is good
890: [19:47:51] <helenclarko> Hey all, Im creating a new product page which displays a list of products. I am currently experiencing the following error "[User Error] Uncaught LogicException: filter can't be called on an UnsavedRelationList." when trying to add products to the cart for the first time from this page. However, if I were to add a product on an original product page and then come back to my new products page, everything will work fine with
891: [19:47:57] <helenclarko> WHY?
892: [19:48:14] * Ryan-Toast has joined #silverstripe
893: [19:48:26] <JeremyRoundill> Looks like your cart hasn't been created yet.
894: [19:48:47] <JeremyRoundill> If I saw that on an admin panel, I'd suggest you hadn't saved the parent page.
895: [19:49:02] <Kingy> game set and match
896: [19:49:10] <JeremyRoundill> Yup.
897: [19:49:18] <JeremyRoundill> Who are the other teams in the group?
898: [19:49:25] <Kingy> LDLC
899: [19:49:30] <Kingy> ESC Gaming
900: [19:49:40] <Kingy> so LDLC v NiP
901: [19:49:49] <JeremyRoundill> Haha
902: [19:49:57] <JeremyRoundill> It'll be LDLC and NiP winning this group then.
903: [19:50:01] <helenclarko> Thanks JeremyRoundill, I'll look into that.
904: [19:50:02] <Kingy> yeah
905: [19:50:06] <Kingy> LDLC beat ESC 16:4
906: [19:50:22] <JeremyRoundill> I want more games like the fnatic v Hellraisers one
907: [19:50:29] <Kingy> this next one should be good
908: [19:50:56] <JeremyRoundill> Gotta waaaaaaait
909: [19:53:09] <Kingy> I feel sorry for this C9 guy
910: [19:53:13] <Kingy> he must be gutted
911: [19:53:22] <JeremyRoundill> Yeah
912: [19:53:26] <Kingy> now he's gotta do interviews and shit
913: [19:53:29] <JeremyRoundill> Well, sorta.
914: [19:53:34] <JeremyRoundill> Still get qualification money
915: [19:53:38] <JeremyRoundill> +2k or w/e it was
916: [19:53:42] <Kingy> yeah true
917: [19:54:05] <JeremyRoundill> And I think they would have realised fnatic + hellraisers would wreck them
918: [19:54:36] <Kingy> I wish more people watched this sit
919: [19:54:38] <Kingy> shit
920: [19:54:43] <Kingy> I wanna put it on the TV wall :P
921: [19:54:46] <Kingy> or projector
922: [19:54:51] <Kingy> coz fuck the market right lolol
923: [19:55:12] <Kingy> opening auction doesn't even happy for another hour so pffft
924: [19:56:05] <JeremyRoundill> :D
925: [19:56:18] <JeremyRoundill> Auction?
926: [19:56:21] <JeremyRoundill> Where do you work?
927: [19:56:23] <Kingy> I work at NZX
928: [19:56:27] <JeremyRoundill> Ha
929: [19:56:31] <JeremyRoundill> Do it!
930: [19:57:01] <Kingy> don't even have access to the rooms to do it
931: [19:57:16] * clairef has joined #silverstripe
932: [19:57:32] <JeremyRoundill> Break in!
933: [19:57:55] * micmania1 has joined #silverstripe
934: [19:59:28] * Frans_Amsterdam has joined #silverstripe
935: [20:02:00] * veb has joined #silverstripe
936: [20:02:31] * micmania1 quit (Ping timeout: 264 seconds)
937: [20:02:47] <Kingy> JeremyRoundill: that'd go down well haha
938: [20:03:17] <Frans_Amsterdam> hi, i like to know a bit about the confirmedPasswordField
939: [20:03:52] <Ryan-Toast> Frans_Amsterdam: It has two fields. You’re welcome.
940: [20:06:23] <Frans_Amsterdam> ;-) I have it in a form and during testing it returns in a var_dump 2 different passwords. Where does it checks the 2 passwords?
941: [20:06:30] <JeremyRoundill> http://api.silverstripe.org/3.1/class-ConfirmedPasswordField.html
942: [20:12:42] * Stomach quit (Quit: zzz)
943: [20:15:42] <JeremyRoundill> Overpass again.
944: [20:15:43] <JeremyRoundill> wat
945: [20:15:44] <Kingy> JeremyRoundill: overpass
946: [20:15:45] <Kingy> wtf
947: [20:15:45] <Kingy> lol
948: [20:16:09] <Kingy> how does this work JeremyRoundill
949: [20:16:27] <JeremyRoundill> Ban-ban-ban-ban-random map
950: [20:16:42] <JeremyRoundill> Clearly their RNG isn't random
951: [20:17:14] <Kingy> lol
952: [20:18:00] <JeremyRoundill> LDLC vetoed Mirage
953: [20:18:05] <JeremyRoundill> Dangerous.
954: [20:18:17] <Ryan-Toast> Random number generators are so fucking ineteresting.
955: [20:19:12] <JeremyRoundill> The secret is it's all a lie.
956: [20:20:02] <Ryan-Toast> “Vacuum noise is one of the ultimate sources of randomness because it is intrinsically broadband and its unpredictability is guaranteed by quantum theory. Because of this, we are able to generate billions of random numbers every second.”
957: [20:20:02] <Ryan-Toast> Read more at: http://phys.org/news/2012-04-fastest-random-silence.html#jCp
958: [20:20:06] <Kingy> HOLYYY SHIT
959: [20:20:08] <JeremyRoundill> Burst fire :O
960: [20:20:32] <Kingy> that was good
961: [20:20:42] <JeremyRoundill> Yeah
962: [20:20:49] <JeremyRoundill> LDLC was a bit flustered
963: [20:26:19] <Kingy> JeremyRoundill: is this a CT map
964: [20:26:20] <Kingy> ?
965: [20:26:31] <JeremyRoundill> Don't even know.
966: [20:26:35] <JeremyRoundill> I'd guess it is.
967: [20:26:41] <Kingy> haha yeah I played it once
968: [20:26:43] <Kingy> lost 16-1
969: [20:26:48] <JeremyRoundill> I've only played overpass a few times
970: [20:27:34] <Kingy> this will be tight
971: [20:28:14] <JeremyRoundill> For sure
972: [20:28:32] <JeremyRoundill> Looks like it'll all be balanced on the pistol round of next half.
973: [20:30:25] <JeremyRoundill> "What a turn-on by NiP"
974: [20:30:28] <JeremyRoundill> Great commentary
975: [20:30:46] <Kingy> rofl
976: [20:30:53] <Kingy> Mikalele needs a big tournament I feel
977: [20:32:05] <JeremyRoundill> This is it :)
978: [20:32:31] <Kingy> lol
979: [20:34:36] * Keith_ has joined #silverstripe
980: [20:42:03] <Ryan-Toast> Looking for feedback on my gridfield, adrexia: http://i.imgur.com/0O0qIKj.jpg
981: [20:43:25] <JeremyRoundill> Sheeeet!
982: [20:43:29] <JeremyRoundill> 5 rounds T-side
983: [20:44:11] <JeremyRoundill> Ryan-Toast: Looks good, but none of the buttons work
984: [20:44:13] <JeremyRoundill> :P
985: [20:44:15] <adrexia> overall, quite nice! could probably use a little less padding on the inner rows. The link existing is a bit invisible
986: [20:44:20] <adrexia> lol
987: [20:44:29] <Ryan-Toast> JeremyRoundill: :P
988: [20:44:45] <Ryan-Toast> adrexia: yeah, that’s a disabled state :)
989: [20:44:53] <adrexia> oh!
990: [20:45:10] <adrexia> in that case its fine. Though I'm a fan of the disabled state being completely not there ;)
991: [20:45:16] <Ryan-Toast> adrexia: I think you’re right about the row sizing though
992: [20:45:40] <Ryan-Toast> link existing is disabled in neormal SS and becomes enabled when you enter something into the field.
993: [20:45:58] <adrexia> it just takes up a little too much vertical space if you really do have one line items like that. Though it'd likely work with a bit more text.
994: [20:46:20] <adrexia> oh, you mean inactive?
995: [20:46:26] <Ryan-Toast> Inactive, yes.
996: [20:46:33] <Ryan-Toast> well the class is disabled.
997: [20:46:33] * spekulatius has joined #silverstripe
998: [20:46:39] <adrexia> hmm, I think there is some UX issues with the current one too
999: [20:46:55] <Ryan-Toast> in the fact that no-one uses it or knows what rit does? :P
1000: [20:48:03] <Kingy> JeremyRoundill: gonna be hard to come back from here I feel
1001: [20:48:11] <adrexia> hahah
1002: [20:48:13] <JeremyRoundill> Yeah, looks like it
1003: [20:49:02] <adrexia> also, its a two step action + typing. with a button that sits there doing nothing until you select an item
1004: [20:49:05] <Kingy> friberggggg
1005: [20:49:06] <JeremyRoundill> Holy crap
1006: [20:49:34] <adrexia> I get the wanting people not to select the wrong thing, but it just feels a bit clumsy
1007: [20:50:50] <JeremyRoundill> Far out.
1008: [20:50:54] <adrexia> and the label for it is the submit button, which is set to look disabled, and is on the opposite side to how we read
1009: [20:50:55] <JeremyRoundill> I have to cycle across town in a few minutes
1010: [20:50:59] <JeremyRoundill> And it's pissing down.
1011: [20:51:17] <Kingy> why did he go
1012: [20:51:19] <adrexia> its sunny ehre
1013: [20:51:51] <JeremyRoundill> Hopefully the rain lets up in like 10 minutes :O
1014: [20:52:12] <Kingy> gameover
1015: [20:52:28] <JeremyRoundill> Yup
1016: [20:53:27] * Keith_ quit (Quit: Page closed)
1017: [20:54:31] * micmania1 has joined #silverstripe
1018: [20:56:37] <Kingy> JeremyRoundill: come back is real
1019: [20:56:42] <JeremyRoundill> Yeah
1020: [20:56:47] <JeremyRoundill> I'll have to miss the rest of it.
1021: [20:56:52] <JeremyRoundill> Hurry up and lose, NiP
1022: [21:00:22] * Keith_ has joined #silverstripe
1023: [21:01:35] <Keith_> Where would I find example templates for a single page site?
1024: [21:01:57] <Keith_> http://www.stripetheweb.com/ is an an example of what I looking for as a template
1025: [21:11:24] <Olliepop> I need this field to PartialMatch every item in the array, is there a way to do that? Currently it returns all objects which match one element. 'Address:PartialMatch' => array('Queen', 'Street', 'Auckland')
1026: [21:13:06] <adrexia> Keith_ it really depends on how you want to build and manage it. I'm not sure there are any open sourced one page themes though
1027: [21:16:01] * Stomach has joined #silverstripe
1028: [21:21:15] * Frans_Amsterdam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1029: [21:26:58] * UndefinedOffset quit (Quit: Leaving.)
1030: [21:27:05] <Keith_> Thanks for that. I was hoping for some open source examples.
1031: [21:29:20] * UndefinedOffset has joined #silverstripe
1032: [21:31:10] * UndefinedOffset quit (Client Quit)
1033: [21:32:51] * UndefinedOffset has joined #silverstripe
1034: [21:33:22] * UndefinedOffset quit (Client Quit)
1035: [21:42:38] * mahfuz has joined #silverstripe
1036: [21:45:05] <novaweb> Keith_ if you look in to bootstrap silverstripe themes that could prove helpful
1037: [21:46:58] <novaweb> just remove navigation
1038: [21:55:10] <wracu_> derping here... how can I access a URL parameter (ie. ?id=123123) in a build task?
1039: [21:55:11] * UncleCheese has joined #silverstripe
1040: [21:56:04] <JeremyRoundill> Kingy: Who won?
1041: [21:56:10] <Kingy> LDLC
1042: [21:56:15] <Kingy> they were 14-6
1043: [21:56:19] <Kingy> won 16-14
1044: [21:56:24] <JeremyRoundill> Far out
1045: [21:56:31] <Kingy> should've gone to OT
1046: [21:56:31] <JeremyRoundill> When's the next NiP game?
1047: [21:56:44] <Kingy> LDLC won the last round on eco
1048: [21:56:49] <JeremyRoundill> Woah
1049: [21:56:55] <JeremyRoundill> How does OT work with DH?
1050: [21:56:59] <Kingy> ermm after this one 11:30 i think
1051: [21:57:16] <Kingy> not sure of how map/sides work
1052: [21:57:21] <Kingy> but i think you just go until you win by 2
1053: [21:57:44] <JeremyRoundill> True
1054: [21:57:46] <JeremyRoundill> That's neat
1055: [22:04:33] <Kingy> JeremyRoundill: this game is pretty tight
1056: [22:04:38] <Kingy> 9-8 to ESC at the moment
1057: [22:07:46] * wmk quit (Ping timeout: 250 seconds)
1058: [22:10:04] <JeremyRoundill> What's up with this Mirage side bias?
1059: [22:10:12] <JeremyRoundill> T-side is doing better in the past few games.
1060: [22:12:14] <Kingy> haha yeah crazy
1061: [22:14:18] * DimiStripe quit (Quit: DimiStripe)
1062: [22:16:10] * pippy has joined #silverstripe
1063: [22:23:59] <Kingy> far out JeremyRoundill no break basically
1064: [22:24:36] <JeremyRoundill> Yeah, I was just thinking that about Thorin and Fifflaren.
1065: [22:24:45] <JeremyRoundill> I saw them go live at 10:30 last night.
1066: [22:24:49] <JeremyRoundill> And they've been going since.
1067: [22:24:52] <JeremyRoundill> That's 13 hours now.
1068: [22:27:49] <Kingy> yeah fuck that lol
1069: [22:30:53] <JeremyRoundill> How is Thorin still talking?
1070: [22:31:01] <JeremyRoundill> I run out of things to say in less than an hour.
1071: [22:31:08] <JeremyRoundill> Unless you get me drunk talking about politics.
1072: [22:31:59] <Snowman23> Which is the worst idea in the world
1073: [22:32:07] <JeremyRoundill> Yarp.
1074: [22:36:44] * simon_w|air has joined #silverstripe
1075: [22:37:07] <JeremyRoundill> Cache
1076: [22:37:08] * simon_w|air is now known as Guest21488
1077: [22:37:16] <Kingy> hmm
1078: [22:37:22] <Kingy> this is the one we played the other night right
1079: [22:37:56] <JeremyRoundill> Yup
1080: [22:37:57] <JeremyRoundill> Pretty sure
1081: [22:38:17] <Kingy> feck I got a team lunch soon
1082: [22:38:17] <Kingy> lol
1083: [22:38:23] <Kingy> will miss out
1084: [22:38:35] * spronk2 has joined #silverstripe
1085: [22:38:43] <JeremyRoundill> I've gotta grab some food too.
1086: [22:38:50] <JeremyRoundill> Ahh well. I'll miss the midgame
1087: [22:38:53] <JeremyRoundill> Least important part :P
1088: [22:40:34] <Ryan-Toast> Stomach: http://silverstripe.uservoice.com/forums/251266-new-features/suggestions/6187340-allow-the-site-tree-sidebar-when-editing-a-page-to
1089: [22:40:38] <Kingy> NiP really don't do pistol rounds
1090: [22:40:48] <Stomach> Ryan-Toast ?
1091: [22:40:53] <Ryan-Toast> Stomach: looking at you, brah
1092: [22:41:05] <Stomach> you want me to do a PR for you?
1093: [22:41:47] <Ryan-Toast> Someone can if they want, I don’t really care :P
1094: [22:41:58] <Stomach> lol
1095: [22:42:06] <UncleCheese> what do y'all think of <% require %> tags?
1096: [22:42:06] <Kingy> clutch
1097: [22:42:07] <Kingy> haha
1098: [22:42:15] <Stomach> UncleCheese - hate them
1099: [22:42:18] <UncleCheese> +1
1100: [22:42:45] <UncleCheese> just doesn't feel like something that belongs on the template to me.. if you're going to do that, you might as well just write proper html tags, right?
1101: [22:43:06] <UncleCheese> and... can anyone confirm if you can pass variables, such as $ThemeDir to them?
1102: [22:43:17] <Ryan-Toast> UncleCheese: I think that kind of shit should be in your init() function.
1103: [22:43:22] <UncleCheese> I know they don't support constants, and that's quite shit
1104: [22:43:28] * Guest21488 is now known as simon_w|air
1105: [22:43:38] <UncleCheese> also, can they be wrapped in conditionals?
1106: [22:43:46] <Ryan-Toast> UC: yeah
1107: [22:44:05] <UncleCheese> i just can't see the advantage.. they look like just a crippled form of the Requirements:: static methods
1108: [22:45:32] <Ryan-Toast> UncleCheese: personally I don’t use them.
1109: [22:46:24] <Ryan-Toast> Unclecheese: This is how I send template variables to them: https://github.com/Rhym/ss_boilerplate/blob/master/boilerplate/code/Modules/ContactForm/code/ContactPage.php#L134
1110: [22:46:55] <Kingy> JeremyRoundill: wow
1111: [22:48:12] <Kingy> these fuckers are good
1112: [22:48:16] <Kingy> Blacklite: you watching at all
1113: [22:48:59] <JeremyRoundill> NiP is just destroying now.
1114: [22:49:03] * gelignite quit (Quit: http://bit.ly/nkczDT)
1115: [22:49:35] <Kingy> yeah crazy good
1116: [22:50:45] <Kingy> CT sided JeremyRoundill ?
1117: [22:50:50] <JeremyRoundill> For sure.
1118: [22:51:02] <JeremyRoundill> It tends to be that defuse maps are CT sided.
1119: [22:51:03] <Kingy> so if ESC get 6-7 rounds they'll be in with a chance
1120: [22:51:11] <Stomach> UncleCheese - we dont use the requirements system at all
1121: [22:51:16] <JeremyRoundill> If they get 4-5, they'll have a chance
1122: [22:51:16] <Stomach> I'm sure we've had this chat before :D
1123: [22:51:20] <JeremyRoundill> 6-7 is kinda big
1124: [22:51:31] <Kingy> fark AWP king
1125: [22:51:51] <Kingy> Xizt with the dakdak lol
1126: [22:52:01] <JeremyRoundill> Z1
1127: [22:52:46] <Kingy> rofl
1128: [22:54:11] <Kingy> 8 win streak
1129: [22:55:40] <JeremyRoundill> Wat
1130: [22:55:55] <Kingy> lol almost teamkill going on
1131: [22:56:55] * Hailwood has joined #silverstripe
1132: [22:58:03] <UncleCheese> Stomach you've got the right idea
1133: [22:58:27] <UncleCheese> however, when you want to use a thirdparty module that adds frontend functionality, it gets awkward
1134: [22:58:56] <Kingy> CLUTCHHHHH
1135: [22:59:24] <Kingy> man they get these replays up fast lol
1136: [23:00:11] <Kingy> 11-4
1137: [23:00:21] <Kingy> rght lunch time now
1138: [23:02:12] <Stomach> nah, we can run global stuff now ;) as long as they only use jquery as a dependency
1139: [23:04:19] <mahfuz> Hi everyone.
1140: [23:04:24] <UncleCheese> hey!
1141: [23:05:01] <Snowman23> Hey, listen!
1142: [23:05:29] <simon_w|air> Mmmm, hay
1143: [23:05:42] <mahfuz> I have a holder page for a page type. Is there any limitation for the number of pages it can hold as they will show up in CMS Page tree?
1144: [23:06:03] <simon_w|air> mahfuz, nope
1145: [23:06:20] <JeremyRoundill> Snowman23: Is that a really esoteric CS joke?
1146: [23:06:28] <Snowman23> JeremyRoundill: Zelda
1147: [23:06:43] <JeremyRoundill> hey->hey listen->navi->Na'Vi->DreamHack
1148: [23:06:44] <Snowman23> https://www.youtube.com/watch?v=duRO3noyAKU
1149: [23:06:49] <Snowman23> lol
1150: [23:06:57] <Snowman23> UncleCheese said hey
1151: [23:07:04] <JeremyRoundill> Full circle!
1152: [23:07:07] <JeremyRoundill> Circle of life!
1153: [23:07:25] <JeremyRoundill> Jesus, Navi was just the most annoying thing though.
1154: [23:07:27] <mahfuz> simon_w|air: thanks. it will just not look good in the CMS
1155: [23:08:42] <Hailwood> Hey guys, if my Model has $has_one = array('Customer' => 'Member'); then in the CSV how do I set that? do I add a CustomerID column with the id? or a Customer column with the id?
1156: [23:20:04] <novaweb> Hailwood - $summary_fields
1157: [23:20:34] <novaweb> summary fields on the Model is what the CSV exports.
1158: [23:26:06] <JeremyRoundill> Kingy: You're really missing out, this is hectic.
1159: [23:27:08] <JeremyRoundill> Kingy: Holy moley! What a finish.
1160: [23:32:55] * veb quit (Quit: My Mac has gone to sleep. ZZZzzz…)
1161: [23:33:08] * veb has joined #silverstripe
1162: [23:39:54] * micmania1 quit (Quit: micmania1)
1163: [23:52:29] * micmania1 has joined #silverstripe
1164: [23:57:07] <novaweb> What template does ModelAdmin render DataObjects with?
1165: [23:57:18] <novaweb> I need to add custom CMS actions to the interface
1166: [23:57:44] <novaweb> That could be a really silly question, I'm poked.. meh
1167: [23:58:18] <Ryan-Toast> Gridfields
1168: [23:58:29] <Ryan-Toast> novaweb: ^

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