#silverstripe IRC Log

IRC log for 17 April 2014

All timestamps are in UTC.

1: [00:00:10] * Motoservo quit (Ping timeout: 276 seconds)
2: [00:00:11] * Motoservo_ is now known as Motoservo
3: [00:00:14] * antmas plays some deadmau5
4: [00:00:34] * spronk raises his weapon
5: [00:01:08] * simon_w fixes about getting some lunch
6: [00:01:19] * antmas hi5's spronk
7: [00:01:22] <antmas> o/
8: [00:01:28] <Ryan-Toast> spronk: and it’s over?
9: [00:01:40] <spronk> \o !
10: [00:01:40] <antmas> o-
11: [00:01:46] <antmas> :D
12: [00:01:54] <antmas> Ryan-Toast: shhh, go back to Ellie Goulding
13: [00:01:56] <antmas> :P
14: [00:02:02] <ss23> Hey, Ellie Goulding isn't bad!
15: [00:02:06] <Ryan-Toast> つ ◕_◕ ༽つ Raise your weapons
16: [00:02:14] <Ryan-Toast> I like Ellie Goulding :)
17: [00:02:20] <antmas> o.O
18: [00:02:22] <antmas> guis
19: [00:02:45] <Ryan-Toast> DON’T LIKE THE THINGS I DON’T LIKE
20: [00:02:45] * antmas secretly doesn't mind EG
21: [00:03:03] <antmas> ;)
22: [00:04:00] <ss23> つ ◕_◕ ༽つ Raise your weapons
23: [00:04:08] <ss23> Listening to metal was so easy, so easy
24: [00:04:38] <spronk> o_O
25: [00:04:55] <Colin[pi]> ss23: love that track
26: [00:05:08] <ss23> mm
27: [00:05:09] <ss23> :D
28: [00:05:17] <Colin[pi]> madeon remix was good too
29: [00:05:25] <Danae> why does this design have a "delete all" button right next to a "select all" button ._.
30: [00:05:34] <ss23> XD
31: [00:05:37] <Colin[pi]> Danae: because fuck you, that's why
32: [00:05:38] <ss23> Danae: Keep you on your toes!
33: [00:05:40] <Colin[pi]> ;)
34: [00:05:44] <Danae> hahaha
35: [00:05:52] <Ryan-Toast> ss23: https://www.youtube.com/watch?v=59TPLsUqePE&list=PL016DF490B141ECBD
36: [00:05:57] <Danae> with any luck there won't even be a confirmation
37: [00:06:04] <Colin[pi]> what could go wrong??
38: [00:06:18] <Danae> and there'll be a sweet animation of all the records just cascading into nothingness
39: [00:06:32] <simon_w> ss23, are you going to feed me or what? :p
40: [00:06:39] <ss23> simon_w: Aww, you want noms today? :O
41: [00:06:39] <ss23> Yes!
42: [00:06:40] <ss23> :D
43: [00:06:47] <ss23> simon_w: boogerfood?
44: [00:07:01] <Colin[pi]> Danae: like this: http://hugoware.net/404
45: [00:07:16] <ss23> hahha Colin[pi]
46: [00:07:17] <ss23> that's cool
47: [00:07:17] <ss23> :D
48: [00:07:33] * Bollig|DesignCty has joined #silverstripe
49: [00:07:33] <Colin[pi]> yeah one of the coolest 404's I've seen
50: [00:07:37] <antmas> Ryan-Toast: love that track
51: [00:07:45] <simon_w> ss23, I suppose so
52: [00:07:47] <antmas> Ryan-Toast: reminds me a bit of Pretty Lights
53: [00:07:49] <ss23> I like how with JavaScript n shit, like... the buttons are still clickable
54: [00:07:55] <ss23> simon_w: Do you have another preference? We could hit up The Grand or something
55: [00:07:56] <Danae> oooh that's awesome
56: [00:08:07] <simon_w> ss23, I'm not putting footwear on :p
57: [00:08:16] <ss23> hahaha
58: [00:08:20] <ss23> Burgerfuel it is!
59: [00:08:23] <ss23> simon_w: You want it now or a bit later?
60: [00:08:30] <simon_w> Now
61: [00:08:40] <Ryan-Toast> antmas: one after it is great too.
62: [00:08:42] <ss23> Okay, simon_w, 5 minutes you be here, or less, or more?!
63: [00:08:42] <ss23> :O
64: [00:08:45] <Danae> woah http://niravigad.com/responsive_man/
65: [00:08:56] <simon_w> ss23, 5-ish
66: [00:09:02] <simon_w> Depends on the traffic lights
67: [00:09:20] <simon_w> Also, leaving now
68: [00:09:28] <Colin[pi]> Danae: heh that's pretty neat
69: [00:09:38] <Danae> I'm pretty creeped out by it
70: [00:09:40] <Danae> haha
71: [00:09:44] <ss23> simon_w: k cya soon
72: [00:09:50] <antmas> could do some really fun things with it
73: [00:10:20] <Colin[pi]> Danae: wait wait wait... it's Flash
74: [00:10:24] <Colin[pi]> booourns booooourns
75: [00:10:26] <Danae> wait what
76: [00:10:35] <Danae> oh man
77: [00:10:38] <Danae> I thought it was cool
78: [00:10:41] <Danae> turns out I was wrong
79: [00:10:43] <Colin[pi]> BOOOO
80: [00:10:53] <Colin[pi]> you could do it with CSS3 and pngs\
81: [00:10:54] <Colin[pi]> BOOO
82: [00:11:03] <Danae> yeah that would have been so much more impressive
83: [00:11:14] <Danae> well blame the designer here for sharing it to me
84: [00:11:22] <Danae> I feel betrayed
85: [00:11:42] <Colin[pi]> classic designer
86: [00:12:16] * UncleCheese_ has joined #silverstripe
87: [00:12:18] <Danae> hahaha
88: [00:13:32] * antmas_ has joined #silverstripe
89: [00:13:44] <antmas_> Ryan-Toast: you know Pretty Lights?
90: [00:14:18] * antmas quit (Ping timeout: 240 seconds)
91: [00:14:43] <Bollig|DesignCty> The tell-tale sign for me was the fact that noscript blocked it immediately. Plus, it’s REALLY BADLY responsive. try having a tall and thin window…. odd.
92: [00:19:17] <antmas_> http://theconcourse.deadspin.com/rare-video-of-people-actually-riding-action-parks-infam-1563953390/+charliejane
93: [00:19:21] * antmas_ is now known as antmas
94: [00:19:25] <antmas> crazy
95: [00:24:49] <desperate> guys I'm still struggling with the renamin of a field in the cms
96: [00:24:53] <desperate> I have a relation
97: [00:24:55] <Ryan-Toast> antmas: yeah.
98: [00:25:16] <desperate> has_on: 'foo' => 'foo'
99: [00:25:18] <Ryan-Toast> do I look like some kind of EDM noob?
100: [00:25:38] <desperate> *one
101: [00:25:54] <desperate> then I do the following:
102: [00:25:55] <desperate> $fields = parent::getCMSFields();
103: [00:26:02] <antmas> Ryan-Toast: well, you do have a youtube playlist
104: [00:26:03] <antmas> ;P
105: [00:26:10] <antmas> jjk
106: [00:26:13] <Ryan-Toast> antmas: 3 years old :P
107: [00:27:03] <desperate> at this point I see the field in my cms labelled as 'foo'
108: [00:27:27] <desperate> then io try to rename it with: $fields->renameField('foo', bar');
109: [00:27:35] <desperate> but it has no effect
110: [00:27:48] <Danae> You could probably just go $has_one = array ('bar' => 'foo')
111: [00:27:53] <Danae> if that suits?
112: [00:27:57] <Danae> and if that works?
113: [00:28:22] <desperate> I have too many dependancies in my templates that I'd have to spend time eiting
114: [00:28:46] <Danae> dang
115: [00:32:31] <desperate> it's insane, another realtion exists and Ican rename that!
116: [00:32:34] <desperate> same logic
117: [00:35:23] * jenniferaslan quit (Quit: jenniferaslan has left the room)
118: [00:43:58] * danfo quit (Quit: danfo)
119: [00:46:00] * UncleCheese_ quit (Quit: UncleCheese_)
120: [00:47:30] * UncleCheese has joined #silverstripe
121: [00:51:47] <antmas> hmmm
122: [00:51:55] <antmas> some ominous power blips here
123: [00:52:20] <simon_w> Wasn't me!
124: [00:53:07] <antmas> my UPS has ticked twice today :(
125: [00:54:21] <ss23> Yeah, been some light dimming going on here a few times
126: [00:55:07] <Colin[pi]> is that usually indicative of something? i.e. quake?
127: [00:55:30] <ss23> Doubtful, probably just power lines being mangled somewhere in NZ with this weather
128: [00:55:38] <Colin[pi]> ah shitty weather
129: [00:55:43] <antmas> ss23: yup
130: [00:55:43] <ss23> I didn't notice any power blips during the quakes
131: [00:55:52] <antmas> man
132: [00:56:02] <antmas> our flat we just moved out of is being evacuated
133: [00:56:05] <antmas> :O
134: [00:56:08] <ss23> lol
135: [00:56:09] <Colin[pi]> what? why?
136: [00:56:09] <ss23> epic
137: [00:56:11] <spronk> heh
138: [00:56:14] <spronk> ??
139: [00:56:18] <ss23> Colin[pi]: I don't know if you saw the stuff I posted earlier... but uh
140: [00:56:21] <antmas> river close by has burst banks
141: [00:56:21] <ss23> Weather not so great here!
142: [00:56:28] <Colin[pi]> no didn't see! linky?
143: [00:56:31] <Colin[pi]> shit :(
144: [00:56:41] <antmas> not touching the house, but enough to freak CD out
145: [00:57:12] <ss23> http://earth.nullschool.net/#current/wind/surface/level/overlay=total_precipitable_water/orthographic=175.86,-41.92,1974 :D
146: [00:57:14] <antmas> funnily enough, this is the anniversay of the floods from last year
147: [00:57:16] <ss23> https://pbs.twimg.com/media/BlXsk8iCEAA0-5n.jpg:large
148: [00:57:40] <antmas> omg
149: [00:57:43] <antmas> ss23: that page
150: [00:57:45] <Colin[pi]> wow
151: [00:57:47] <antmas> is AWESOME
152: [00:57:48] <ss23> yeha, its awesome
153: [00:57:50] <ss23> :D
154: [00:57:50] <Colin[pi]> is that another cyclone?
155: [00:57:58] <ss23> Yeah, tail end of one
156: [00:57:59] <antmas> Colin[pi]: 2 cyclones
157: [00:58:03] <Colin[pi]> fuck me
158: [00:58:06] <Colin[pi]> NZ getting double teamed
159: [00:58:13] <antmas> woooooaaaah
160: [00:58:16] <antmas> big power flick here
161: [00:58:34] <simon_w> Hmm, last day at work and I've finished my documentation
162: [00:58:36] * simon_w opens Steam
163: [00:59:22] <antmas> ss23: how is that generated? not real time I assume
164: [01:00:18] <ss23> No idea sorry, antmas
165: [01:00:43] <antmas> lol look at inland aus
166: [01:00:50] <antmas> like a snail
167: [01:00:54] <Colin[pi]> heh
168: [01:01:01] <ss23> lol
169: [01:01:28] <Colin[pi]> dat globe: http://earth.nullschool.net/
170: [01:01:36] <pippy_> antmas: is uses the US national weather serivce API that probally comes from satalite date
171: [01:01:39] <pippy_> data
172: [01:01:44] <Colin[pi]> antmas: http://earth.nullschool.net/about.html
173: [01:01:51] <Colin[pi]> forecast by supercomputers updated every three hours
174: [01:02:00] <antmas> awesome
175: [01:02:04] <antmas> love stuff like that
176: [01:02:22] <ss23> http://earth.nullschool.net/#current/wind/surface/level/orthographic=-186.29,-39.83,3000 this one looks more brutal tbh
177: [01:02:32] <ss23> you can see auckland getting hammered
178: [01:02:50] <antmas> what's the difference in the layers, ss23 ?
179: [01:02:59] <ss23> No idea sorry
180: [01:03:08] <Colin[pi]> lol ss23's answer to everything
181: [01:03:09] <Colin[pi]> ;D
182: [01:03:14] <antmas> lol
183: [01:03:20] <Colin[pi]> but yeah that looks pretty brutal
184: [01:03:26] <ss23> WOAH, it cna do predicitions
185: [01:03:35] <ss23> looks like it's going to ease up for auckland, but get worse for south island?
186: [01:03:44] <Colin[pi]> in fact from a quick pan around the globe, looks like NZ is copping it the worst from almost anywhere
187: [01:03:48] <antmas> yey
188: [01:04:37] <antmas> who will be my thunder buddy?
189: [01:04:38] <Colin[pi]> are those two more cyclones further out in the pacific towards South America? :\
190: [01:04:55] <ss23> antmas: XD
191: [01:05:04] <Colin[pi]> http://earth.nullschool.net/#current/wind/surface/level/orthographic=-139.63,-43.36,1106
192: [01:05:30] <antmas> Colin[pi]: looks like they're forming yeah
193: [01:05:35] <Colin[pi]> :o
194: [01:05:36] <antmas> tis the season for it too
195: [01:05:45] <Colin[pi]> is this a common thing for NZ at this time?
196: [01:05:52] <antmas> sort of yeah
197: [01:05:53] <ss23> that big slow one in the center looks scary, but idk if that means it's going to get bigger or if it's stopping
198: [01:06:04] <antmas> but we get the dregs from cyclones that are dying
199: [01:06:16] <Colin[pi]> mm
200: [01:06:27] <Colin[pi]> luckily where I am, we usually get sweet FA... QLD cops it the most
201: [01:06:30] <Colin[pi]> and NT
202: [01:06:46] <antmas> yeah I bet the wind along the coast line there gets bad
203: [01:07:00] <Colin[pi]> Cairns got hammered the other day
204: [01:07:15] <Colin[pi]> roofs ripped off etc.
205: [01:07:16] * antmas can't stop staring at the weather globe links
206: [01:07:21] <ss23> XD
207: [01:07:42] <antmas> our neckbeards are running around checking BU statuses
208: [01:07:43] <antmas> lol
209: [01:07:52] <Colin[pi]> haha
210: [01:07:58] <ss23> BU?
211: [01:08:00] <desperate> can I do this: $res=tbl1::get()->filter(array('display' => 1))->limit(3)->order(rand);
212: [01:08:04] <antmas> backup
213: [01:08:08] <ss23> oic
214: [01:08:11] <desperate> i want to randomize the results
215: [01:08:32] <ss23> desperate: kind of
216: [01:08:38] <ss23> desperate: ->sort('RAND()')
217: [01:08:41] <ss23> desperate: It can be very slow though
218: [01:08:47] <antmas> dang
219: [01:08:52] <antmas> we having internet troubles now
220: [01:09:24] <simon_w> Sucks to be you! Steam's running fine :p
221: [01:09:38] <ss23> antmas: sux!
222: [01:09:42] <ss23> antmas: If only we were hosting your shit yo
223: [01:09:43] <ss23> :D
224: [01:09:50] <antmas> ss23: lol
225: [01:09:51] <antmas> naw
226: [01:10:02] <antmas> just local desktop access to the net is dying
227: [01:19:49] <spronk> werps
228: [01:21:26] <desperate> thanks for yuo help guys
229: [01:21:36] <ss23> desperate: :)
230: [01:21:38] <ss23> That's what we're here for!
231: [01:22:00] <desperate> i'm off to bed.. thought i would do some small changes at 10.30pm... it's now 2.20am sigh!
232: [01:22:13] <antmas> desperate: such is the way
233: [01:22:17] <antmas> have a good one!
234: [01:22:25] <desperate> thanks chat tomorrow
235: [01:22:29] <desperate> thanks again!
236: [01:22:44] * travis-ci has joined #silverstripe
237: [01:22:44] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2353 (3.0 - 1766ccc : Damian Mooyman): The build passed.
238: [01:22:44] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/6bc9cfe46d2e...1766cccace6e
239: [01:22:44] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23170126
240: [01:22:44] * travis-ci has left #silverstripe
241: [01:22:49] * desperate quit (Quit: Page closed)
242: [01:25:18] * Danae quit (Ping timeout: 240 seconds)
243: [01:28:54] * UncleCheese quit (Quit: UncleCheese)
244: [01:29:52] <Colin[pi]> this makes me feel oollllldd: http://www.youtube.com/watch?v=Uk_vV-JRZ6E
245: [01:30:02] <Colin[pi]> (and yes I am, I know :P)
246: [01:30:42] <antmas> last thing I remember using a walkman for was when Freak on a Leash came out
247: [01:31:15] <antmas> oh and listening to dubbed songs off the radio :P
248: [01:31:22] <Colin[pi]> I remember when I got my portable CD player, I was like WOW, this is the future
249: [01:31:54] <antmas> I had a mini disc player
250: [01:31:59] <antmas> thought I was so cool
251: [01:32:11] <Colin[pi]> they were pretty cool for the time
252: [01:32:15] <Colin[pi]> but were still a niche thing
253: [01:32:48] <ss23> These kids seem retarded
254: [01:32:52] <ss23> I'm really sure I wouldn't be like this
255: [01:33:01] <Colin[pi]> yeah they're annoying
256: [01:33:06] <ss23> SEE
257: [01:33:10] <ss23> THIS LITTLE KID KNOWS WHATS UP
258: [01:33:15] <ss23> THE KID KNOWS ABOUT CASSETTES
259: [01:35:25] <ss23> wtf "my grandpa has a pair of these", THEY'RE HEADPHONES, WHAT KIDS HASN'T SEEN HEADPHONES?!
260: [01:35:28] <ss23> REALLY?!
261: [01:35:31] * ss23 shakes his fists
262: [01:35:33] <ss23> BULLSHIT
263: [01:36:55] <Stomach> minidiscs rule
264: [01:37:00] <Stomach> i had like 300 of them
265: [01:37:07] <Stomach> and a few players/recorders
266: [01:37:14] <Stomach> optical in in 1992
267: [01:37:15] <ss23> damn :O
268: [01:37:17] <Stomach> yes please
269: [01:37:33] <antmas> jesus
270: [01:37:41] <antmas> I didn't know 300 even existed
271: [01:37:42] <antmas> lol
272: [01:37:45] <antmas> I had like 30
273: [01:37:46] <Stomach> haha I lived near the International Pacific College when I was young
274: [01:37:53] <ss23> hahahhaha "it was the first time music was invented"
275: [01:37:56] <Stomach> used to go to their garage sails
276: [01:37:59] <Stomach> sales*
277: [01:38:18] <Stomach> so my first one cost me like $50 with 50 or so minidiscs
278: [01:38:22] <antmas> last thing I bought at a garage sale was a Virtual Boy :D
279: [01:38:31] <Stomach> oh man thats an awesome purchase
280: [01:38:35] <Stomach> i would love to own one of them
281: [01:38:48] <antmas> yeah it was a pretty good score
282: [01:39:01] <antmas> but... from a family who's son died not that long before
283: [01:39:05] <antmas> so... was a bit weird
284: [01:39:09] <Stomach> oh :(
285: [01:42:27] <Colin[pi]> you can find some interesting things at garage sales
286: [01:42:34] <Colin[pi]> I want to get an Amiga again :(
287: [01:42:37] <Colin[pi]> good old days
288: [01:42:59] * Tanger has joined #silverstripe
289: [01:45:57] <antmas> I had a commodore 64 for a while
290: [01:46:04] <antmas> with some really cool text adventure game
291: [01:46:14] <antmas> just used to swear at it for the lulz
292: [01:46:59] * UncleCheese_ has joined #silverstripe
293: [01:47:57] <Colin[pi]> yeah I went through two C64's before getting an Amiga 500
294: [01:48:38] <Colin[pi]> LOAD "*",8,1
295: [01:49:50] <antmas> had some badass fighting game
296: [01:50:14] <antmas> "you come across a stranger by the river"
297: [01:50:21] <antmas> "what do you ask of me?"
298: [01:50:39] <antmas> me - 'FUCKYOUFUCKYOUFUCKYOUASSPOOSHITTITS"
299: [01:51:08] <Colin[pi]> lol
300: [01:51:13] <antmas> then it would try read it back aloud and crash
301: [01:51:14] <antmas> lol
302: [01:51:16] <antmas> good times
303: [01:51:17] <Colin[pi]> hahaha
304: [01:57:54] * jedateach has joined #silverstripe
305: [01:58:41] <jordanmk> hey, anyone here had experience with connecting to CampaignMonitor from a SilverStripe site?
306: [01:59:01] <Stomach> yep
307: [02:00:31] <jordanmk> i've found modules for connecting to CampaignMonitor by tractorcow and sunnysideup
308: [02:00:37] <jordanmk> is one better than the other?
309: [02:00:49] <Stomach> never used either
310: [02:01:02] <jordanmk> how did you go about doing it?
311: [02:01:20] <Stomach> I just wrote the connection points I needed using their API
312: [02:01:52] <Stomach> https://packagist.org/packages/campaignmonitor/createsend-php
313: [02:02:30] <jordanmk> ah okay
314: [02:03:04] <jordanmk> i actually discussed with you what i was trying to do a week or two ago here
315: [02:03:14] <jordanmk> <Stomach> with an external provider you would simply set a mailing list for the blog announcements, then hook up an onafterwrite or something on the blog which sends an email to that list
316: [02:03:14] <jordanmk> <Stomach> and when someone subscribes you just add them to the list
317: [02:03:34] <Stomach> haha
318: [02:04:09] <jordanmk> i'm basically trying to get functionality so a user can subscribe to the blog, and then whenever a new blog post is made, all subscribers get an email about it
319: [02:05:17] <jordanmk> so the suggestion you made for how to do that, would it be relatively easy to set that up using that campaignmonitor package and writing the connection points needed to use their API?
320: [02:05:42] <jordanmk> trying to get an idea of how difficult it will be to create this functionality
321: [02:15:47] <Stomach> pretty easy
322: [02:15:57] <Stomach> you can probably use tractorcows one
323: [02:16:12] <Stomach> and just do the creation of the subscription in your forms action
324: [02:16:22] <Stomach> form being SignUpToBlogMailingListForm or whatever
325: [02:22:31] <jordanmk> okay, and what about the functionality to email all members of that list when a blog entry is posted?
326: [02:47:53] <antmas> another rretirement next week
327: [02:47:56] <antmas> retirement*
328: [02:49:20] <antmas> lol
329: [02:49:41] <antmas> 'Windows Defender fail to search for updates as you are not connected to a network"
330: [02:49:54] <antmas> "Click here to check online for more information"
331: [02:50:07] <ss23> hahaha antmas
332: [02:51:48] <antmas> :O
333: [02:51:51] <antmas> shortbread!
334: [02:51:53] <antmas> win!
335: [03:00:17] <pippy_> long weekend woot woot
336: [03:00:21] * pippy_ is now known as pippy
337: [03:00:21] <ss23> yeah!
338: [03:00:24] <ss23> 3 hours...
339: [03:00:26] <ss23> wait
340: [03:00:29] <ss23> yeah
341: [03:00:29] <ss23> 2-3 hours
342: [03:00:37] <pippy> beers are already flowing here
343: [03:00:49] <ss23> ah true
344: [03:02:35] <antmas> 1 hour here :D
345: [03:02:45] <antmas> 10 days off :D
346: [03:02:47] <antmas> w00t
347: [03:04:57] <ss23> help
348: [03:04:59] <ss23> I got beer
349: [03:05:02] <ss23> but everyone thought I was joking
350: [03:05:04] <ss23> now I'm the only one drinking
351: [03:05:05] <ss23> what do
352: [03:05:48] <Ryan-Toast> ss23: I’m drinking./
353: [03:05:52] <ss23> lol
354: [03:05:54] <ss23> ME TOO
355: [03:05:58] <ss23> I got a "I'll start at 3:30"
356: [03:06:09] <Ryan-Toast> WEAK
357: [03:11:15] <pippy> drinking
358: [03:13:27] <antmas> bah
359: [03:13:31] <antmas> our fridge is locked!
360: [03:13:34] <ss23> ...
361: [03:13:35] <antmas> send beer plx
362: [03:13:36] <ss23> how do you lock a fridge?
363: [03:13:44] <antmas> ss23: padlock :P
364: [03:13:58] <ss23> why the fuck
365: [03:13:58] <antmas> a big fuckoff bolt to keep the alcies out
366: [03:13:58] <ss23> who the fuck
367: [03:14:00] <ss23> what the fuck
368: [03:14:13] <antmas> some nubcake kept stealing shit out of it
369: [03:14:24] <Stomach> jordanmk - sorry was busy, you would hook up an onAfterWrite on the blog post and then trigger an automated email through the campaign monitor API
370: [03:15:39] <spronk> heh
371: [03:15:43] <spronk> my old work had that problem antmas
372: [03:15:52] <antmas> bastards
373: [03:16:26] <ss23> antmas: rage
374: [03:16:31] <ss23> antmas: I'd prefer camera over padlock
375: [03:16:33] <antmas> BUT
376: [03:16:35] <ss23> So you can fire the cuntface who was doing it
377: [03:16:46] <antmas> the guy who retired today has put his final paycheck on the bar
378: [03:16:55] * UncleCheese_ quit (Quit: UncleCheese_)
379: [03:17:10] <antmas> ss23: turned out to be a summer student who did it
380: [03:17:20] <antmas> ss23: but poicy means the lock stays on anyway :/
381: [03:17:25] <ss23> :/
382: [03:17:27] <ss23> quit
383: [03:17:28] <ss23> fire
384: [03:17:53] <antmas> quit and then set fire*
385: [03:18:13] <ss23> XD
386: [03:19:39] * cloph_away has joined #silverstripe
387: [03:19:41] <antmas> dat moment you realise the tut you've been following is for 2 versions behind what you use
388: [03:19:53] <antmas> ffffffff
389: [03:19:56] <ss23> lol
390: [03:20:17] * cloph quit (Ping timeout: 265 seconds)
391: [03:23:49] <antmas> w00t plumber is at the flat installing a new gas hobb
392: [03:23:55] <antmas> house*
393: [03:25:50] * antmas thinks about all the steaks he'll cook poorly
394: [03:26:08] <jordanmk> Stomach
395: [03:26:15] <Stomach> hiya
396: [03:27:13] <jordanmk> so that onAfterWrite that triggers an email, i'm guessing that would need to use the campaignmonitor package you linked before rather than tractorcow's module?
397: [03:27:31] <Stomach> yeah, he doesn't have that functionality it seems
398: [03:32:23] * Luke1988 has joined #silverstripe
399: [03:32:59] <jordanmk> so in that case, would it be easier to just use the campaignmonitor package for all of the functionality?
400: [03:33:25] <jordanmk> or would adding users to a list be much easier with the module vs. the package
401: [03:34:08] <Stomach> its probably very simple
402: [03:34:12] <Stomach> have a look at the modules code
403: [03:35:04] <antmas> simon_w: no leaving work party?
404: [03:35:22] <simon_w> antmas, had a lunch thing yesterday
405: [03:35:42] <antmas> simon_w: do they have a replacement for you lined up yet?
406: [03:35:47] <simon_w> Nope
407: [03:35:55] <antmas> guttsforthem
408: [03:36:18] <antmas> I'd hate to be in that interview
409: [03:36:29] <antmas> "Yeah, so the guy you're replacing is pretty much PHP Jesus"
410: [03:36:47] <Stomach> how do you route more than one controller
411: [03:36:51] <Stomach> Director:
412: [03:36:51] <Stomach> rules:
413: [03:36:51] <Stomach> 'otb-api//$Action' : 'PostAPI_Controller'
414: [03:36:52] <Stomach> 'author//$ID' : 'AuthorController'
415: [03:36:52] <Stomach> 'tag//$ID' : 'TagController'
416: [03:36:54] <Stomach> :(
417: [03:38:14] <antmas> "Oh, and you have to take ss23 to lunch at Burgerfuel everyday"
418: [03:40:28] <ss23> XD
419: [03:40:32] <ss23> Other way around, man1
420: [03:40:45] <ss23> fuck
421: [03:40:45] <ss23> I should've paid for simon_w's burger fuel!
422: [03:40:57] <antmas> Stomach: you mean same route for multiple controllers?
423: [03:41:03] <antmas> Stomach: or otherway around?
424: [03:41:11] <simon_w> But you didn't!
425: [03:44:20] <ss23> I KNOW
426: [03:44:20] <ss23> :(
427: [03:45:00] <simon_w> And now I don't have an external screen!
428: [03:45:06] <simon_w> And am running on battery at work!
429: [03:45:34] * Avroceptyr has joined #silverstripe
430: [03:45:47] <Avroceptyr> hey ss23 - quick question about the SS admin
431: [03:45:52] <ss23> Hmm?
432: [03:46:22] <Avroceptyr> Can I remove that admin side, or relegate it to a smaller function? I'm looking at a community / collab site where the users have different privileges and I'm thinking of what tech to use
433: [03:47:19] <ss23> Avroceptyr: Like, you want to have a SilverStripe site without the /admin section? You can easily just keep it and not let members log into it. There's a "Can access the CMS" permission setting you can use. Lots of sites have "Members" that can't access the CMS, but rather have a members section built with normal PHP on the 'frontend'
434: [03:47:38] <Avroceptyr> Right, I'm with you
435: [03:47:46] <Avroceptyr> So just permission wall it foff
436: [03:47:47] <Avroceptyr> off*
437: [03:47:54] <ss23> Yeah, pretty much. But uh
438: [03:48:02] <ss23> If you don't need the CMS section at all, you can go without that completely
439: [03:48:14] <ss23> http://codepad.viper-7.com/ uses SilverStripe Framework, but not the CMS at all
440: [03:48:22] <ss23> Of course, at that point, I'm not convinced it's worth it personally
441: [03:48:33] <Avroceptyr> yeah, I hear you
442: [03:48:40] <antmas> Avroceptyr: yeah just do it with perms
443: [03:49:02] <antmas> better to have CMS there than not
444: [03:49:07] <Stomach> antmas - different controllers, different routes
445: [03:49:14] <Stomach> but only the top one works with that config
446: [03:50:13] <antmas> Stomach: hmmm
447: [03:50:34] <antmas> I know you can with multiple routes, same controller, vice versa
448: [03:50:35] <Stomach> I am just using
449: [03:50:35] <Stomach> public function index()
450: [03:50:50] <Stomach> should I instead use a declared function and allow it in the allowed actions?
451: [03:50:51] <antmas> not sure about mutliple multiple sorry :/
452: [03:51:04] <antmas> Stomach: I'd try that yeah
453: [03:51:24] <simon_w> Stomach, make sure they're all indented the same
454: [03:52:10] <antmas> simon_w: wait, so it can work that way? ^^^^^^^^^
455: [03:52:14] <simon_w> Stomach, also, private static $url_handlers = array('$ID' => 'handleAction'); in TagController and AuthorController
456: [03:52:15] <Zauberfisch> yay for php rand(). rand(0,4) returns '0' 9 out of 10 times
457: [03:52:22] <simon_w> Zauberfisch, mt_rand()
458: [03:52:23] <Zauberfisch> or I am just extremely unlicky today
459: [03:52:26] <Zauberfisch> yeah, I know
460: [03:53:16] <Stomach> hey simon_w - thanks
461: [03:53:35] <Stomach> since when have the url handlers been important?
462: [03:53:55] <ss23> Zauberfisch: For reference, PHP's rand() literally just calls libc rand, so it's not really PHP's fault (kind of), it's just exposing the C function
463: [03:54:13] <antmas> Stomach: did that work?
464: [03:54:23] <Stomach> yeah it did
465: [03:54:26] <antmas> badass
466: [03:55:11] <Stomach> I had previously on the tag controller
467: [03:55:22] <Stomach> but i didnt have the url_handlers static set on it
468: [03:55:25] <Stomach> and it worked
469: [03:55:36] <Stomach> but that was a couple of patch releases ago, maybe even 3.0
470: [03:56:02] <Stomach> its in production right now :S
471: [03:56:17] <antmas> Fuck it, do it live
472: [03:56:28] <Stomach> well, i am
473: [03:56:29] <Stomach> it is
474: [03:56:33] <antmas> heh
475: [03:56:40] <antmas> great day for it
476: [03:57:32] <jordanmk> hey guys, i've written a class BlogExtension that extends Extension, and added the following to my _config.php: Object::add_extension('BlogHolder_Controller', 'BlogExtension');
477: [03:58:16] <jordanmk> in BlogExtension, i've got a form called ReceiveNotificationsForm, and when i add that to my BlogHolder template, i get the following error
478: [03:58:23] <jordanmk> Fatal error: Call to undefined method BlogExtension::hasMethod() in /home/nnd/public_html/framework/forms/Form.php on line 904
479: [03:58:32] <jordanmk> any ideas on what i'm missing?
480: [03:58:56] <simon_w> jordanmk, You need to Form::create($this->owner, not Form::create($this,
481: [04:00:09] * UncleCheese_ has joined #silverstripe
482: [04:00:49] <jordanmk> thanks simon_w, that worked :)
483: [04:01:20] * simon_w guess it's time to pack his desk up
484: [04:02:44] <jordanmk> out of curiosity, is there a difference between doing new Form($foo) vs. Form::create($foo)?
485: [04:03:50] <simon_w> Yes
486: [04:03:58] <simon_w> The ::create() method allows the injector to work
487: [04:05:00] <jordanmk> not quite sure what that means :P
488: [04:06:23] <antmas> jordanmk: injector - manages class dependencies
489: [04:06:24] <antmas> etc
490: [04:07:33] <jordanmk> so is it more efficient to use Form::create($foo)?
491: [04:07:46] <simon_w> No
492: [04:07:51] <jordanmk> is there ever a time you would want to use Form($foo) rather than Form::create($foo)
493: [04:08:05] <simon_w> No
494: [04:08:34] <simon_w> Getting into the habit of using ::create() means that you can make use of the Injector if you ever learn about it easier
495: [04:09:32] <Zauberfisch> simon_w: so I'd say there is
496: [04:10:11] <Zauberfisch> (a point in using ::create())
497: [04:10:26] <simon_w> Zauberfisch, that's not what was asked :p
498: [04:10:38] <Zauberfisch> "is there ever a time you would want to use Form($foo) rather than Form::create($foo)
499: [04:10:41] <Zauberfisch> "
500: [04:10:41] <antmas> Zauberfisch: ?
501: [04:10:43] <Zauberfisch> you answered no
502: [04:10:49] <Zauberfisch> which i deem wrong
503: [04:10:51] <simon_w> Yes
504: [04:10:56] <simon_w> Because you want to use ::create()
505: [04:11:00] <Zauberfisch> there is a time you would prefer ::create()
506: [04:11:08] <simon_w> That's not what was asked
507: [04:11:08] <Zauberfisch> when you are a module or core developer
508: [04:11:19] <antmas> Zauberfisch: wait
509: [04:11:31] <antmas> Zauberfisch: are you reading it backwards?
510: [04:11:38] <Zauberfisch> yes
511: [04:11:43] <antmas> lol
512: [04:11:51] <Zauberfisch> hmmm. let me see. I'll get some more scroll back
513: [04:12:23] * antmas passes Zauberfisch a beer
514: [04:12:27] <Zauberfisch> ok, my point still stands
515: [04:12:35] * antmas pushes Zauberfisch 's hands away from keyboard
516: [04:12:41] <Zauberfisch> :D
517: [04:12:41] <jordanmk> lol
518: [04:12:50] <Zauberfisch> I don't drink alcohol
519: [04:13:00] <Zauberfisch> so I can keep my hands on the keyboard
520: [04:13:20] <Colin[pi]> wow big lunch, can't... quite.. move
521: [04:13:33] * antmas rolls Colin[pi] to desk
522: [04:13:34] <jordanmk> alright so always use ::create(), got it :)
523: [04:13:34] <ss23> lol
524: [04:13:44] <ss23> So are Colin[pi] and simon_w going to meet up IRL?
525: [04:13:46] <Zauberfisch> so, simon_w, when he asked "is there a time where you". did you answer from your personal perspective because he used "you" instead of "I" or "one"?
526: [04:13:47] <Colin[pi]> antmas: yeah it's like that
527: [04:13:49] <ss23> Go to that Brazillian restraunt?
528: [04:13:50] <ss23> :D
529: [04:13:51] <Colin[pi]> ss23: we already did!
530: [04:13:57] <ss23> :O
531: [04:14:03] <ss23> cool
532: [04:14:30] <simon_w> Zauberfisch, no, since "you" in that case is usually a general, not a specific, you
533: [04:14:40] <Zauberfisch> good
534: [04:14:42] <Colin[pi]> yeah simon_w if you and your missus want to go to the brazilian restaurant, let me know!
535: [04:14:49] <simon_w> ss23, and we'll be living close to each other too!
536: [04:14:54] <simon_w> (To start with)
537: [04:14:56] <Colin[pi]> in curtin?
538: [04:15:00] <simon_w> Lyons
539: [04:15:06] <Colin[pi]> ah that's right
540: [04:15:08] <antmas> you guys are ghey
541: [04:15:11] <antmas> :P
542: [04:15:11] <jordanmk> simon_w is correct, i meant generally, would it ever be better to use new Form() rather than Form::create()
543: [04:15:20] <Colin[pi]> antmas: ONLY IF THEY TOUCH
544: [04:15:24] <Colin[pi]> no homo
545: [04:15:48] <Zauberfisch> anyway, jordanmk, if you ask me, yes there is a point to ::create(). but probably not to you. a module developer or a core developer should use it, but for you developing your own project, it doesn't matter
546: [04:15:49] <antmas> rofl
547: [04:16:04] <jordanmk> i see
548: [04:16:12] <simon_w> antmas, it's not gay if it's in a three-way!
549: [04:16:28] <antmas> simon_w: mmf?
550: [04:16:40] <antmas> heh
551: [04:16:42] <Colin[pi]> simon_w: yeah but just if they don't touch!
552: [04:16:43] <Colin[pi]> ;D
553: [04:16:47] <antmas> OFF TOPIC
554: [04:16:52] <simon_w> https://www.youtube.com/watch?v=Pi7gwX7rjOw
555: [04:16:54] <Colin[pi]> AHEM
556: [04:17:09] <simon_w> THIS IS #silverstripe. WE DON'T HAVE AN ON TOPIC
557: [04:17:56] <Zauberfisch> < Colin[pi]> AHEM
558: [04:17:58] <Zauberfisch> I second that
559: [04:18:25] <antmas> #silverstripe is the /b/ of IRC
560: [04:18:29] <antmas> :D
561: [04:18:29] <Colin[pi]> lol
562: [04:18:33] <Zauberfisch> haha
563: [04:18:54] <Zauberfisch> lately it actually does feel like that
564: [04:19:00] <Colin[pi]> last time I went to /b/ I NOPED the fuck out of there in about 2 minutes
565: [04:19:26] <antmas> Colin[pi]: We don't go to /b/ any more
566: [04:19:56] <Colin[pi]> what, 4chan is moving here?
567: [04:20:00] <antmas> Zauberfisch: we gotta relax everynow and then :D
568: [04:20:32] <Colin[pi]> yeah most peeps in here are pretty laid back
569: [04:21:01] <Colin[pi]> plus we're all veterans of the internet... the shit we've all seen :o
570: [04:21:08] <antmas> :O
571: [04:21:15] <antmas> dat time ss23 mentioned efukt
572: [04:21:18] <Zauberfisch> :D
573: [04:21:18] <Colin[pi]> lol
574: [04:21:30] <antmas> ruined my night ss23
575: [04:21:32] <antmas> :<
576: [04:21:34] <Colin[pi]> nothing shocks me any more
577: [04:21:36] <antmas> NEVER AGAIN
578: [04:22:14] <Zauberfisch> veterans might be a bit of an over statement. I am just above 20
579: [04:22:18] <antmas> Ryan-Toast: beer o'clock there?
580: [04:22:25] <Colin[pi]> Zauberfisch: OLD MAN ZAUBERFISCH
581: [04:22:29] <Ryan-Toast> antmas: for a while now, son
582: [04:22:53] <antmas> Zauberfisch: you might be the youngest here if I'm not mistaken
583: [04:23:14] <simon_w> antmas, nah, it's ss23
584: [04:23:30] <antmas> I thought ss23 was like, 22
585: [04:23:32] <antmas> maybe not
586: [04:23:36] <Colin[pi]> ss23 just turned 13
587: [04:23:40] <antmas> LOL
588: [04:23:43] <Zauberfisch> :D
589: [04:23:49] <Colin[pi]> his balls have only just dropped
590: [04:24:01] <antmas> Colin[pi]: ehhhh, 13 and 1/2 thank you
591: [04:24:07] <simon_w> Packing up my desk is sad
592: [04:24:12] <Colin[pi]> simon_w: dem feelz
593: [04:24:29] <antmas> simon_w: is anyone in the office crying uncontrollably?
594: [04:24:30] <ss23> 16:21:16 < antmas> dat time ss23 mentioned efukt
595: [04:24:32] <ss23> 16:21:31 < antmas> ruined my night ss23
596: [04:24:33] <ss23> hahahahaha
597: [04:24:40] <simon_w> antmas, I hope not :p
598: [04:24:46] <antmas> simon_w: no?
599: [04:24:47] <Colin[pi]> antmas: no they're celebrating
600: [04:24:48] <Colin[pi]> ;D
601: [04:24:51] <antmas> simon_w: THEN QUIT
602: [04:24:56] <simon_w> OKAY!
603: [04:24:58] * simon_w quit (Quit: I QUIT)
604: [04:25:03] <antmas> lol
605: [04:25:10] <Colin[pi]> :o
606: [04:25:23] <Colin[pi]> simon_w|air is still here, NICE TRY
607: [04:26:12] * antmas assumes simon_w quit to unplug his pc
608: [04:26:14] <antmas> :P
609: [04:26:41] <antmas> :O
610: [04:26:50] <antmas> I think our neckbears blocked spotify
611: [04:26:55] <antmas> neckbeards*
612: [04:27:40] <Colin[pi]> those bastards
613: [04:27:43] * violetina quit (Remote host closed the connection)
614: [04:29:53] <antmas> right off to have some beers
615: [04:29:55] * cloph_away quit (Ping timeout: 276 seconds)
616: [04:30:01] <antmas> later all, have a good easter
617: [04:30:03] <antmas> !
618: [04:30:04] <antmas> :)
619: [04:30:07] <Colin[pi]> enjoy dude, u too
620: [04:30:20] * antmas quit (Quit: Page closed)
621: [04:33:49] * jedateach quit (Quit: jedateach)
622: [04:37:27] * jedateach has joined #silverstripe
623: [04:43:10] * Stomach quit ()
624: [04:44:48] * an_Eskimo quit (Ping timeout: 240 seconds)
625: [04:55:03] * Ryan-Toast quit (Quit: Ryan-Toast)
626: [04:59:47] <lrniningine> if i'm taking an Image objects title from a user form submission do i need to htmlspecialchars it
627: [05:03:00] * nickmolhoek quit (Quit: nickmolhoek)
628: [05:10:11] * UncleCheese_ quit (Quit: UncleCheese_)
629: [05:15:17] * UncleCheese has joined #silverstripe
630: [05:25:28] <simon_w|air> http://www.trademe.co.nz/Members/Listings.aspx?member=3234277
631: [05:25:30] <simon_w|air> Buy stuff!
632: [05:25:39] <simon_w|air> lrniningine, no
633: [05:26:30] <lrniningine> does that happen in the templates automatically?
634: [05:26:35] <simon_w|air> lrniningine, yes
635: [05:27:08] * jedateach quit (Quit: jedateach)
636: [05:29:35] * UncleCheese quit (Quit: UncleCheese)
637: [05:29:57] <jordanmk> if i want to create a class that extends a DataObject, i would do the following, right?
638: [05:29:59] <jordanmk> class BlogEntryDecorator extends DataObjectDecorator
639: [05:30:27] <simon_w|air> jordanmk, no
640: [05:30:35] <simon_w|air> You'd use DataExtension
641: [05:31:20] <jordanmk> ah i see, DataObjectDecorator is deprecated
642: [05:40:50] <jordanmk> hmm
643: [05:41:18] <jordanmk> so i managed to extend BlogEntry with an onAfterWrite() function that sends an email
644: [05:41:41] <jordanmk> but that sends the email as soon as the blog entry is created, before any of the content has been put in
645: [05:42:03] <jordanmk> so i figured onAfterPublish() is what i was looking for, but that's not working at all. getting a fatal error :S
646: [05:42:13] <jordanmk> is there something else i would want to use here?
647: [05:42:17] <simon_w|air> What's the error?
648: [05:44:09] <jordanmk> Fatal error: Call to undefined method DataExtension::onAfterPublish() in /home/nnd/public_html/mysite/code/BlogEntryExtension.php on line 8
649: [05:44:32] <jordanmk> line 8 is parent::onAfterPublish();
650: [05:44:53] <jordanmk> which is the first part of my function onAfterPublish() in my class that extends DataExtension
651: [05:45:22] <simon_w|air> You don't need to call the parent methods in DataExtensions
652: [05:46:38] <jordanmk> ah, cool, cheers :)
653: [05:52:32] * Ryan-Toast has joined #silverstripe
654: [05:53:07] * Ryan-Toast has left #silverstripe
655: [05:54:48] * greseky has joined #silverstripe
656: [05:58:10] <greseky> hello guys, is it possible to limit textField length in cms? I have Varchar(255) and would like to limit this TextField with eg maxlength attribute value 255. I get Internal Server Error in having larget text in input
657: [05:59:10] <simon_w|air> greseky, TextField::create('Field', 'Title')->setMaxLength(255)
658: [05:59:15] * jedateach has joined #silverstripe
659: [05:59:39] <jordanmk> how would i access the SiteConfig from a DataExtension?
660: [05:59:40] <greseky> nice :)
661: [05:59:52] <jordanmk> $this->SiteConfig() doesn't work, nor does $this->owner->SiteConfig() :S
662: [06:00:16] <simon_w|air> jordanmk, SiteConfig::current_site_config()
663: [06:01:00] * travis-ci has joined #silverstripe
664: [06:01:00] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2356 (3.1 - e7d45c9 : Simon Welsh): The build passed.
665: [06:01:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/fd344c3b3e37...e7d45c9222b2
666: [06:01:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23180557
667: [06:01:00] * travis-ci has left #silverstripe
668: [06:01:25] <jordanmk> cheers, that worked
669: [06:02:04] <greseky> is it possible to setMaxLength dynamically, checking the type and get length? Just asking :)
670: [06:03:16] <simon_w|air> greseky, $field = $this->dbObject('Field'); if ($field instanceof Varchar) $textField->setMaxLength($field->getSize())
671: [06:04:46] <greseky> wow,thanks, so it is possible, nice one, again :D
672: [06:05:33] <Zauberfisch> cool idea, have to put that into my boilerplate
673: [06:07:50] * Shrike_Finland has joined #silverstripe
674: [06:07:57] <Colin[pi]> shouldn't SS do that automagically?
675: [06:09:05] <Zauberfisch> it might does if the fields are generated
676: [06:09:14] <Zauberfisch> but I usually define the fields myself
677: [06:09:32] <Zauberfisch> as in: I always have getCMSFields defined
678: [06:10:28] * travis-ci has joined #silverstripe
679: [06:10:28] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2357 (3.1 - fc9864e : Simon Welsh): The build passed.
680: [06:10:28] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/e7d45c9222b2...fc9864eed383
681: [06:10:28] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23180604
682: [06:10:28] * travis-ci has left #silverstripe
683: [06:13:55] * jedateach quit (Quit: jedateach)
684: [06:15:14] * CamelCase has joined #silverstripe
685: [06:19:14] <jordanmk> any idea how i could access the ID of the blog entry from within the onAfterPublish() function in my Blog Entry DataExtension?
686: [06:19:46] <simon_w|air> $this->owner->ID
687: [06:20:00] <Zauberfisch> the object you decorate is always stored in $this->owner
688: [06:24:24] <jordanmk> ah cool, thanks
689: [06:24:50] <greseky> using translatable, does silverstripe automatically get object from current locale. eg in template: $News.First.ID ... that would be id of first news of current locale?
690: [06:28:53] <Zauberfisch> depends on what $News is
691: [06:29:24] <Zauberfisch> if $News in php looks something like this: public function News() { return News::get(); } then yes
692: [06:31:55] <greseky> yes, great :)
693: [06:44:25] * Colin[pi] quit (Ping timeout: 250 seconds)
694: [06:49:07] <CamelCase> nick camel_case
695: [06:49:39] * CamelCase is now known as camel_case
696: [06:56:29] * stripee has joined #silverstripe
697: [06:57:31] <stripee> how can permission to view specific pagetypes by specific user be implemented ?
698: [06:58:07] <jordanmk> any ideas about how i could get the Title and other properties from a Blog Entry within the onAfterPubilsh() method in my Blog Entry DataExtension?
699: [06:58:17] * Luke1988 quit (Quit: Leaving)
700: [06:58:25] <jordanmk> it seems as though that data is stored in a SiteTree record
701: [06:58:53] <jordanmk> so i'm trying to get the ID of the blog entry (done this successfully), then get the associated SiteTree object and pull the details from there
702: [06:59:01] <jordanmk> but it's not working :/
703: [07:00:36] * violetina has joined #silverstripe
704: [07:00:59] <jordanmk> nevermind, figured it out!
705: [07:01:15] <stripee> how can permission to view specific pagetypes in site tree by specific user be implemented ?
706: [07:11:08] * simon_w has joined #silverstripe
707: [07:11:37] <jordanmk> hey simon_w
708: [07:14:36] * simon_w never went away!
709: [07:15:10] <simon_w> I just couldn't be bothered plugging this laptop in :p
710: [07:15:46] <Zauberfisch> stripee: puglic function canView($member = null) { ... do some permission checks here ... }
711: [07:18:36] <stripee> Zauberfisch trying!
712: [07:25:57] * ARNHOE has joined #silverstripe
713: [07:27:52] * danfo has joined #silverstripe
714: [07:29:17] * anselmdk has joined #silverstripe
715: [07:30:48] * ARNHOE_ has joined #silverstripe
716: [07:33:52] * ARNHOE quit (Ping timeout: 276 seconds)
717: [07:45:50] * svandragt has joined #silverstripe
718: [07:54:58] * Shrike_Finland quit (Quit: Leaving.)
719: [07:56:51] * Shrike_Finland has joined #silverstripe
720: [08:01:40] * Shrike_Finland quit (Client Quit)
721: [08:11:36] * Shrike_Finland has joined #silverstripe
722: [08:16:23] * Shrike_Finland quit (Client Quit)
723: [08:20:48] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
724: [08:24:50] * Shrike_Finland has joined #silverstripe
725: [08:26:17] * thibault has joined #silverstripe
726: [08:33:00] * UncleCheese has joined #silverstripe
727: [08:34:41] * Pyrabbitk has joined #silverstripe
728: [08:36:48] <Pyrabbitk> It's about to me motherfuck'n easter.
729: [08:36:58] <Pyrabbitk> And i've got no where to go :<
730: [08:45:57] <simon_w|air> Bed?
731: [08:46:15] * micmania1 has joined #silverstripe
732: [08:50:53] <Pyrabbitk> simon_w|air: ha, seems like a bit of a waste of a four day break
733: [08:51:05] <Pyrabbitk> turns out even flights to ireland are ~£400
734: [08:51:11] <Pyrabbitk> ><
735: [08:52:48] * thibault quit (Ping timeout: 240 seconds)
736: [08:58:16] * Shrike_Finland quit (Quit: Leaving.)
737: [08:58:21] <greseky> guys, how can I use control Menu() in method? in template it works, want to use it in method..
738: [08:59:44] <micmania1> greseky: you can use it in a controller using $this->Menu()
739: [09:01:02] <greseky> I see, thanks will try
740: [09:01:04] * Colin[pi] has joined #silverstripe
741: [09:01:41] <Pyrabbitk> It's defined on ContentController, so will work from any Page_Contoller or child there of.
742: [09:01:53] <greseky> micmania1: works :)
743: [09:01:59] * Shrike_Finland has joined #silverstripe
744: [09:01:59] <Pyrabbitk> foreach($this->Menu(1) as $menuitem) {... }
745: [09:02:09] * Tanger has left #silverstripe
746: [09:03:52] <Pyrabbitk> greseky: otherwise you'll have to manually get the menu. Simply: SiteTree::get()->filter(array('ShowInMenus'=>true, 'ParentID'=>0)) will work for most cases of main menus. It won't remove pages people don't have permission to see though, and is hard coded for the main menu.
747: [09:05:21] <greseky> thanks for another way :)
748: [09:05:32] * openbees has joined #silverstripe
749: [09:05:42] <greseky> you guys are great help :D
750: [09:06:45] <openbees> how can we set Permissions on page types in siteTree .. say I have x,y,z page types in siteTree I want to show only z type of pages for users in certain groups .. any ideas how can i achieve that ?
751: [09:07:03] <Pyrabbitk> canView
752: [09:07:05] <Pyrabbitk> ()
753: [09:07:14] <Pyrabbitk> Permission::check('PERMISSION')
754: [09:07:16] <Pyrabbitk> iirc
755: [09:07:48] * violetina quit (Ping timeout: 245 seconds)
756: [09:08:22] * violetina has joined #silverstripe
757: [09:09:32] * kerosene is now known as Raymondo
758: [09:13:42] * Raymondo is now known as kerosene
759: [09:15:26] <greseky> in some class controller want to render template in index()
760: [09:15:31] <greseky> how?
761: [09:16:00] <greseky> actualy want to output xml file
762: [09:18:04] <Pyrabbitk> greseky: just name the template the same as the class.
763: [09:18:41] <Pyrabbitk> class MyCoolXMLController extends Controller => MyCoolXMLController.ss
764: [09:19:05] <Pyrabbitk> you don't need an index method.
765: [09:19:18] <openbees> Pyrabbitk : it never hides pages from site tree .. it just say forbidden if I try to open pages without access in cms .. but I want to hide them too
766: [09:19:33] <Pyrabbitk> openbees: it should.
767: [09:19:38] <Pyrabbitk> well, Menu() should
768: [09:19:58] <Pyrabbitk> SS isn't responsible for links you're putting in directly.
769: [09:21:29] <greseky> lets say i have one page, then whant to get same page but for current locale?
770: [09:21:36] <openbees> I am talking about CMS not front end !
771: [09:21:53] <Pyrabbitk> openbees: you can either edit pages or you can't.
772: [09:22:10] <Pyrabbitk> you could try canEdit, but I dunno if that'd work well with the PageAdmin
773: [09:22:36] <Pyrabbitk> greseky: $Link?locale=$AnotherLocale ?
774: [09:22:45] <Pyrabbitk> (template)
775: [09:23:21] <Pyrabbitk> or $AbsoluteLink?locale=...
776: [09:23:33] <Pyrabbitk> if you're serving it in xml
777: [09:23:45] <Pyrabbitk> html relies on the base_tag being set
778: [09:24:14] <greseky> well, want to get children of some special page, i now id for eng locale, but having many locales
779: [09:24:33] <greseky> xml must be for all locales
780: [09:29:08] <greseky> let say id is 15 for eng, and now i am in other locale, so need to get other id -> what would be the method on page to get other locale (at front end, not in cms)
781: [09:36:02] <greseky> anybody?
782: [09:38:56] * Shrike_Finland quit (Quit: Leaving.)
783: [09:46:26] * Shrike_Finland has joined #silverstripe
784: [09:47:40] * LoveDuckie has joined #silverstripe
785: [09:48:08] <UncleCheese> use getTranslationGroups()
786: [09:49:06] <UncleCheese> greseky: $myPage->getTranslation($locale);
787: [09:51:12] * Shrike_Finland quit (Client Quit)
788: [09:52:20] <Pyrabbitk> greseky: you can get translation list from somewhere (a list of supported locales) and then loop through them changing the locale before each get call
789: [09:52:34] <Pyrabbitk> which I think is what UncleCheese has done.
790: [09:57:21] * Shrike_Finland has joined #silverstripe
791: [09:58:34] * Shrike_Finland1 has joined #silverstripe
792: [10:00:21] * Shrike_Finland1 quit (Client Quit)
793: [10:01:40] * Shrike_Finland quit (Ping timeout: 240 seconds)
794: [10:05:33] * Shrike_Finland has joined #silverstripe
795: [10:09:16] <Pyrabbitk> Early lunch, no regrets
796: [10:09:27] <Pyrabbitk> well, until at least 2pm I suppose.
797: [10:10:09] <simon_w> I take it ss23 didn't pay for your lunch either?
798: [10:10:17] <ss23> :O
799: [10:10:19] <Pyrabbitk> Nup.
800: [10:10:19] <ss23> Pyrabbitk never came for lunch
801: [10:10:23] <Pyrabbitk> He never does.
802: [10:11:02] <Pyrabbitk> Although he may have shouted me BurgerFuel that one time, I don't particularly remember.
803: [10:11:13] <Pyrabbitk> But it sure wasn't lunch.
804: [10:12:13] <Pyrabbitk> No Loz today :<
805: [10:12:26] <Pyrabbitk> hmm, I wonder if he took an extended holiday
806: [10:12:28] <Pyrabbitk> :/
807: [10:13:04] * UncleCheese quit (Quit: UncleCheese)
808: [10:14:12] * simon_w is!
809: [10:16:34] <Pyrabbitk> I almost wish I were, but I need more money for that.
810: [10:21:03] * anselmdk quit (Quit: anselmdk)
811: [10:22:43] * r3v3rb has joined #silverstripe
812: [10:23:10] <r3v3rb> morning a;;
813: [10:23:13] <r3v3rb> all*
814: [10:23:27] <simon_w> Evening
815: [10:23:48] <r3v3rb> simon_w ;) not here
816: [10:24:00] <simon_w> r3v3rb, that's because you're in the past
817: [10:24:56] <r3v3rb> simon_w from a usability perspective - select/option dropdown box to select an item to download/view online good or bad... IMHO I think it bad... but could do with someone else's perspective
818: [10:25:51] <r3v3rb> because it would involve forms/switches and javascript to drive ajax calls if no redirects on the page are to take place...
819: [10:26:03] <r3v3rb> or is there a better way
820: [10:27:52] <simon_w> Well, what are your other options?
821: [10:28:06] <simon_w> And are those other options better or worse for your specific case?
822: [10:28:36] <r3v3rb> the other option is a list styled nicely of each download for each type view or download...
823: [10:31:09] <simon_w> For a small list, the listing them out tends to be nicer
824: [10:31:25] <simon_w> For larger ones, you need search or pagination
825: [10:31:42] <simon_w> Or something horrid like http://php.net/mirrors.php
826: [10:32:20] <simon_w> Personally, so long as changing the drop down isn't what causes the download, and it fits in with your design, I'm fine with it
827: [10:32:52] <simon_w> It's the fitting it into the design bit that's more difficult than just listing everything
828: [10:33:40] <r3v3rb> ok, so just setup 'view' and 'download' as two actions in a single form and construct the redirects accordingly
829: [10:35:01] <Pyrabbitk> haha http://www.php.net/images/logo.php
830: [10:35:23] <r3v3rb> Pyrabbitk woot
831: [10:39:36] <micmania1> "We are very pleased to confirm that your Expression of Interest has been selected from the Pool for further consideration." YAY!
832: [10:40:11] <Pyrabbitk> w00t
833: [10:40:41] * jonShape quit (Quit: jonShape)
834: [10:40:53] * Shrike_Finland quit (Quit: Leaving.)
835: [10:41:14] <Pyrabbitk> soon ss23 can buy YOU lunch!
836: [10:42:21] <ss23> :D
837: [10:43:07] <Pyrabbitk> so should we have a beer or something micmania1 ?
838: [10:43:15] <micmania1> definitely
839: [10:43:22] <Pyrabbitk> ok
840: [10:43:23] <micmania1> although I don't even know when i'm going yet
841: [10:43:31] <Pyrabbitk> oh, I meant tonight, just coz.
842: [10:43:31] <micmania1> I plan on having a few leaving do's
843: [10:43:42] <micmania1> oh, I have my car so can only have 1
844: [10:43:45] <Pyrabbitk> we haven't had an ale in a while :P
845: [10:43:52] <Pyrabbitk> yeah, I'm not big on big drinking anymore :/
846: [10:44:01] <micmania1> yeah, you'll get past that haha
847: [10:44:02] <Pyrabbitk> I tend to have 2 at max while out.
848: [10:44:14] <Pyrabbitk> yeah, maybe. heh.
849: [10:44:20] <micmania1> I could just park my car somwhere and hope its still there when i'm sober enough to drive it?
850: [10:44:35] <Pyrabbitk> hahaha, that's a big worry here eh?
851: [10:44:45] <Pyrabbitk> seems like anything that's not bolted down gets pinched.
852: [10:44:52] <micmania1> I usually leave it here over the weekend if I don't need it, but 4 day weekend
853: [10:45:00] <r3v3rb> where is this occuring?
854: [10:45:06] <Pyrabbitk> Even seen motorcycles with locks on them, first I've ever seen it.
855: [10:45:06] <r3v3rb> and why wasn't i invited?
856: [10:45:18] <r3v3rb> :\
857: [10:45:23] <Pyrabbitk> r3v3rb: well, we could come down there I guess. But £££
858: [10:45:51] <Pyrabbitk> where the hell is Loz :<
859: [10:46:00] <Pyrabbitk> I want to ask him important questions.
860: [10:47:17] <micmania1> oh damnit! I'm playing football tonight
861: [10:47:23] <micmania1> I keep thinking its Friday
862: [10:47:26] <r3v3rb> stuff that micmania1
863: [10:47:31] <r3v3rb> beer is more important
864: [10:47:34] <micmania1> However, Chris might be out Pyrabbitk
865: [10:47:43] <micmania1> There's some sendgrid event on with possibility of free beer!
866: [10:47:47] <micmania1> Pyrabbitk: ^^
867: [10:48:41] <micmania1> I'll still come for a pint though.
868: [10:54:39] * violetina quit (Ping timeout: 252 seconds)
869: [10:55:06] * violetina has joined #silverstripe
870: [10:56:08] * danfo quit (Quit: danfo)
871: [10:56:23] <Pyrabbitk> micmania1: naw, I'll just go home and relax I think
872: [10:56:33] <Pyrabbitk> sendgrid?
873: [10:56:57] <micmania1> http://sendgrid.com/
874: [10:57:13] <micmania1> I see their logo plastered all over the place.
875: [10:57:24] * Shrike_Finland has joined #silverstripe
876: [10:57:37] * Shrike_Finland quit (Client Quit)
877: [10:57:40] <micmania1> They sponsored phpne
878: [10:58:12] <DesignerX> hi, I have this code https://gist.github.com/anonymous/10973751 it works when added in Page.php but I'm trying to add it in a PageExtention & it's not working .. any tips (to avoide modifing Page.php )
879: [10:58:28] * openbees quit (Quit: Leaving)
880: [10:58:30] <DesignerX> I tried $this->owner->extend('updateViewer', $action, $viewer);
881: [11:00:38] <micmania1> DataExtension does not have a method getViewer() so parent::getViewer() won't work
882: [11:03:39] <DesignerX> true that .. is there a way to do something like $Viewer = $this->owner->ParentClass->getViewer($action) ?
883: [11:04:03] <Pyrabbitk> well yeah, exactly that.
884: [11:04:09] <micmania1> Nope, getViewer() doesn't exist on Page/SiteTree either
885: [11:04:26] <DesignerX> its on the Controller
886: [11:04:34] <Pyrabbitk> it's on viewable data isn't it?
887: [11:04:36] <micmania1> DesignerX: You need to overload the getViewer() method on Controller
888: [11:04:37] <Pyrabbitk> idk
889: [11:04:49] <Pyrabbitk> oh right, 'course.
890: [11:05:15] <DesignerX> true, I'm extending the Page_Controller with CustomTemplatesControllerExtension
891: [11:05:35] <DesignerX> this code allow me to use differnt Main or Layout template per page without custom classes :D
892: [11:05:58] <micmania1> You can't overload actual methods using extensions
893: [11:06:11] <Pyrabbitk> not unless they ->extend('asdfa'...
894: [11:07:46] <DesignerX> test time
895: [11:08:19] <Pyrabbitk> but then you're not overloading, you just have the change to modify the result
896: [11:09:09] <DesignerX> just to be sure, is it owner or owner() ?
897: [11:12:13] <DesignerX> ok, new code : https://gist.github.com/anonymous/10974734
898: [11:12:44] * anselmdk has joined #silverstripe
899: [11:12:44] <DesignerX> I added the code I have for the Page_Controller extention with no luck :(
900: [11:13:07] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
901: [11:22:48] * svandragt quit (Ping timeout: 245 seconds)
902: [11:26:48] * r3v3rb has joined #silverstripe
903: [11:29:05] <Pyrabbitk> owner
904: [11:41:25] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
905: [11:42:10] * r3v3rb has joined #silverstripe
906: [11:47:14] * r3v3rb quit (Quit: Textual IRC Client: www.textualapp.com)
907: [11:47:45] * violet- has joined #silverstripe
908: [11:48:01] * violetina quit (Ping timeout: 276 seconds)
909: [11:53:45] <Pyrabbitk> so zend studio is highlighting from as a keyword. I'm real confused like.
910: [11:55:07] * danfo has joined #silverstripe
911: [11:59:42] <Zauberfisch> Pyrabbitk: why would you use zend studio anyway?
912: [12:00:04] <Zauberfisch> was eclipse not slow enought for you?
913: [12:05:03] <camel_case> Hi all, Is there a simple way to add fields from a dataobject to a csv export without adding them to the summary fields of that gridfield?
914: [12:05:48] * danfo quit (Quit: danfo)
915: [12:06:48] <Pyrabbitk> Zauberfisch: yeah idk.
916: [12:07:02] <Pyrabbitk> rofl dat irony camel_case :>
917: [12:07:15] <camel_case> haha
918: [12:07:34] <Pyrabbitk> as for exporting... nfi sorry. I'd skim the export code tbh and see.
919: [12:07:39] <Pyrabbitk> api.silverstripe.org
920: [12:07:59] <camel_case> yeah, I was afraid I'd have to. Just thought someone would know off hand
921: [12:08:46] <Pyrabbitk> http://api.silverstripe.org/3.1/source-class-GridFieldExportButton.html#94-157
922: [12:09:10] <Pyrabbitk> it's a pretty simple function I'd imagine, shouldn't take too long to figure out camel_case :>
923: [12:09:39] <camel_case> Thanks Pyrabbitk
924: [12:09:43] <camel_case> I'll have a looksie
925: [12:10:18] * stripee quit (Ping timeout: 240 seconds)
926: [12:13:56] * UndefinedOffset has joined #silverstripe
927: [12:22:46] * svandragt has joined #silverstripe
928: [12:55:37] * Colin[pi] quit (Ping timeout: 276 seconds)
929: [12:59:22] <Pyrabbitk> http://www.total-knowledge.com/~ilya/mips/ugt.html
930: [12:59:35] <Pyrabbitk> I used to do this. Now I know it's a thing, and I'm pretty much a trendsetter.
931: [13:00:32] * Martin__ has joined #silverstripe
932: [13:03:34] * greseky quit (Quit: Page closed)
933: [13:09:48] * Martin__ quit (Ping timeout: 240 seconds)
934: [13:13:13] * camel_case quit (Ping timeout: 245 seconds)
935: [13:13:57] <Pyrabbitk> micmania1: [14:09] <Nightjar> I am a big fan of #6, but about everyone in this channel won't get it.
936: [13:14:17] <Pyrabbitk> http://www.buzzfeed.com/simoncrerar/most-new-zealand-moments-ever
937: [13:14:28] <Pyrabbitk> micmania1: because: http://www.youtube.com/watch?v=dIYvD9DI1ZA
938: [13:15:03] <Pyrabbitk> also I hate the fuck out of buzzfeed because you need this to make it even remotely usable:
939: [13:15:03] <Pyrabbitk> Array.prototype.forEach.call(document.querySelectorAll('.sub_buzz_content'), function(v,i,a){v.removeChild(v.querySelector('.share-box'));var i = v.querySelector('img.bf_dom');i.src = i.getAttribute('rel:bf_image_src')})
940: [13:15:08] <Pyrabbitk> every time :<
941: [13:34:55] * Shrike_Finland has joined #silverstripe
942: [13:34:58] <Pyrabbitk> http://www.amazon.com/Rachael-Ray-Garbage-Bowl-Red/dp/B004XJGMHO
943: [13:35:09] <Pyrabbitk> comments fantastico!
944: [13:36:29] * catcher has joined #silverstripe
945: [13:42:28] * violet- quit (Remote host closed the connection)
946: [13:52:08] * Shrike_Finland quit (Quit: Leaving.)
947: [14:03:52] <DesignerX> SilverStripe 3 Custom main / Layout template without creating new class / page type. : http://www.silverstripe.org/template-questions/show/5522?start=8#post347619
948: [14:30:11] * DesignerX quit (Ping timeout: 265 seconds)
949: [14:36:43] * samthejarvis has joined #silverstripe
950: [14:42:38] <samthejarvis> hey, anyone think there would be demand for a module that displays the gridfield in a grid layout?
951: [14:43:00] <samthejarvis> and does anyone have any comments on the feasibility of the above?
952: [14:43:16] <samthejarvis> granted that some components would have to not work
953: [14:43:47] <Pyrabbitk> samthejarvis: it's a bit more complicated than that.
954: [14:43:51] <Pyrabbitk> (a module)
955: [14:44:11] <Pyrabbitk> Zauberfisch and I have both had a squiz at it in the past. It requires core development.
956: [14:44:20] <Pyrabbitk> and proper planning.
957: [14:44:40] <Pyrabbitk> and lack of BC breaks, etc.
958: [14:45:13] <Pyrabbitk> we've just both gotten really busy and haven't actually got much of anywhere with it.
959: [14:45:32] <Pyrabbitk> although since going anywhere in easter costs a fuckload, I was thinking I might do some coding at home.
960: [14:45:49] <Pyrabbitk> that is unless you know of somewhere sweet to go that doesn't cost £400+
961: [14:52:04] <samthejarvis> righto, yeah
962: [14:52:30] <samthejarvis> i mean, you say "than that", i didn't actually specify a "that" you could refer to
963: [14:53:43] <Pyrabbitk> [15:42] <samthejarvis> ... a module ...?
964: [14:53:43] <Pyrabbitk> ;)
965: [14:53:59] <Pyrabbitk> samthejarvis: that ----------^
966: [14:54:14] <samthejarvis> you got me
967: [14:54:18] <Pyrabbitk> :P
968: [14:54:25] <samthejarvis> nothing worse than a poor pedant
969: [14:54:49] <Pyrabbitk> I wasn't trying to be! :<
970: [14:54:57] <samthejarvis> i was referring to me :>
971: [14:55:14] <Pyrabbitk> oh
972: [14:55:25] <Pyrabbitk> [15:43] <Pyrabbitk> (a module)
973: [14:55:32] <Pyrabbitk> :>
974: [14:56:08] <Zauberfisch> yeah, gridfield ...
975: [14:56:09] <Pyrabbitk> so where does one go during their four days off if they're alone and feeling a bit poor?
976: [14:56:14] <Pyrabbitk> samthejarvis: ^
977: [14:56:24] <Zauberfisch> I wouldn't mind taking a couple of hours into it. I can do that.
978: [14:56:39] <Zauberfisch> the problem is doing such a thing on core level means a LOT more than a few hours
979: [14:56:47] <Zauberfisch> because it has to be done right or not at all
980: [14:56:58] <samthejarvis> i take it the table markup is baked into the core?
981: [14:57:13] <Pyrabbitk> pretty much.
982: [14:57:34] <Pyrabbitk> I'm not sure the markup is in core, but the API design is specifically around tabular views, yeh.
983: [14:57:35] <samthejarvis> i really wouldn't know what to do with £400 with regards to a holiday, could easily get on a bike and go somewhere, holland take your fancy?
984: [14:57:37] <Zauberfisch> and into every module
985: [14:57:46] <Pyrabbitk> samthejarvis: less than 4 hundy plz
986: [14:57:56] <Zauberfisch> so if you make some diffrent layout, you have to refactor all the modules as well
987: [14:57:59] <Pyrabbitk> I thought about Ireland, but those are £400 :<
988: [14:58:21] <samthejarvis> yeah, the scope of the module could literally just disregard components that don't make sense in a grid layout
989: [14:58:33] <samthejarvis> even ferries?
990: [14:58:43] <Pyrabbitk> ferries take forevers.
991: [14:58:55] <Pyrabbitk> I'd get there and it's time to come back, and yeah, still massive spennies
992: [14:59:05] <samthejarvis> 2manyspenny
993: [14:59:13] <Pyrabbitk> many2spenny
994: [14:59:31] <samthejarvis> hmmmm
995: [14:59:41] <Pyrabbitk> http://www.youtube.com/watch?v=eCJg63SziL4
996: [15:00:30] <Pyrabbitk> I was going to go to hungary, just coz. I could probably scrape through it, but then I'd be fucked until pay day, and couldn't afford tickets to Munich for my own birthday party.
997: [15:01:51] <samthejarvis> my experience with any holiday is they cost 50% more than what you expect, even if you add 50% onto your estimate
998: [15:02:17] <samthejarvis> just have to.. not estimate
999: [15:02:37] <Pyrabbitk> haha, yeh. that's what I'm worried about.
1000: [15:02:50] <Pyrabbitk> plus fuck'n uk banks are so shit I don't even know if I can get money out yet at all
1001: [15:03:16] <Pyrabbitk> still waiting for online banking pack to arrive 2 weeks later
1002: [15:03:28] <Pyrabbitk> after 4 months of trying to open an account.
1003: [15:03:28] <samthejarvis> christ, lol
1004: [15:03:48] <Pyrabbitk> yeah, your banks are from the fuck'n stone age.
1005: [15:04:49] <Pyrabbitk> and getting paid monthly is a shit.
1006: [15:05:34] <samthejarvis> has any company ever implemented a.. time-loan kinda thing
1007: [15:06:02] <samthejarvis> "hey could I promise to work 10 hours overtime"
1008: [15:06:13] <samthejarvis> that could get ugly.
1009: [15:06:26] <Pyrabbitk> lol, I belive they call those 'advances'.
1010: [15:06:35] <Pyrabbitk> and they're a shit.
1011: [15:06:40] <samthejarvis> good point
1012: [15:13:54] <Pyrabbitk> Urgh that afternoon when find your code that has been working well for a few days now is actually buggy broken as fuck :<
1013: [15:14:10] <Pyrabbitk> and it's all because derp
1014: [15:14:12] <Pyrabbitk> :<
1015: [15:17:46] <samthejarvis> haha, i know the feel
1016: [15:29:53] * ARNHOE_ quit ()
1017: [15:31:01] * jenniferaslan has joined #silverstripe
1018: [15:37:25] <micmania1> Pyrabbitk: definitely no pint?
1019: [15:37:47] <micmania1> Me and Chris are going for one about half 5/quarter to 6
1020: [15:38:42] * TRB143_ is now known as TRB143
1021: [15:44:22] <Pyrabbitk> micmania1: oh yeah, tempted. I'll probably be in town, although low on dosh I think.
1022: [15:44:31] <Pyrabbitk> hmm, should have maybe enough for one.
1023: [15:44:45] <Pyrabbitk> I'll see if I'm close... I've gotta walk back today
1024: [15:45:02] <Pyrabbitk> oh, and I only get off at half five
1025: [15:45:12] <Pyrabbitk> You've got football yeah?
1026: [15:46:03] <Pyrabbitk> What time's that?
1027: [15:46:09] <Pyrabbitk> micmania1: ^
1028: [15:46:32] <micmania1> football isn't til 9
1029: [15:49:23] <Pyrabbitk> righto, I'll see how I'm doing on the trip back.
1030: [15:49:34] <Pyrabbitk> I've only got £10 on me, bought too much food today :<
1031: [15:50:51] <micmania1> I've got about a fiver
1032: [15:52:51] <Pyrabbitk> haha
1033: [15:53:00] <Pyrabbitk> I've gotta get the bus into town, and something for dinner :/
1034: [15:53:40] <Pyrabbitk> where will you be going, the bridge?
1035: [15:57:31] <micmania1> yep but i'm only staying for 1
1036: [15:58:37] <Pyrabbitk> I might call it early and see if I can get there at a reasonable time.
1037: [16:01:55] * CodeTrap has joined #silverstripe
1038: [16:03:16] <micmania1> well Chris finishes at 5.30
1039: [16:03:31] <micmania1> so we'll be there about 5.40
1040: [16:04:18] * samthejarvis quit (Ping timeout: 240 seconds)
1041: [16:09:41] * r3v3rb has joined #silverstripe
1042: [16:10:12] <Pyrabbitk> righto, probably when I'll about get there
1043: [16:14:02] <micmania1> Pyrabbitk: you going to leave work early?
1044: [16:15:43] <Pyrabbitk> going now, yeh.
1045: [16:16:01] <Pyrabbitk> not sure when the bus comes though, it's a fucking slack one that takes about 20 years
1046: [16:16:08] <Pyrabbitk> err, only comes every half hour*
1047: [16:16:36] <Pyrabbitk> Unless one of you is in a position to whip over 5th ave and get me
1048: [16:16:46] <Pyrabbitk> but I think Chris takes the metro right?
1049: [16:17:27] <Pyrabbitk> micmania1: ? :>
1050: [16:17:43] <Pyrabbitk> he pokes, trying his luck :P
1051: [16:18:35] <Pyrabbitk> righto, well going to bus stop. text me if need be.
1052: [16:18:37] <micmania1> It'd take too long for me to driver there then back
1053: [16:18:44] <micmania1> at this time
1054: [16:18:47] <Pyrabbitk> yeah, I figured :P
1055: [16:19:14] <Pyrabbitk> see you soon I guess ::>
1056: [16:19:18] * Pyrabbitk quit (Quit: Page closed)
1057: [16:23:11] <r3v3rb> ugh, how do I get autocompleter in gridfield to use anything other than 'Title' for a dataobject - my DO doesnt have or need a Title field
1058: [16:52:21] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
1059: [16:57:08] * anselmdk quit (Quit: anselmdk)
1060: [16:57:32] * anselmdk has joined #silverstripe
1061: [17:05:13] * anselmdk quit (Ping timeout: 276 seconds)
1062: [17:11:27] * r3v3rb has joined #silverstripe
1063: [17:21:35] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
1064: [17:28:12] * r3v3rb has joined #silverstripe
1065: [17:38:06] <jenniferaslan> What other ways are there to force SS to reload the templates besides ?flush and ?flush=all? I have a template that is a popup, so it doesn't have its own URL. I can't seem to get it to flush so that changes I have made show up on the front-end.
1066: [17:40:39] <jenniferaslan> I even did a /dev/build to try to rebuild the manifest. No luck.
1067: [17:51:59] * gelignite has joined #silverstripe
1068: [17:54:00] * catcher wishes ViewableData/ThemeDir() were static
1069: [17:54:51] <catcher> jenniferaslan, may be unrelated to template caching; to verify, you can create your own silverstripe-cache folder in the root & clear it.
1070: [17:54:57] <catcher> (web server writeable)
1071: [17:56:14] * r3v3rb quit (Quit: Textual IRC Client: www.textualapp.com)
1072: [17:58:05] <jenniferaslan> I created the folder and did a dev/build?flush=all. I can see that the folder is now full of stuff, but the template changes I made haven't shown up on the front-end. This leads me to believe that perhaps this template isn't actually being used. I am editing something a colleague built, but he's on vacation today, so I can't ask him about it. Grrrr.
1073: [18:00:30] <catcher> jenniferaslan, quite possible. If you can share the code where it's included, we may be able to help.
1074: [18:01:43] <jenniferaslan> I just found there are two files with the same name in the templates. One is in templates/ and the other is in templates/layout.
1075: [18:02:03] <jenniferaslan> I was editing the one in templates/layout, but I guess the system was using the one in /templates
1076: [18:02:19] <jenniferaslan> I am removing the one in /templates in favor of the one in /templates/layout
1077: [18:03:20] <jenniferaslan> Rats. I guess that was the wrong choice because now the popup gets no template at all.
1078: [18:04:59] <jenniferaslan> Well, anyway, I appear to have found the correct template.
1079: [18:10:13] <catcher> jenniferaslan, Templates generally include Layouts
1080: [18:10:55] <catcher> i.e. templates/Page.ss has $Layout, which then includes templates/Layout/Page.ss
1081: [18:11:12] <jenniferaslan> I know and I would rather have the popup layout in the /layouts folder, but the rest of whatever he has going on in this functionality seems to be looking for it outside of the layouts folder.
1082: [18:11:48] <jenniferaslan> There's a rather long javascript involved.
1083: [18:12:15] <jenniferaslan> And I'm not really a javascript developer. My specialty is html/css layouts and the SS templating engine
1084: [18:12:17] <catcher> jenniferaslan, there's a good chance it's using both
1085: [18:12:46] <jenniferaslan> how can that be, if they have the same code in them?
1086: [18:15:17] <jenniferaslan> Here's the place in the PHP file where he's referencing the popup template: http://pastebin.com/5zRcgCHG
1087: [18:15:18] <catcher> One should be removed, just watch out that the other isn't used elsewhere for no good reason.
1088: [18:16:01] <jenniferaslan> if he's using renderWith, shouldn't it look hierarchically through the folders to find the layout?
1089: [18:16:16] <jenniferaslan> Or does he have to specify the path there?
1090: [18:16:49] <catcher> jenniferaslan, it'll stop at the first match, hence templates/
1091: [18:17:08] <jenniferaslan> so, if it only exists in layout, shouldn't it find it?
1092: [18:17:30] <jenniferaslan> I only have one version of the file in there now. I will try moving it to layout.
1093: [18:17:39] <catcher> Should
1094: [18:18:56] <jenniferaslan> Okay, so I moved it, did a dev/build?flush=all and it seems to be finding the template okay now. Thanks!
1095: [18:19:29] <catcher> np!
1096: [18:22:48] * anselmdk has joined #silverstripe
1097: [18:27:07] * anselmdk quit (Ping timeout: 252 seconds)
1098: [18:44:05] * greseky has joined #silverstripe
1099: [18:45:09] <greseky> hello guys, trying to use where with no luck, $root = Page::get()->where('"ParentID" = 0 AND "ClassName" != HomePage')->First();
1100: [18:50:21] <catcher> greseky, what do you mean by 'no luck'?
1101: [18:50:51] <greseky> query failed
1102: [18:51:20] <catcher> greseky, HomePage needs to be quoted
1103: [18:51:35] <greseky> $root = Page::get()->where("\"ParentID\" = 0 AND \"ClassName\" != \"HomePage\"")->First();
1104: [18:52:51] <catcher> greseky, ?
1105: [18:53:21] <greseky> yes?
1106: [18:54:44] <greseky> I am still learning how to do it :/
1107: [18:54:58] <greseky> newbie :)
1108: [18:55:33] <catcher> greseky, I'd do something like ->where(array("ParentID = 0", "ClassName != \"HomePage\""));
1109: [18:56:35] <greseky> I see, so elements in array do not need to be key => value, it can be just value :)
1110: [18:57:33] <catcher> greseky, right, it's an array of conditions, ANDed by default
1111: [18:58:05] <greseky> great, will try it right now
1112: [19:00:46] <catcher> Though you can use ORM filters instead
1113: [19:03:35] <catcher> Page::get()->filter(array("ParentID" => 0, "ClassName:not" => "HomePage")); or something close to that
1114: [19:06:10] <greseky> ORM version with filter works :D, with where does not
1115: [19:07:24] <catcher> maybe a typo in the 'where', but may as well use the filter anway.
1116: [19:18:35] <greseky> catcher: you helped me a lot :) thanks
1117: [19:18:42] <greseky> works like a charm
1118: [19:18:48] <catcher> greseky, excellent, no problm
1119: [19:18:52] <catcher> nor problem*
1120: [19:22:23] * anselmdk has joined #silverstripe
1121: [19:26:33] * anselmdk quit (Ping timeout: 245 seconds)
1122: [19:32:27] * sekjal has joined #silverstripe
1123: [19:33:02] <sekjal> does anyone know if there is a way for me to access the broader Page scope from within a Widget.ss?
1124: [19:41:41] <lrniningine> sekjal: http://wiki.tcl.tk/1508
1125: [20:14:13] * UndefinedOffset quit (Quit: Leaving.)
1126: [20:17:09] * sekjal quit (Quit: Leaving)
1127: [20:18:12] * jedateach has joined #silverstripe
1128: [20:19:43] * oddnoc has joined #silverstripe
1129: [20:28:33] * jedateach quit (Quit: jedateach)
1130: [20:32:34] * pippy_ has joined #silverstripe
1131: [20:33:03] * basso_ quit (Quit: basso_)
1132: [20:35:35] * pippy quit (Ping timeout: 265 seconds)
1133: [20:46:59] <greseky> I have loop for list, want to know if it is possible to print all DataObject's fields/values in template? seems to have one DataObject and all empty..not sure :) or how to DEBUG in tpl?
1134: [20:52:32] <greseky> :) have it, it is $Debug in tpl :)
1135: [20:52:39] * anselmdk has joined #silverstripe
1136: [20:57:06] * anselmdk quit (Ping timeout: 258 seconds)
1137: [21:41:31] <greseky> this does not work: <% loop $Page.filter('Menu3','1') %> (Menu3 is extra boolean $db field) WHY?
1138: [21:43:20] <greseky> do I really need to write method for this?
1139: [21:50:51] * catcher quit (Quit: Leaving)
1140: [21:56:32] * gelignite quit (Quit: http://bit.ly/nkczDT)
1141: [21:58:59] <simon_w> greseky, doesn't work in what way? And is $Page actually what you want? (Sounds like a single page rather than a list of them)
1142: [22:04:48] <greseky> list shouldnt be empty, this is a list of pages that has for Menu3 value 1
1143: [22:08:29] <simon_w> If you do $Page.ClassName, outside of the loop, what do you get?
1144: [22:10:02] <greseky> HomePage
1145: [22:10:45] <simon_w> So you're not going to be able to filter on it
1146: [22:10:51] <simon_w> It's a single page, not a list of them
1147: [22:12:38] <greseky> I see
1148: [22:13:18] * jedateach has joined #silverstripe
1149: [22:15:53] <greseky> i have a method: public function getMenuExtra($field){ return Page::get()->filter(array($field => 1)); }
1150: [22:16:11] <greseky> and in tpl: <% loop $getMenuExtra(Menu3) %>
1151: [22:16:49] <oddnoc> Template shoulh have $MenuExtra, leaving off the “get”
1152: [22:16:53] <oddnoc> should*
1153: [22:17:59] <simon_w> oddnoc, doesn't work with arguments
1154: [22:18:11] <oddnoc> ah!
1155: [22:18:34] <oddnoc> that seems… suboptimal
1156: [22:19:33] <oddnoc> I never use the “get” in the function declaration, so it hasn’t come up
1157: [22:19:33] <greseky> got this: Missing argument 1 for Page_Controller::getMenuExtra()
1158: [22:20:05] <greseky> in tpl : <% loop $MenuExtra("Menu3") %>
1159: [22:21:08] <oddnoc> greseky: Can you rename the function to also be just “MenuExtra”?
1160: [22:23:10] <greseky> i did, no warning and no error, but empty list
1161: [22:25:55] <greseky> it works now :)
1162: [22:26:42] <greseky> sorry, testing on en-US site, editing on sl-SI :)
1163: [22:27:09] <greseky> that's why it was empty list
1164: [22:31:06] <oddnoc> I’m glad it worked out!
1165: [22:36:26] * LoveDuckie_ has joined #silverstripe
1166: [22:42:01] * UncleCheese_ has joined #silverstripe
1167: [22:49:15] * jedateach quit (Quit: jedateach)
1168: [22:59:03] * joelpittet has joined #silverstripe
1169: [23:00:33] * jedateach has joined #silverstripe
1170: [23:04:06] * BPower has joined #silverstripe
1171: [23:06:19] <BPower> Can anyone explain why this is sending the email to BOTH the TO AND FROM email addresses?
1172: [23:06:23] <BPower> $email = new Email('Marketing Developers <devops@example.com>', $this->Email, 'Your Access Code for '.$this->Page()->Title, $body);
1173: [23:06:27] <BPower> $email->sendPlain();
1174: [23:07:21] <simon_w> BPower, got Email.bcc_all_emails_to or Email.cc_all_emails_to set?
1175: [23:08:20] <BPower> I searched _config.php, config.yaml, and _ss_env...php for "email" with no results...
1176: [23:09:30] <BPower> Just searched the entire repo for "all_emails_to" which returned nothing.
1177: [23:09:40] <BPower> (other than core files)
1178: [23:35:18] * BPower quit (Ping timeout: 245 seconds)
1179: [23:43:29] * LoveDuckie_ quit (Ping timeout: 246 seconds)
1180: [23:51:27] * LoveDuckie_ has joined #silverstripe

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