#silverstripe IRC Log

IRC log for 31 July 2015

All timestamps are in UTC.

1: [00:01:22] <DanaeNZ> lunchtime bitches
2: [00:01:44] <antmas> chch website?
3: [00:03:00] <Hailwood> return BuildingPage::get('BuildingPage', 'ID != '.$this->data()->ID); I'm getting told that ID is ambiguous, How the heck to I filter out the current page and still have it work regardless of stage?
4: [00:03:22] <spronk> o_O
5: [00:08:46] * pinc_ quit (Remote host closed the connection)
6: [00:10:52] <Hailwood> return BuildingPage::get('BuildingPage')->filterByCallback(function(BuildingPage $page){ return $page->ID !== $this->data()->ID; }); this does what I want, but it's not exactly optimized..
7: [00:11:01] <xyphoid_> http://www.stuff.co.nz/the-press/news/70666486/christchurch-city-council-spends-12m-on-new-website presumably
8: [00:11:49] <Stomach> Hailwood cant you just ->filter('ID:not', $this->data()->ID);
9: [00:12:29] <Hailwood> Stomach, Perfect, I knew there would be something like that
10: [00:13:24] <Hailwood> how does it know what column ID is talking about in that form compared to passing a filter into get()?
11: [00:14:53] * joelpitt_ quit (Remote host closed the connection)
12: [00:15:24] * DanaeNZ quit (Quit: DanaeNZ)
13: [00:15:58] * joelpittet has joined #silverstripe
14: [00:18:56] * jonners has joined #silverstripe
15: [00:20:29] * joelpittet quit (Ping timeout: 252 seconds)
16: [00:22:04] * Ryan-Toast quit (Quit: Ryan-Toast)
17: [00:23:50] * zlinux quit (Ping timeout: 246 seconds)
18: [00:24:20] * jonners quit (Ping timeout: 244 seconds)
19: [00:28:10] * UncleCheese has joined #silverstripe
20: [00:28:24] <UncleCheese> Vodafail just hooked me up.. I'm pulling down > 50mb
21: [00:28:39] <Colin[pi]> UncleCheese: :O
22: [00:28:51] <UncleCheese> could have gone to $100 for an extra 10 bucks
23: [00:28:54] <UncleCheese> 100mb
24: [00:29:18] * Colin[pi] glances at his 4mbit "ADSL2+" connection
25: [00:29:21] * Colin[pi] cries a little
26: [00:32:11] * spronk does the same
27: [00:32:16] * spronk waits patiently for fibre
28: [00:33:14] <antmas> lol fibre
29: [00:33:21] <antmas> don't get me started
30: [00:33:26] * antmas cries internally
31: [00:33:41] <Colin[pi]> me waiting for fibre to be installed: http://i.imgur.com/Yy8ejQq.jpg
32: [00:33:43] * Azure quit (Ping timeout: 265 seconds)
33: [00:33:47] <spronk> yeehp
34: [00:33:49] <spronk> pretty much
35: [00:35:14] <antmas> lol
36: [00:37:01] <antmas> do want http://lifehacker.com/the-8-bit-city-home-screen-1721171340
37: [00:37:46] * Stomach quit (Quit: zzz)
38: [00:39:29] <Colin[pi]> antmas: nice
39: [00:40:26] <antmas> oh god, appleTV in September?
40: [00:40:36] <antmas> I don't want to replace my tv every year :(
41: [00:44:56] <Colin[pi]> antmas: don't they already have that? oh wait, you mean the panel itself
42: [00:45:16] <Colin[pi]> or is it just the box again?
43: [00:45:21] * Colin[pi] is not an apple tv user
44: [00:48:36] <antmas> panel
45: [00:48:50] <Colin[pi]> so the box was called apple tv and now the panel will be called apple tv?
46: [00:51:00] <antmas> oh snap, reading wrong article
47: [00:51:06] <antmas> its a new box sorry
48: [00:51:23] <antmas> literally had an article about tvs and new appletv box at same time
49: [00:52:39] <Colin[pi]> lol
50: [00:54:06] <ss23> if airports did a "rent a matress for $5 an hour", theyd be rich
51: [00:54:12] <ss23> richer, i guess
52: [00:57:46] <Colin[pi]> ss23: I don't know about airports but I did see plenty of motels in brazil that were $10 an hour ;P
53: [00:58:03] <ss23> heh
54: [00:58:09] <ss23> different clientelle...
55: [00:58:12] <ss23> :P
56: [00:58:23] <Colin[pi]> potato, po-tah-to
57: [00:58:24] <Colin[pi]> :DS
58: [01:01:30] * Azure has joined #silverstripe
59: [01:06:40] <spronk> hm
60: [01:08:41] * Stomach has joined #silverstripe
61: [01:09:19] * pinc_ has joined #silverstripe
62: [01:14:04] * pinc_ quit (Ping timeout: 250 seconds)
63: [01:15:27] <Jakx> ss23, I dunno about airports, but the Deliotte building on Queen st have "resting rooms" with beds, and their biggest issue is indeed hanky panky, so I've heard.
64: [01:16:20] <spronk> HA
65: [01:18:15] <Colin[pi]> a couple joined the mile high club in the toilet close to my seat on my last flight to south America -_-
66: [01:18:35] <spronk> LAWWWL
67: [01:18:36] <spronk> err
68: [01:18:38] <spronk> capslock
69: [01:18:42] <Colin[pi]> this dude was talking to this girl all night close to there, and I told my gf, "I know exactly what this guy is doing"
70: [01:18:51] <Colin[pi]> she didn't believe me lol
71: [01:19:04] <Colin[pi]> sure enough, a bit later, he went in, then she did
72: [01:19:26] <Jakx> such plays
73: [01:19:30] <Colin[pi]> they were greeted by about 5 attendants who were waiting outside the door for them LOL
74: [01:19:37] <spronk> ha
75: [01:19:42] <spronk> did they get applause?
76: [01:19:47] <spronk> because
77: [01:19:49] <spronk> i'd applaud
78: [01:19:51] <Colin[pi]> pretty much lol
79: [01:20:00] <Colin[pi]> the girl quickly walked down the aisle with head bowed
80: [01:20:00] <Jakx> lol. Worth
81: [01:20:05] <spronk> lul
82: [01:20:05] <Colin[pi]> MILE HIGH WALK OF SHAME
83: [01:20:43] * jonners has joined #silverstripe
84: [01:22:24] <Jakx> Ask the attendant "do you have any wipes?"
85: [01:22:37] <Colin[pi]> Jakx: I used the other toilet after that :\
86: [01:22:51] <Jakx> Colin[pi], ahaha
87: [01:25:46] * jonners quit (Ping timeout: 240 seconds)
88: [01:29:14] * Hailwood quit (Remote host closed the connection)
89: [01:30:23] * Tanger has joined #silverstripe
90: [01:38:53] <antmas> guis
91: [01:38:56] <antmas> today is going to slow
92: [01:39:51] <Jakx> Rocket League.
93: [01:40:16] <antmas> Jakx: don't tempt me
94: [01:40:22] <antmas> seen too many videos of that already
95: [01:40:45] <Jakx> antmas, ahah
96: [01:41:04] <Jakx> would be a great office game. 5 minutes rounds.
97: [01:41:45] <antmas> it really would
98: [01:45:12] * cloph is now known as cloph_away
99: [01:47:59] * Stomach quit (Quit: zzz)
100: [01:55:25] * Stomach has joined #silverstripe
101: [01:56:46] * david__ has joined #silverstripe
102: [01:57:26] <david__> Hi, how can I update the $allowed_extensions parameter of File without touching the file itself?
103: [01:57:53] <david__> as in without making a change in the framework folder which is pulled in via composer
104: [01:58:13] <Jakx> david__, have you tried a DataExtension?
105: [02:00:29] * spronk quit (Quit: I may need a longer sleep timer...)
106: [02:03:30] <david__> perfect
107: [02:03:32] <david__> thanks mate!
108: [02:05:05] <Colin[pi]> <3 DataExtensions
109: [02:05:08] <Colin[pi]> so useful;
110: [02:10:22] * spronk has joined #silverstripe
111: [02:20:01] * zippy has joined #silverstripe
112: [02:20:06] <zippy> afternoon
113: [02:20:26] <zippy> been using the gridfieldextenions to do sorting lately
114: [02:20:39] <zippy> but just noticed it doesn't seem to play nice with the bulk editing extensio
115: [02:22:27] * jonners has joined #silverstripe
116: [02:23:12] * travis-ci has joined #silverstripe
117: [02:23:13] <travis-ci> silverstripe/silverstripe-framework#5466 (3.2 - 7ee444e : Damian Mooyman): The build passed.
118: [02:23:13] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/1e20b7d69818...7ee444e08a32
119: [02:23:13] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/73486796
120: [02:23:13] * travis-ci has left #silverstripe
121: [02:24:24] * pinc_ has joined #silverstripe
122: [02:24:36] <zippy> nm, my bad
123: [02:24:57] * Ryan-Toast has joined #silverstripe
124: [02:25:12] * DanaeNZ has joined #silverstripe
125: [02:26:13] <antmas> Ryan-Toast: DanaeNZ coming back in the room together eh?
126: [02:26:14] <antmas> eh?
127: [02:26:15] <antmas> EH?
128: [02:26:27] <antmas> ^.^
129: [02:26:36] <Colin[pi]> nudge nudge wink wink
130: [02:26:42] <DanaeNZ> WHAT ARE YOU INSINUATINHG
131: [02:26:58] <DanaeNZ> we got back from lunmch and boozies
132: [02:27:06] <DanaeNZ> lotsa boosizes
133: [02:27:12] * antmas wants boozies
134: [02:27:26] <Colin[pi]> read that as lotsa boobies
135: [02:27:35] <Jakx> here I was thinking nippy's were boozies? what are nippy's then?
136: [02:27:41] <Colin[pi]> boobies and nippys?
137: [02:27:52] <DanaeNZ> Boobies.
138: [02:27:58] <DanaeNZ> ( . Y . )
139: [02:28:00] * jonners quit (Ping timeout: 264 seconds)
140: [02:28:10] <Jakx> so nippys are boobies, and boozies is alcohol?
141: [02:28:18] <DanaeNZ> Boobies is alcohol
142: [02:28:23] * joelpittet has joined #silverstripe
143: [02:28:23] <Colin[pi]> THEN WHO WAS PHONE?
144: [02:28:28] <Ryan-Toast> Tast is drunk.
145: [02:28:30] <Ryan-Toast> Toast
146: [02:28:36] <DanaeNZ> lmao
147: [02:28:40] <Jakx> 2:28pm. Check it.
148: [02:30:16] <antmas> Ryan-Toast: isn't toast always slightly drunk?
149: [02:31:23] <Ryan-Toast> antmas: yah,. pretty much.
150: [02:32:01] <Colin[pi]> that's what toast actually means, it's not the bread, it's like "here's a toast... CHEERS" *glug*
151: [02:32:11] <antmas> :D
152: [02:32:15] <DanaeNZ> MIND
153: [02:32:17] <DanaeNZ> BLOWN
154: [02:32:28] * DanaeNZ emerges from pile of beer cans
155: [02:32:34] <antmas> our booze here is locked in a fridge because of fucking summer student plebs
156: [02:32:40] <Colin[pi]> haha DanaeNZ I can actually hear that sound in my brain
157: [02:32:47] <DanaeNZ> :D
158: [02:32:48] <antmas> clink clink clicnk
159: [02:32:52] <Colin[pi]> :D
160: [02:32:56] <DanaeNZ> then the rolling tin
161: [02:33:09] <antmas> who drinks beer out of cans?
162: [02:33:18] <DanaeNZ> ugh
163: [02:33:22] <DanaeNZ> nastes
164: [02:33:23] <DanaeNZ> nasties
165: [02:33:25] <DanaeNZ> that’s rhow
166: [02:33:26] <DanaeNZ> who
167: [02:33:59] <zippy> Colin[pi]: I thought it was more like "he's toasted'
168: [02:34:01] <antmas> lol drunk
169: [02:34:06] <Colin[pi]> zippy: that too
170: [02:34:35] <Jakx> Anyone else reading everything DanaeNZ writes, with a slur?
171: [02:34:42] <DanaeNZ> lmaos
172: [02:34:49] <DanaeNZ> fuck I’m not helping my case am i
173: [02:34:52] <DanaeNZ> :D
174: [02:35:04] <antmas> Jakx: that's normal DanaeNZ :P
175: [02:35:10] <Jakx> antmas, lol
176: [02:35:29] * zippy 's wife has one of those adult coloring in books...
177: [02:35:31] <antmas> pretty crazy how DanaeNZ fitted right in in here :D
178: [02:35:34] * zippy is slightly jealous
179: [02:35:38] <antmas> normall takes a bit of a vettig process lol
180: [02:35:42] <DanaeNZ> ZIPPY I WANT ONE
181: [02:35:48] <DanaeNZ> my friend has the secret garden one
182: [02:36:11] <Colin[pi]> haha my Scottish boss used to get me drunk at lunch time, and I'd come back to the office with headphones on in the corner, munching breath mints and thinking "please don't anyone come talk to me"
183: [02:36:11] <antmas> zippy: does she stay between the lines?
184: [02:36:11] <DanaeNZ> antmas I’m just a weirdo who curses a lot
185: [02:36:17] <DanaeNZ> trhat’s basically the requirement
186: [02:36:18] <DanaeNZ> s
187: [02:36:31] <antmas> DanaeNZ: also, otaku
188: [02:36:35] <antmas> is apparnerly a requirement
189: [02:36:37] <antmas> :D
190: [02:36:37] <zippy> after a hard day at work, sit down and bust out the felts
191: [02:36:56] <antmas> zippy: felts with ph :D
192: [02:37:05] <DanaeNZ> felt tip pens?
193: [02:37:07] <DanaeNZ> just
194: [02:37:08] <Colin[pi]> dafuq are felts?
195: [02:37:08] <DanaeNZ> the
196: [02:37:09] <DanaeNZ> tip
197: [02:37:16] <zippy> yeap, felt tip pens
198: [02:37:19] * antmas remembers when school gave him is biro license
199: [02:37:31] <antmas> was a good day
200: [02:37:34] <Colin[pi]> ohh I missed the colouring book thing
201: [02:37:43] <Colin[pi]> they are becoming quite popular now eh? adult colouring books lol,
202: [02:37:45] <zippy> http://static1.jetpens.com/images/a/000/044/44361.jpg
203: [02:37:50] <Colin[pi]> saw about them on the news the other day
204: [02:37:54] <Colin[pi]> good for "mindfulness"
205: [02:38:04] <antmas> it's like sudoku
206: [02:38:34] <zippy> ho hum what to do
207: [02:40:09] <antmas> zippy: can you edit this host file for me?
208: [02:40:17] <zippy> sure
209: [02:40:18] <antmas> that's something you can do
210: [02:40:24] <zippy> echo '' > /etc/hosts
211: [02:40:27] <zippy> reboot
212: [02:40:31] <antmas> add 15 differnet fucking IPs to it :|
213: [02:40:47] * Stomach quit (Quit: zzz)
214: [02:41:09] <zippy> antmas: make it fun and write some code to do it?
215: [02:41:22] <antmas> zippy: this is sharepoint
216: [02:41:24] <antmas> there is no FUN
217: [02:41:50] <zippy> but is it still just an external file you can edit with something else?
218: [02:42:14] * Stomach has joined #silverstripe
219: [02:42:35] <antmas> zippy: yeah, I'm just ranting now :P
220: [02:43:35] <Colin[pi]> sharepoint is an anagram for "a prone shit"
221: [02:43:39] <Colin[pi]> just fyi
222: [02:43:47] <Colin[pi]> #themoreyouknow
223: [02:43:55] <antmas> HAHAHAHAHAH http://www.stuff.co.nz/life-style/parenting/mums-life/70724337/mum-accidentally-fake-tans-baby-while-breastfeeding
224: [02:44:01] <antmas> (.)(.)
225: [02:44:23] <Colin[pi]> LOL
226: [02:44:33] <zippy> keep looking at 'received' and think it's wrong
227: [02:44:34] <zippy> lol
228: [02:48:05] * Stomach quit (Quit: zzz)
229: [02:48:26] <Ryan-Toast> mmm got my css file down to 8kb
230: [02:48:33] * travis-ci has joined #silverstripe
231: [02:48:34] <travis-ci> silverstripe/silverstripe-cms#1360 (3.2 - f6752c5 : Damian Mooyman): The build is still failing.
232: [02:48:34] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/aa913dd1d571...f6752c5ce993
233: [02:48:34] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-cms/builds/73486825
234: [02:48:34] * travis-ci has left #silverstripe
235: [02:48:44] <DanaeNZ> you got a purdy mouth style.min.css
236: [02:53:00] <Ryan-Toast> DanaeNZ: Going to have to call in our head of HR
237: [02:53:07] <Ryan-Toast> so he can talk about docking.
238: [02:53:12] <DanaeNZ> LMAO
239: [02:53:23] <DanaeNZ> Now that he has a name for it
240: [02:53:36] <DanaeNZ> We need a “saying of the day” tho
241: [02:53:48] <DanaeNZ> I can choose between “You’ll fit in here like a penis in a vagina"
242: [02:53:49] <DanaeNZ> or
243: [02:53:54] <DanaeNZ> “I’m dry as a nun’s nasty"
244: [02:58:10] <spronk> :|
245: [02:58:32] <zippy> O.o
246: [02:58:52] <antmas> LOL
247: [02:59:12] <Vedran__> is it possible to group pages inside the ss backend (Without creating a holder class)
248: [02:59:31] <zippy> define, group
249: [03:02:24] <Colin[pi]> Vedran__: without a holder, perhaps an associated dataobject that acts as a group? one dataobject 'category' has_many pages?
250: [03:02:44] <Colin[pi]> Vedran__: linked up via a drop down on the page's CMS fields?
251: [03:02:45] <Vedran__> zippy: the project I am working on has apartments
252: [03:03:00] <Vedran__> atm I am going to have a list of 140+ pages of each apartments properties
253: [03:03:09] <zippy> ok
254: [03:03:26] <Vedran__> i was hoping I might be able to group them by level without adding holders somehow just 'visually' in the backend
255: [03:04:01] <zippy> and when you say group them
256: [03:04:12] <zippy> you want one page to show a certain level, and another page to show a different level ?
257: [03:04:45] <Vedran__> https://imgur.com/7scMbNW
258: [03:05:12] <zippy> ahhh
259: [03:05:20] <zippy> ok, so what you should do is remove them from the site tree
260: [03:05:26] <zippy> and manage them with model admin
261: [03:05:44] <Vedran__> removing from sitetree, will that screw any data in there now?
262: [03:05:48] <zippy> no
263: [03:05:51] <zippy> let me get this link
264: [03:06:24] <Vedran__> thanks zippy
265: [03:06:24] <zippy> silverstripe-catalogmanager
266: [03:06:27] <zippy> get that module
267: [03:06:31] <Vedran__> and Colin[pi]
268: [03:06:39] <zippy> then in the yaml config
269: [03:07:04] <zippy> whats the classname of the Apartments page they are all under?
270: [03:07:35] <Vedran__> class Apartment extends Page {
271: [03:08:08] <zippy> and the classname of the actual apartment page (lke the 1.06)
272: [03:08:58] <Vedran__> http://kopy.io/Tn1XS
273: [03:09:09] <zippy> o
274: [03:09:11] <zippy> k
275: [03:09:21] <Vedran__> zippy: No good?
276: [03:09:24] <zippy> in your screen shot, you have a page called Apartments
277: [03:09:26] <zippy> whats that class
278: [03:09:30] <Vedran__> ahh
279: [03:09:39] <Vedran__> ApartmentHolder
280: [03:09:41] <zippy> ta
281: [03:09:47] <Vedran__> private static $allowed_children = array('Apartment');
282: [03:09:51] <Vedran__> sorry, got confused there
283: [03:10:03] <zippy> ok
284: [03:10:06] <zippy> so add in that module
285: [03:10:15] <zippy> then drop this in your yaml config and dev/build flush
286: [03:10:15] <zippy> http://www.sspaste.com/paste/show/55bae703b0c35
287: [03:10:25] <zippy> and if it doesn't work blame Stomach
288: [03:10:39] <Vedran__> lol
289: [03:11:07] <Vedran__> do i dev build once after dropping in module, than again after adding yaml. Or all afterwards is ok?
290: [03:11:32] <zippy> all after is ok
291: [03:11:38] <Vedran__> also, if it dont work, is it easy enough to reverse?
292: [03:11:53] <Vedran__> ie. remove yaml/module. dev build and its back to where i am at now?
293: [03:12:03] <zippy> yeap
294: [03:12:10] <Vedran__> thanks heaps zippy
295: [03:13:00] <Vedran__> mysite/_config/config.yml?
296: [03:14:13] <zippy> yeap
297: [03:14:17] <Vedran__> Uncaught ReflectionException: Class HidePageChildrenExtension
298: [03:14:54] <zippy> maybe remove yaml and then flush and then add again
299: [03:15:03] <zippy> needs more flush
300: [03:16:23] <zippy> winning?
301: [03:16:30] <Vedran__> nah
302: [03:16:32] <Vedran__> same thing happened
303: [03:17:22] <zippy> whats the error more
304: [03:17:24] <Vedran__> file is there, name is correct
305: [03:17:34] <zippy> paste it somewhere
306: [03:17:49] <Vedran__> http://kopy.io/JNCDf
307: [03:18:14] <Vedran__> place module in root right?
308: [03:18:36] <Vedran__> oh fffs
309: [03:18:46] <Vedran__> put it in wrong project
310: [03:19:12] <zippy> lol
311: [03:19:14] <Vedran__> when dev/building nothing appeared to be 'added' that normal
312: [03:19:15] <zippy> yea, that might do it
313: [03:20:04] <Vedran__> where do I manage the categories now?
314: [03:20:34] <Vedran__> or 'group' them
315: [03:21:53] <zippy> so your Apartments page has nothing under it, right?
316: [03:21:58] * spronka has joined #silverstripe
317: [03:23:08] * Stomach has joined #silverstripe
318: [03:24:14] * jonners has joined #silverstripe
319: [03:24:58] <zippy> Vedran__: o/ ?
320: [03:25:09] <Vedran__> it does
321: [03:25:12] <Vedran__> everything is still there
322: [03:25:18] <zippy> hm
323: [03:26:19] * travis-ci has joined #silverstripe
324: [03:26:20] <travis-ci> silverstripe/silverstripe-framework#5469 (3 - 6a45f4a : Damian Mooyman): The build passed.
325: [03:26:20] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/d8463f577f61...6a45f4a1e125
326: [03:26:20] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/73491112
327: [03:26:20] * travis-ci has left #silverstripe
328: [03:26:25] <zippy> Vedran__: you added that yml back in?
329: [03:26:37] <Vedran__> uhuh
330: [03:27:47] <Vedran__> it looks the same as it did previously
331: [03:27:50] <Ryan-Toast> Anyone got Gruntfiles in submodules working before?
332: [03:27:51] <Vedran__> the site tree i mean
333: [03:28:25] <zippy> Vedran__: have you added that yml back into the mysite/_config/config.yml file?
334: [03:28:34] <zippy> flushed?
335: [03:28:42] <zippy> checked that the names of the items match yours
336: [03:29:06] <Vedran__> done the first two
337: [03:29:09] <Vedran__> ill check names
338: [03:29:20] * jonners quit (Ping timeout: 246 seconds)
339: [03:30:03] <Vedran__> ok
340: [03:30:11] <Vedran__> Apartment has nothing under it now
341: [03:30:31] * Vedran__ is nervous as fuck now
342: [03:30:32] <Vedran__> lol
343: [03:32:06] <Vedran__> zippy: change apartment from extending page to extending CatalogPageAdmin ?
344: [03:37:16] * travis-ci has joined #silverstripe
345: [03:37:17] <travis-ci> silverstripe/silverstripe-cms#1361 (3 - 71b23b6 : Damian Mooyman): The build failed.
346: [03:37:17] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/a94881372f7c...71b23b622cba
347: [03:37:17] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-cms/builds/73491136
348: [03:37:17] * travis-ci has left #silverstripe
349: [03:39:20] <Vedran__> bbs way past lunch
350: [03:40:04] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
351: [03:40:44] <antmas> wish twitch streamers didn't have to show their webcam :/
352: [03:41:00] * spronka has joined #silverstripe
353: [03:41:05] <DanaeNZ> unless it’s a purdy gurl
354: [03:41:13] <antmas> lol
355: [03:41:15] <DanaeNZ> ( . Y .) roight
356: [03:41:16] <DanaeNZ> roight
357: [03:41:19] <DanaeNZ> roight
358: [03:41:22] <antmas> roight
359: [03:42:22] <zippy> where did he go
360: [03:42:30] <zippy> Vedran__: no don't change that
361: [03:42:31] <Ryan-Toast> PURDY GURL?
362: [03:42:40] <DanaeNZ> spronka? is this a girl spronk
363: [03:42:42] * spronk quit (Quit: I may need a longer sleep timer...)
364: [03:42:44] <zippy> Vedran__: make a new file. ApartmentAdmin.php
365: [03:42:46] <spronka> noooo
366: [03:42:50] <DanaeNZ> GIIIIIRL
367: [03:43:00] <zippy> class ApartmentAdmin extends CatalogPageAdmin
368: [03:43:16] <DanaeNZ> spronk just ran
369: [03:43:17] <DanaeNZ> lol
370: [03:43:32] <antmas> spronka: hey gurl
371: [03:43:37] <spronka> o ffs
372: [03:43:38] <spronka> lol
373: [03:43:50] <antmas> spronkette
374: [03:43:56] <DanaeNZ> there can only be one spronkl
375: [03:43:58] <DanaeNZ> spronk*
376: [03:44:01] <Colin[pi]> antmas: holy shit antmas I just thought of that when you said it
377: [03:44:03] <DanaeNZ> FOIGHT
378: [03:44:12] <antmas> :D
379: [03:44:23] <DanaeNZ> well spronka wins by default
380: [03:44:28] <DanaeNZ> cos spronk ran away
381: [03:44:34] <DanaeNZ> congrats you’re the new spronk
382: [03:44:44] <spronka> woo
383: [03:44:52] <antmas> \o/
384: [03:44:56] <antmas> party time
385: [03:45:50] <Colin[pi]> waynes world, waynes world, party time, EXCELLENT
386: [03:46:00] <DanaeNZ> Colin[pi]: :D
387: [03:47:08] <zippy> Vedran__: going?
388: [03:47:50] <antmas> lol BEEEEEEEEEEEEEEEES https://i.imgur.com/EozMGe5.gifv
389: [03:48:22] <DanaeNZ> antmas: :D
390: [03:48:41] <DanaeNZ> *inser oprah bees gif*
391: [03:48:44] <DanaeNZ> insert*
392: [03:48:48] <Colin[pi]> antmas: loool, that's from a Brazilian tv show
393: [03:48:51] <antmas> that oprah one is amazing
394: [03:49:00] * Stomach quit (Quit: zzz)
395: [03:49:02] * gordon has joined #silverstripe
396: [03:49:03] <Colin[pi]> antmas: I don't think they've caught up with litigation laws yet
397: [03:49:06] * gordon is now known as nontgor
398: [03:49:11] <antmas> Colin[pi]: lol
399: [03:49:19] <antmas> must be time for gifs now?
400: [03:49:25] <DanaeNZ> yes please
401: [03:49:44] <Colin[pi]> antmas: seen this? this one is great: https://www.youtube.com/watch?v=7N5OhNplEd4
402: [03:49:54] <antmas> Colin[pi]: lol yes
403: [03:49:57] <antmas> that's gold
404: [03:50:09] <zippy> http://media.giphy.com/media/nXxOjZrbnbRxS/giphy.gif
405: [03:50:12] <Colin[pi]> how that little girl didn't get smacked the fuck out, I'll never know
406: [03:51:06] <nontgor> how does one get the object representing the HTMLText field of a DataObject. If I do $do->getField('Content') or $do->Content I get the HTML returned as a string. I want the object so I can call forTemplate and get the short codes processed as well, goal being for text indexing
407: [03:51:25] <antmas> this is me and sharepoint http://i.imgur.com/phVbYwV.gifv
408: [03:51:50] <Colin[pi]> lol that gif sums up all cats
409: [03:52:13] <Colin[pi]> "i love you master, purr purr purr, IMA KILL YOU"
410: [03:53:16] <Colin[pi]> http://i.imgur.com/KPn0mVw.gifv
411: [03:53:17] <antmas> http://i.imgur.com/M74a7jw.gif
412: [03:53:23] * Stomach has joined #silverstripe
413: [03:54:09] <Colin[pi]> http://i.imgur.com/8KlBRYt.gifv
414: [03:54:47] <zippy> heh
415: [03:54:56] <antmas> XD
416: [03:55:14] <Colin[pi]> http://i.imgur.com/VpHrE7k.gifv
417: [03:55:53] <antmas> http://i.imgur.com/IP4groJ.gifv
418: [03:56:24] <Colin[pi]> https://i.imgur.com/jkclPoA.gifv
419: [03:56:36] <Colin[pi]> lol that is one lazy ass dog
420: [03:56:37] <antmas> http://media1.s-nbcnews.com/i/streams/2014/September/140910/1D274906747985-gif-jiff-140910.gif
421: [03:56:44] <zippy> antmas: that is me and work atm (dog and ball)
422: [03:56:56] <antmas> zippy: LOL
423: [03:56:57] <antmas> ikr
424: [03:57:03] <Colin[pi]> antmas: o_O
425: [03:57:06] <Colin[pi]> kill it with fire
426: [03:57:13] <Colin[pi]> http://i.imgur.com/Rlp9G4P.gifv
427: [03:57:15] <antmas> hahah
428: [03:57:22] <Vedran__> zippy: nah didnt get it working :/
429: [03:57:28] <antmas> animals acting like people is disturbing af
430: [03:57:45] <zippy> Vedran__: did you create that CatalogPageAdmin file. That was the last step
431: [03:57:54] <antmas> Colin[pi]: bababahahah
432: [03:57:54] <Vedran__> did not
433: [03:58:05] <zippy> ok, just had to do that and you were done, I had forgotten about it
434: [03:59:22] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
435: [03:59:23] <Vedran__> zippy: cant see anything in backend to manage it
436: [03:59:44] <Vedran__> lol :/
437: [04:00:01] <Colin[pi]> rofl: http://i.imgur.com/Dsmm185.gifv
438: [04:01:12] <antmas> Colin[pi]: LOL did not expect
439: [04:02:04] <Colin[pi]> http://i.imgur.com/R8se5g1.gifv
440: [04:02:44] <antmas> Colin[pi]: eeeeeeee nose squish
441: [04:05:38] <Colin[pi]> http://i.imgur.com/MpezQs1.gifv
442: [04:06:00] * travis-ci has joined #silverstripe
443: [04:06:01] <travis-ci> silverstripe/silverstripe-framework#5470 (master - 09210ef : Damian Mooyman): The build passed.
444: [04:06:01] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/60f7c660d05a...09210efbc0b4
445: [04:06:01] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/73494139
446: [04:06:01] * travis-ci has left #silverstripe
447: [04:06:17] <antmas> hahahah pwnd
448: [04:06:31] <DanaeNZ> :D these are some good gifs
449: [04:07:22] <antmas> DanaeNZ: someone has to do it!
450: [04:07:31] * antmas looks at Ryan-Toast with disdain >.>
451: [04:09:23] <Colin[pi]> http://i.imgur.com/Duqccay.gif
452: [04:09:27] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
453: [04:12:40] <DanaeNZ> oh thank god more alcohol
454: [04:15:53] <samlande_> im having fun playing with cortana
455: [04:15:55] <samlande_> xD
456: [04:16:28] * travis-ci has joined #silverstripe
457: [04:16:29] <travis-ci> silverstripe/silverstripe-cms#1362 (master - 3790273 : Damian Mooyman): The build is still failing.
458: [04:16:30] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/82da5a2c6c38...3790273ae7c0
459: [04:16:30] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-cms/builds/73494171
460: [04:16:30] * travis-ci has left #silverstripe
461: [04:16:34] <Colin[pi]> https://i.imgur.com/3YNne8G.jpg
462: [04:16:52] <DanaeNZ> haaa
463: [04:17:57] <samlande_> well this is officially wack :/
464: [04:18:17] <samlande_> the docs for 2.x say i can have a funtion that returns a string in my controller to be called by $functionname in my template
465: [04:18:24] <samlande_> but no such thing will work for me in 3.1
466: [04:18:35] <samlande_> do i need to wrap it in something to make this work?
467: [04:18:43] <antmas> Colin[pi]: LOL
468: [04:18:45] <antmas> oh god
469: [04:19:10] <DanaeNZ> samlande_ that should totally work
470: [04:19:55] <Jakx> samlande_, kopy.io your code?
471: [04:20:09] <samlande_> sec
472: [04:22:26] * spronk has joined #silverstripe
473: [04:22:40] <DanaeNZ> so you come crawling back
474: [04:22:43] <DanaeNZ> spronka is long gone
475: [04:23:04] <Ryan-Toast> I have control of the music at work: http://i.imgur.com/UsD7x6Y.gifv
476: [04:23:28] <DanaeNZ> literally what is happening
477: [04:25:04] <samlande_> http://kopy.io/bRBrp
478: [04:25:49] <DanaeNZ> so you should be going <% loop $latestBlogPosts %>
479: [04:25:59] * jonners has joined #silverstripe
480: [04:26:02] <DanaeNZ> and you don’t need allowed_actions tho
481: [04:26:05] <samlande_> i dont have a problem with my blog posts
482: [04:26:08] <samlande_> that works perfectly
483: [04:26:15] <samlande_> it's the Test() function that's fucked
484: [04:26:16] <samlande_> http://kopy.io/
485: [04:26:18] * david__ quit (Ping timeout: 246 seconds)
486: [04:26:21] <samlande_> that's the relevant html
487: [04:26:21] <Ryan-Toast> samlande_: Try this: http://kopy.io/Wx07V
488: [04:26:36] <samlande_> cheers ryan :D
489: [04:26:38] <DanaeNZ> Ryan-Toast good idea
490: [04:26:48] <samlande_> this is new though: im getting an actual error
491: [04:27:00] <DanaeNZ> post your template code
492: [04:27:01] <samlande_> Strict Notice] Declaration of HomePage_Controller::Test() should be compatible with Page_Controller::Test(SS_HTTPRequest $request)
493: [04:27:07] <DanaeNZ> haha
494: [04:27:08] <DanaeNZ> ah
495: [04:27:08] <samlande_> the 2nd link is the relevant ss code
496: [04:27:11] <Ryan-Toast> samlande_: make the method public function getTest
497: [04:27:16] <DanaeNZ> call it something else
498: [04:27:23] <DanaeNZ> 2nd link is blank
499: [04:28:04] <antmas> you all remember chatter rings right?
500: [04:28:11] <antmas> I had no idea it was an nz thing :|
501: [04:28:23] <samlande_> ok, so all i changed was function Test() to function getTest() and no error, but no output either
502: [04:28:23] <antmas> Ryan-Toast: LOL
503: [04:28:33] <DanaeNZ> change it to getPoop
504: [04:28:36] <DanaeNZ> or something
505: [04:28:54] <DanaeNZ> and link again to template code, the kopy link wasn’t right
506: [04:29:04] <antmas> getPoop
507: [04:29:06] <antmas> wat
508: [04:29:12] <samlande_> http://kopy.io/jdiGg
509: [04:29:31] <DanaeNZ> Oh
510: [04:29:36] <DanaeNZ> You are out op scope
511: [04:29:43] <DanaeNZ> go $Top.Test
512: [04:29:46] <samlande_> OH!
513: [04:29:49] <samlande_> ffs
514: [04:29:51] <samlande_> thank you
515: [04:30:01] <samlande_> arigato
516: [04:30:04] <samlande_> merci
517: [04:30:15] <samlande_> gracious
518: [04:30:19] <samlande_> xD
519: [04:30:29] <Ryan-Toast> samlande_: when you realise you’re out of scope https://i.imgur.com/iJBfLHm.gif
520: [04:31:06] <nontgor> just copying the call from forTemplate() resolved by shortcode parsing issue '$html = ShortcodeParser::get_active()->parse($this->owner->$field());'
521: [04:31:15] <samlande_> no doubt
522: [04:31:22] <samlande_> i appreciate you guys helping this nub out
523: [04:31:27] <samlande_> im still < 30 days in on ss
524: [04:31:28] <Ryan-Toast> !help nontgor
525: [04:31:28] <ss-helper> Please provide the version, full error message and relevant code. You can put the code in http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and paste the link here.
526: [04:31:34] * jonners quit (Ping timeout: 272 seconds)
527: [04:32:33] <nontgor> Ryan-Toast: Issue resolved. Trying to fix up the elastica search engine wrapper https://github.com/gordonbanderson/silverstripe-elastica/tree/dev2
528: [04:33:06] <Ryan-Toast> nontgor: http://i.imgur.com/nw4oIHl.gif
529: [04:33:48] <nontgor> Ryan-Toast: I am so crap at finding gifs :(
530: [04:34:31] <antmas> nontgor: just use reddit
531: [04:35:29] <nontgor> antmas: Noted :)
532: [04:35:39] <antmas> :P
533: [04:36:01] <Ryan-Toast> antmas: http://i.imgur.com/wjO3dGv.gifv
534: [04:36:35] <antmas> Ryan-Toast: haha the slow wait is good
535: [04:36:45] <antmas> I was guessing it would be dickbutt
536: [04:37:46] <Colin[pi]> http://i.imgur.com/kcpfvcS.gifv
537: [04:39:00] * joelpittet quit (Remote host closed the connection)
538: [04:41:00] * antmas quit (Ping timeout: 246 seconds)
539: [04:41:11] * Stomach quit (Quit: zzz)
540: [04:43:36] * Stomach has joined #silverstripe
541: [04:44:30] <samlande_> are there other scope modifiers other than $top ryan?
542: [04:45:27] <Stomach> $up
543: [04:46:09] <samlande_> i feel like an idiot for not catching that
544: [04:47:50] * zlinux has joined #silverstripe
545: [04:49:49] * Ryan-Toast has left #silverstripe
546: [04:52:23] * spronk quit (Quit: I may need a longer sleep timer...)
547: [04:55:24] * spronk has joined #silverstripe
548: [04:56:26] <chocolatemoose> anyone have a good example for user submitted ajax forms?
549: [04:56:56] <spronk> I AM BACK
550: [04:57:04] <spronk> WITHOUT THE A
551: [04:59:45] * Stomach quit (Quit: zzz)
552: [05:02:15] * zlinux quit ()
553: [05:04:42] <DanaeNZ> spronk YOU WERE SPRONKA THE WHOLE TIME?!
554: [05:04:59] <spronk> sure was.
555: [05:05:09] <DanaeNZ> not a gurl?
556: [05:05:14] <spronk> sure wasn't
557: [05:05:16] <spronk> no girly bits
558: [05:05:26] <DanaeNZ> :(
559: [05:09:54] <ss-helper> renderWith not pulling from theme templates only from mysite templates - http://www.silverstripe.org/community/forums/customising-the-cms/show/102741
560: [05:16:08] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
561: [05:21:33] * Stomach has joined #silverstripe
562: [05:22:30] * Stomach quit (Client Quit)
563: [05:22:59] * pinc_ quit (Remote host closed the connection)
564: [05:24:42] * DanaeNZ quit (Quit: DanaeNZ)
565: [05:27:01] * wmk has joined #silverstripe
566: [05:27:46] * jonners has joined #silverstripe
567: [05:32:53] * jonners quit (Ping timeout: 246 seconds)
568: [05:33:20] * pinc_ has joined #silverstripe
569: [05:37:47] * DanaeNZ has joined #silverstripe
570: [05:38:03] * pinc_ quit (Ping timeout: 255 seconds)
571: [05:38:15] * DanaeNZ quit (Client Quit)
572: [05:45:32] * pinc_ has joined #silverstripe
573: [05:50:12] * pinc_ quit (Ping timeout: 264 seconds)
574: [05:55:06] * pinc_ has joined #silverstripe
575: [05:55:14] <ss-helper> Re: SS 3.1 unable to upload file size more than 2MB - http://www.silverstripe.org/community/forums/general-questions/show/102714#post403194
576: [05:56:24] * pinc_ quit (Read error: Connection reset by peer)
577: [05:56:43] * pinc_ has joined #silverstripe
578: [05:57:31] * Stomach has joined #silverstripe
579: [05:58:30] * pinc_ quit (Read error: Connection reset by peer)
580: [05:58:44] * pinc_ has joined #silverstripe
581: [06:02:38] * pinc__ has joined #silverstripe
582: [06:02:45] * pinc_ quit (Read error: Connection reset by peer)
583: [06:07:11] * pinc__ quit (Ping timeout: 246 seconds)
584: [06:11:31] * wmk quit (Quit: nice to meet you ;))
585: [06:14:14] * pinc_ has joined #silverstripe
586: [06:15:37] <Vedran__> anyone around
587: [06:15:38] <Vedran__> ?
588: [06:16:33] * veb quit (Quit: veb-irc: &)
589: [06:19:14] * mahfuz quit (Quit: Page closed)
590: [06:19:18] * pinc_ quit (Ping timeout: 265 seconds)
591: [06:21:08] * pinc_ has joined #silverstripe
592: [06:21:47] * pinc_ quit (Read error: Connection reset by peer)
593: [06:22:09] * pinc_ has joined #silverstripe
594: [06:24:36] * pinc_ quit (Read error: Connection reset by peer)
595: [06:24:40] * pinc__ has joined #silverstripe
596: [06:29:21] * pinc__ quit (Ping timeout: 255 seconds)
597: [06:29:35] * jonners has joined #silverstripe
598: [06:30:00] * Stomach quit (Quit: bye)
599: [06:35:19] * jonners quit (Ping timeout: 260 seconds)
600: [06:40:29] <ss-helper> Role of Quoting Software in New Age Business - http://www.silverstripe.org/community/forums/content-editor-discussions/show/102742
601: [06:41:47] * spronk quit (Quit: I may need a longer sleep timer...)
602: [06:43:39] * micmania1 quit (Quit: micmania1)
603: [06:44:18] * Mike123 has joined #silverstripe
604: [06:44:26] <Mike123> Hello
605: [06:48:08] * terryapodaca has joined #silverstripe
606: [06:55:18] <terryapodaca> SS3+ question...I have a top level menu item called Directory that shows a map of a shopping center, then under that top level menu item I have 3 Category pages...each Category page has any number of businesses which I call Tenants
607: [06:55:50] * veb has joined #silverstripe
608: [06:55:51] * veb quit (Client Quit)
609: [06:56:49] <terryapodaca> My client wants the three Categories listed as tabs along the bottom of the Directory page, but added to the three Tabs of Categories, they want the first tab to be "All" which will hopefully list every child of each Category, and really in no particular order
610: [07:00:39] <terryapodaca> so the page looks like this for now: http://imgur.com/ffdnM3i
611: [07:01:00] <terryapodaca> and what I am trying to solve for is the tabs at the bottom
612: [07:01:12] * spronk has joined #silverstripe
613: [07:01:38] * chocolatemoose quit (Remote host closed the connection)
614: [07:03:12] * Colin[pi] quit (Ping timeout: 244 seconds)
615: [07:03:21] <terryapodaca> Any tips?
616: [07:16:06] <nontgor> terryapodaca: So the column "All" at the bottom would contain a combination of the other 3 tabs?
617: [07:16:26] <terryapodaca> yes
618: [07:17:14] <terryapodaca> and each tab right now has it's own page type called Category, if that helps
619: [07:17:40] <terryapodaca> I thought I could do something like:
620: [07:19:12] <terryapodaca> function getAllCategoryChildren() { return Children()->filter(array('ClassName' => 'Tenant')); }
621: [07:19:19] <nontgor> and do the tabs at the bottom replicate the same items in the dropdown menus at the top?
622: [07:19:48] <terryapodaca> nope, the top menu doesn't have a dropdown menu
623: [07:19:57] <nontgor> k
624: [07:20:20] <terryapodaca> because the other links have no children
625: [07:20:43] <nontgor> cant you just do Category::get()->sort('Title')
626: [07:20:59] <nontgor> are they modelled on SiteTree or a DataObject?
627: [07:22:01] <terryapodaca> They are PageTypes, TenantPage....and their parent page type is CategoryPage
628: [07:22:30] <terryapodaca> so what's the code to get all page types of TenantPage?
629: [07:23:33] <nontgor> TenantPage::get() surely?
630: [07:24:24] <terryapodaca> That should work...I knew I was over analyzing it...let me give that a try
631: [07:24:47] <nontgor> if you want all of the category pages aggregated from all of the TenantPages you will probably need to get all of the TenantPage IDs in one query and then perform a second query where you do likes of CategoryPage where ID in (<list of ids)
632: [07:25:52] <terryapodaca> that should work...I was thinking it was more simple to try and use build it stuff liek Children->Children or something like that
633: [07:26:23] <nontgor> it can be done in a single query but needs dropping out to SQL and taking account of which Stage you are in (Stage or Live)
634: [07:26:50] <nontgor> if cached appropriately the occasional double hit shouldn't be an issue
635: [07:27:57] <terryapodaca> I think I got it figured out now...
636: [07:31:07] <nontgor> cool
637: [07:31:16] * swaiba has joined #silverstripe
638: [07:31:22] * jonners has joined #silverstripe
639: [07:36:55] * jonners quit (Ping timeout: 260 seconds)
640: [07:40:49] <ss-helper> broken documentation for version 2.4 - http://www.silverstripe.org/community/forums/general-questions/show/102704
641: [07:40:49] <ss-helper> Parsing raw sql output - http://www.silverstripe.org/community/forums/data-model-questions/show/102703
642: [07:50:46] * veb has joined #silverstripe
643: [07:53:02] <Mike123> hey guys, i have extended MemberLoginForm and used a template for it, everything is working fine bu i have this "I've lost password" link , but theres no field included in my template
644: [07:53:12] <Mike123> how to get rid of it ?
645: [07:54:49] <nontgor> Mike123: Off the top of my head there is removeFieldByName method
646: [07:55:36] <swaiba> or css Mike123
647: [07:55:39] <nontgor> which I cant find...
648: [07:57:40] <nontgor> Mike123: You need to call removeByName on the appropriate field in the form you've extended's FieldList
649: [07:58:02] * GioVdK has joined #silverstripe
650: [07:59:23] <nontgor> Mike123: And the method Fields() in Form.php is I think what will get you that list
651: [08:03:21] * kinglozzer has joined #silverstripe
652: [08:06:34] * jonners has joined #silverstripe
653: [08:08:03] <Mike123> ok thanks guys
654: [08:14:05] * Colin[pi] has joined #silverstripe
655: [08:19:16] * wmk has joined #silverstripe
656: [08:25:31] * pinc_ has joined #silverstripe
657: [08:27:56] * travis-ci has joined #silverstripe
658: [08:27:57] <travis-ci> dhensby/silverstripe-framework#436 (3 - 6a45f4a : Damian Mooyman): The build passed.
659: [08:27:57] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/d8463f577f61...6a45f4a1e125
660: [08:27:57] <travis-ci> Build details : https://travis-ci.org/dhensby/silverstripe-framework/builds/73513697
661: [08:27:57] * travis-ci has left #silverstripe
662: [08:29:46] * pinc_ quit (Ping timeout: 240 seconds)
663: [08:30:57] * pinc_ has joined #silverstripe
664: [08:32:55] * spronka has joined #silverstripe
665: [08:35:47] * spronk quit (Quit: I may need a longer sleep timer...)
666: [08:41:34] * travis-ci has joined #silverstripe
667: [08:41:35] <travis-ci> dhensby/silverstripe-framework#437 (master - 09210ef : Damian Mooyman): The build passed.
668: [08:41:36] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/60f7c660d05a...09210efbc0b4
669: [08:41:36] <travis-ci> Build details : https://travis-ci.org/dhensby/silverstripe-framework/builds/73513786
670: [08:41:36] * travis-ci has left #silverstripe
671: [08:44:11] <nontgor> I can get json_encode to work for 99% of this query http://www.sspaste.com/paste/show/55bb35366b55d for elasticsearch
672: [08:44:21] <nontgor> how do I get "*": {}
673: [08:44:39] <nontgor> "*" => array() produces "*": [] which breaks the highlighting
674: [08:45:10] * pinc__ has joined #silverstripe
675: [08:45:55] <wmk> kinglozzer, around?
676: [08:46:01] * MichaelHabib quit (Ping timeout: 244 seconds)
677: [08:46:12] <kinglozzer> wmk: Yeah
678: [08:46:27] <wmk> i have a strange problem on a fresh install: it seems /mysite/lang is ignored
679: [08:46:54] <wmk> used zauberfisch's better-i18n-module which grabbed all stuff from dataobjects
680: [08:47:12] <wmk> it creates a /lang/_manifest_exclude file (does this matter?)
681: [08:48:01] <nontgor> json_encode(json_decode('{}')) resolved it #infuckingtuitive :)
682: [08:48:17] <wmk> kinglozzer, even https://github.com/silverstripe/silverstripe-framework/issues/4146#issuecomment-98382481 doesn't seem to help
683: [08:49:03] <kinglozzer> wmk: Yeah that _manifest_exclude file might matter
684: [08:49:18] <kinglozzer> I've never used the better-i18n module so not sure what's going on with that
685: [08:49:26] * pinc__ quit (Ping timeout: 240 seconds)
686: [08:49:33] <wmk> removed it, still doesn't work
687: [08:52:15] <kinglozzer> wmk: So you've got mysite/lang/en_GB.yml for example, and the syntax inside the files is definitely correct?
688: [08:52:36] <kinglozzer> Have you tried visiting http://mysite.com?flush=1, not just /dev/build or /dev/build?flush=1
689: [08:54:25] <wmk> kinglozzer, yup
690: [08:54:37] <wmk> just debugging your suggestion from that issue...
691: [08:55:14] <wmk> kinglozzer, had this issue yesterday at another project... made me crazy
692: [08:55:42] <wmk> the funny thing is: it's only mysite/lang...
693: [08:55:49] <kinglozzer> wmk: These are the worst sort of bugs, ones you can't reproduce :( I'm running a few projects with mysite/lang and it's working fine!
694: [08:55:54] <wmk> /theme/mytheme/lang works fine!
695: [08:55:58] <kinglozzer> Do the projects you're talking about have anything in common?
696: [08:56:06] <wmk> nope
697: [08:56:15] <kinglozzer> i.e. modules, custom cache setups or anything at all? :P
698: [08:56:24] <wmk> yesterday: with translatable and subsites, today fresh install, some comon modules
699: [08:56:38] * travis-ci has joined #silverstripe
700: [08:56:39] <travis-ci> dhensby/silverstripe-framework#438 (3.2 - fa76f98 : Damian Mooyman): The build is still failing.
701: [08:56:39] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/2ee71e941357...fa76f98d0c37
702: [08:56:39] <travis-ci> Build details : https://travis-ci.org/dhensby/silverstripe-framework/builds/73514538
703: [08:56:39] * travis-ci has left #silverstripe
704: [08:57:23] <wmk> gallery theme, bulk editing tools, sortable gridfield
705: [08:58:20] <wmk> and zauberfisch 's better i18n module (which is just a better collector task)
706: [08:59:29] <wmk> uninstall the latter...
707: [09:00:23] <wmk> nope, still the same issue
708: [09:01:07] <kinglozzer> wmk: In i18n::flush(), can you var_dump($cache->getTags()); ?
709: [09:02:19] <wmk> mom
710: [09:02:31] <wmk> array (size=0)
711: [09:02:32] <wmk> empty
712: [09:02:53] <kinglozzer> Hmm, I get array(1) { [0]=> string(14) "Zend_Translate" }
713: [09:03:33] <kinglozzer> wmk: Can you echo get_class($cache); and echo get_class($backend); and tell me which classes it's using?
714: [09:04:42] <wmk> Zend_Cache_Frontend_Output
715: [09:06:41] <kinglozzer> wmk: And Zend_Cache_Backend_File?
716: [09:06:50] <kinglozzer> (for the backend) ?
717: [09:07:04] * aditya has joined #silverstripe
718: [09:08:27] <wmk> Zend_Cache_Backend_File
719: [09:08:38] <aditya> when i upload image in cms why its showing me this error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
720: [09:08:46] <kinglozzer> I wonder if your env may be getting stuck here: https://github.com/silverstripe/silverstripe-framework/blob/4cacebdb88fbfcdb882871945f97d1b14df9dab1/thirdparty/Zend/Cache/Backend/File.php#L743-L746
721: [09:09:08] <ec8or> promised to check again, anyone able to take on a job in the next couple of weeks? about 5 days or so worth of dev (maybe a bit smaller), preferably someone with SwipeStripe experience
722: [09:09:23] <wmk> kinglozzer, win7 with vagrant box and shared folder...
723: [09:09:53] <wmk> ec8or, did you also paste this offer on silverstripe-small-business ML?
724: [09:10:44] <ec8or> wmk: nope, not aware of that one
725: [09:11:11] <wmk> ec8or, https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!aboutgroup/silverstripe-small-business
726: [09:11:14] <ss-helper> Re: Checkbox in CMS form: no label to the left - http://www.silverstripe.org/community/forums/form-questions/show/98291#post403196
727: [09:11:46] <kinglozzer> wmk: Do you have access to the "silverstripe-cache" directory?
728: [09:12:10] <wmk> of course ;)
729: [09:12:21] <wmk> in /tmp/...
730: [09:12:29] <kinglozzer> If so, can you look at /path/to/silverstripe-cache/cache, then open any of the zend_cache---internal-metadatas---i18nZend_Translate.... files?
731: [09:12:51] <kinglozzer> The "internal-metadatas" should contain the tags (if they're set, which they *should* be)
732: [09:13:02] <kinglozzer> Mine contain "Zend_Translate" as the only tag
733: [09:13:07] <ec8or> wmk: applied :)
734: [09:14:11] <wmk> kinglozzer, i don't have a interna-metadatas---i18n... file
735: [09:14:16] <swaiba> aditya - turn on debug mode and check the network tab and look at the response the ajax call has
736: [09:14:18] <wmk> only --- Zend_LocaleC
737: [09:14:30] <swaiba> I suspect a server error...
738: [09:14:35] <kinglozzer> wmk: Inside the /cache/ subdirectory?
739: [09:15:04] <wmk> kinglozzer, http://sspaste.com/paste/show/55bb3c8c1075c
740: [09:15:19] <kinglozzer> wmk: cd cache
741: [09:15:27] <wmk> *facepalm*
742: [09:15:28] <kinglozzer> :D
743: [09:15:51] <kinglozzer> They're serialized, but you should be able to see "tags" and see if any are set
744: [09:17:03] <wmk> yup, i see somethin like "tags";a:1:{i:0;s:14:"Zend_Translate";}}
745: [09:17:12] * Colin[pi] quit (Ping timeout: 255 seconds)
746: [09:17:21] <wmk> and expire set to 9999999999
747: [09:17:26] <aditya> swaiba i didn't get any helpful response from that
748: [09:17:34] <kinglozzer> Cool, so it definitely *supports* tags... I don't know why it's not finding them when you do $cache->getTags() though :S
749: [09:17:44] <swaiba> aditya what response did you get?
750: [09:18:25] <kinglozzer> wmk: It *could* be something around this block of code... https://github.com/silverstripe/silverstripe-framework/blob/4cacebdb88fbfcdb882871945f97d1b14df9dab1/thirdparty/Zend/Cache/Backend/File.php#L742-L746
751: [09:18:37] <kinglozzer> Perhaps the @ is supressing an error?
752: [09:19:02] <aditya> whenever i try to upload any image its size 0.00KB is shown
753: [09:19:32] <kinglozzer> tldr; that method loops over each of the metadata files and in 'tags' mode will try to extract tags from each of them
754: [09:19:42] <kinglozzer> Only it's not working for you :(
755: [09:19:49] <wmk> hmm, no
756: [09:20:02] <wmk> i get the list of files
757: [09:20:51] <swaiba> aditya I doubt it says "0.00KB" in the response tab of the request in the network tab
758: [09:21:15] <aditya> how can i send you the screenshot
759: [09:21:34] <swaiba> "JSON.parse: unexpected character at line 1 column 1..." is likely saying "you didn't return JSON"
760: [09:21:45] <swaiba> so it's either nothing returned or if in dev mode an error...
761: [09:22:02] <swaiba> snag.gy works aditya
762: [09:22:04] <aditya> http://snag.gy/M1azf.jpg
763: [09:22:36] <swaiba> that is not the network tab... do you know what the reponse tab of the request in the network tab is?
764: [09:22:55] <aditya> how?
765: [09:23:30] <kinglozzer> wmk: This is so weird :/
766: [09:23:45] <wmk> yup
767: [09:23:45] <kinglozzer> So it's writing the correct tag to the metadata files... but can't extract it again :S
768: [09:24:43] <swaiba> http://snag.gy/oM64S.jpg aditya
769: [09:25:07] <swaiba> and it helps when you don't understand to say "I dont' understand" than saying "nothing helpful"
770: [09:25:30] <wmk> it's not looping over the files
771: [09:25:40] <wmk> somehow the swich -> break breaks out of the foreach loop
772: [09:25:42] <wmk> ???
773: [09:25:57] <kinglozzer> wmk: The break statement stops it?
774: [09:26:13] <kinglozzer> wmk: How about if you change it to break(1); or something?
775: [09:26:18] <wmk> nope
776: [09:26:27] <wmk> my fault
777: [09:27:18] <kinglozzer> wmk: Is it hitting the if ($metadatas === FALSE) { continue; } ?
778: [09:29:51] <wmk> it returns ['Zend_Translate']
779: [09:29:58] <wmk> so this method should work fine afaik
780: [09:30:15] <wmk> (maybe i set some breakpoints wrongly before)
781: [09:31:42] * cloph_away is now known as cloph
782: [09:32:10] <kinglozzer> wmk: Okay, so $cache->getTags() does return Zend_Translate?
783: [09:32:42] <wmk> hmm, the zend_backend is called twice? first i got ~36 files, now only 10
784: [09:33:13] * Tanger quit (Quit: exit())
785: [09:36:20] * travis-ci has joined #silverstripe
786: [09:36:21] <wmk> ok, that's when SSViewer::flush() is called
787: [09:36:21] <travis-ci> silverstripe/silverstripe-framework#5474 (3.2 - 1532eeb : Damian Mooyman): The build passed.
788: [09:36:21] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/fa76f98d0c37...1532eeb69e3f
789: [09:36:21] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/73522913
790: [09:36:21] * travis-ci has left #silverstripe
791: [09:36:56] * aditya quit (Quit: Page closed)
792: [09:39:16] <wmk> kinglozzer, is mysite parsed or cached differently?
793: [09:39:33] <kinglozzer> wmk: Nope
794: [09:39:49] <nontgor> I'm trying to add highlights to search results from ElasticSearch, I have the data but cant get it rendered http://www.sspaste.com/paste/show/55bb41c0bb55f
795: [09:39:51] <kinglozzer> Can be named anything and it'll be treated the same
796: [09:40:34] <nontgor> If I change $Snippet to just Snippet I am seeing the correct number of instances of the word 'Snippet' appearing
797: [09:40:51] * veb quit (Quit: veb-irc: &)
798: [09:47:41] <kinglozzer> wmk: Any luck? I'm wondering if we can change $cache->clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG, $cache->getTags()); to just be $cache->clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG, array('Zend_Translate')); as that's the only tag and is hard-coded in Zend
799: [09:47:46] <kinglozzer> It's not pretty, but it might work
800: [09:48:52] <kinglozzer> I'd love to know why it's not returning the tags though :s
801: [09:49:00] * Mike123 quit (Ping timeout: 246 seconds)
802: [09:49:46] <Vedran__> is there a way I can map data from excel to feilds in cms?
803: [09:51:38] <wmk> kinglozzer, hmm, now it returns the tag
804: [09:52:03] <kinglozzer> wmk: So if you try adding translations again, it's working? :/
805: [09:52:41] <wmk> unfortunately no
806: [09:53:04] <wmk> not even if i move all code and lang to a new module
807: [09:53:14] * zfmf has joined #silverstripe
808: [09:57:49] <wmk> this ***** yml chokes on umlauts and/or multibyte chars? not really...
809: [09:58:09] * pinc__ has joined #silverstripe
810: [09:58:50] <kinglozzer> wmk: We use umlauts in core translations though :S unless they don't work either?
811: [09:59:06] <nontgor> duh I'd made a silly mistake, pushed the text content instead of the DataObject containing the highlights
812: [09:59:07] <kinglozzer> If that is the issue, we should be raising some sort of notice or error... :/
813: [09:59:11] <nontgor> maybe time to watch the cricekt for a bit :)
814: [10:01:20] <wmk> kinglozzer, well, Gridfield.Add worked all the time
815: [10:02:06] <wmk> does yml make a difference, if a key begins with upper or lower case?
816: [10:02:19] <kinglozzer> wmk: No
817: [10:02:26] * pinc__ quit (Ping timeout: 240 seconds)
818: [10:02:32] <kinglozzer> wmk: Were your umlauts in quotes?
819: [10:02:32] <wmk> cause Gridfield.Add worked, News.db_PublishFrom didn't
820: [10:02:37] <wmk> yup
821: [10:03:07] <kinglozzer> wmk: Wait
822: [10:03:10] <kinglozzer> Maybe it does
823: [10:03:26] <kinglozzer> If you're setting db_PublishFrom, but accessing it as DB_PublishFrom or something
824: [10:03:45] <wmk> well, it works now with umlauts encoded
825: [10:03:51] <kinglozzer> I think Config is case sensitive, not sure if that extends to all yaml
826: [10:03:58] <wmk> db_PublishFrom is for getting fieldName for PublishFrom field
827: [10:04:13] <wmk> (there comes the prefix db_ from)
828: [10:04:41] <wmk> (and that's why i love that better-i18n module)
829: [10:05:11] <wmk> zauberfisch, did you ever encounter problems with umlauts in your yml files?
830: [10:05:30] * Mike123 has joined #silverstripe
831: [10:11:47] * torican has joined #silverstripe
832: [10:13:59] * arnhoe has joined #silverstripe
833: [10:15:02] <nontgor> Finally got highlights working with ElasticSearch and SilverStripe, compare first standard SS and second Elastica (layout still needs love) http://imgur.com/a/F13Gk
834: [10:17:28] <wmk> nontgor, you should blog about your elasticsearch experiences ;)
835: [10:17:42] <wmk> did some highlighting with g4b0's mysqlsearch module
836: [10:17:54] <wmk> good enough for simple sites
837: [10:21:04] <nontgor> wmk: I'm modifying a fork of the SilverStripe Elastica module which is waaaaaaaaaaaaaaay out of date. Number of issues such as HTML being indexed instead of text I am slowly working through as I learn Elastica
838: [10:21:26] <nontgor> wmk: Easier to setup than SOLR and feels less bloaty, though my SOLR experiences are half a decade old now
839: [10:27:49] <nontgor> https://github.com/gordonbanderson/silverstripe-elastica/tree/dev2 #WorkInProgress
840: [10:31:46] <wmk> nontgor, nice
841: [10:34:14] * pinc_ quit ()
842: [10:37:20] <nontgor> is there any method that determines if a DataObject extends SiteTree or not?
843: [10:37:28] <nontgor> *existing* method
844: [10:41:51] * Pynopizzayetk has joined #silverstripe
845: [10:42:14] <Pynopizzayetk> getting hangry. Work promised pizza after a short meeting at 11:30 - but the arseholes have postponed it
846: [10:43:31] <kinglozzer> Pynopizzayetk: Tell them you fail to see why postponing the meeting means postponing pizza
847: [10:43:47] <kinglozzer> Man I want pizza now
848: [10:43:49] <kinglozzer> :(
849: [10:43:49] <Pynopizzayetk> No, because pizza will arrive when meeting is on, fuckers.
850: [10:44:06] <wmk> post bone pizza?
851: [10:46:01] <Pynopizzayetk> lol
852: [10:46:04] <Pynopizzayetk> nope :<
853: [10:46:24] <Pynopizzayetk> one of the guys is leaving, and we were just talking about the hand-over process.
854: [10:46:38] <Pynopizzayetk> So then I asked if a handover is anything like getting a leg-over
855: [10:46:40] <Pynopizzayetk> xD
856: [10:47:51] <nontgor> well you've been shafted already.... on the pizza timing front
857: [10:48:05] <kinglozzer> Pynopizzayetk: But... where is the pizza coming from?
858: [10:48:11] <kinglozzer> Dominos? Pizza hut?
859: [10:48:20] <kinglozzer> Please tell me it's one of those two
860: [10:48:25] <kinglozzer> Anything else and I'll be disappointed
861: [10:48:55] <nontgor> scoozi is the best in Bangkok
862: [10:51:41] <Pynopizzayetk> kinglozzer: costco I think.
863: [10:51:46] <kinglozzer> NOOOOOO
864: [10:51:49] <Pynopizzayetk> we'll see when it gets here. Last time it was.
865: [10:51:56] <Pynopizzayetk> was actually pretty good too
866: [10:52:07] <Pynopizzayetk> oh gidday nontgor
867: [10:52:22] * terryapodaca has left #silverstripe
868: [10:54:36] <nontgor> oh select distinct ClassName from SiteTree_Live might work
869: [10:56:52] <ss-helper> Re: SS 3.1 unable to upload file size more than 2MB - http://www.silverstripe.org/community/forums/general-questions/show/102714#post403198
870: [10:56:52] <ss-helper> Re: Blog 2.0: Duplicating and Reordering - http://www.silverstripe.org/community/forums/blog-module-forum/show/102740#post403197
871: [10:57:27] * jonners_ has joined #silverstripe
872: [10:57:39] * jonners_ quit (Client Quit)
873: [11:06:16] * Copperis has joined #silverstripe
874: [11:06:22] * r_hector has joined #silverstripe
875: [11:08:20] <swaiba> Pynopizzayetk greetings and sympathy for no pizza yet
876: [11:15:11] <Audio> could anyone tell me what my issue is here? CroppedImage($Top.RandomCrop) which is an array like so: array('275,430', '450,430', '450,485');
877: [11:15:22] <Audio> it says height isn't set
878: [11:24:18] <ec8or> Audio: why are you passing an array?
879: [11:24:52] <Audio> what is a better option?
880: [11:24:58] <ec8or> you only pass two values
881: [11:25:08] * Werner_2_ has joined #silverstripe
882: [11:25:10] <ec8or> CroppedImage(300,200)
883: [11:26:29] <ec8or> so if you want to randomize it do that in the controller and return the random values instead of the whole array
884: [11:27:09] <Audio> sorry, I do this $cropArray[mt_rand(0, count($cropArray) - 1)];
885: [11:27:41] * UncleCheese has joined #silverstripe
886: [11:28:15] * wmk quit (Ping timeout: 244 seconds)
887: [11:30:18] * terryapodaca has joined #silverstripe
888: [11:31:04] <Pynopizzayetk> greetings swaiba
889: [11:31:10] <Pynopizzayetk> so the meeting just finished.
890: [11:31:14] <Pynopizzayetk> NO FUCKING PIZZA YET
891: [11:31:43] <Pynopizzayetk> Audio: no.
892: [11:32:10] <Pynopizzayetk> You do $CroppedImage($Top.RandomWidth, $Top.RandomHeight)
893: [11:32:33] <ec8or> Audio: yeah you need to pass two values to the template still
894: [11:32:37] <Pynopizzayetk> or better still, you decorate the Image object and use that method.
895: [11:32:38] <ec8or> can't do it as a string
896: [11:32:45] <Pynopizzayetk> $Image.RandomCrop
897: [11:34:18] <ec8or> mm...pizza
898: [11:41:23] <nontgor> mmmm, pizza
899: [11:42:08] <ss-helper> Re: renderWith not pulling from theme templates only from mysite templates - http://www.silverstripe.org/community/forums/customising-the-cms/show/102741#post403199
900: [11:42:24] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
901: [11:57:12] <ss-helper> Re: Form Placement - http://www.silverstripe.org/community/forums/form-questions/show/102723#post403200
902: [11:58:26] <Pynopizzayetk> pizza, and it's dominos kinglozzer
903: [11:58:36] <kinglozzer> Pynopizzayetk: winning!
904: [11:58:43] <kinglozzer> Pynopizzayetk: You can change your nick now
905: [11:58:55] * kinglozzer lunch
906: [11:58:56] * pinc_ has joined #silverstripe
907: [12:03:07] * pinc_ quit (Ping timeout: 246 seconds)
908: [12:11:08] * swaiba quit (Remote host closed the connection)
909: [12:18:58] * UndefinedOffset has joined #silverstripe
910: [12:19:31] * terryapodaca quit (Ping timeout: 252 seconds)
911: [12:27:20] <ss-helper> Re: Form Placement - http://www.silverstripe.org/community/forums/form-questions/show/102723#post403201
912: [12:35:08] * Werner_2_ is now known as wmk
913: [12:40:11] * jonners quit (Remote host closed the connection)
914: [12:48:50] * darjus01 has joined #silverstripe
915: [12:49:18] * Vedran__ quit ()
916: [12:54:18] <zauberfisch> wmk: no
917: [12:54:26] <zauberfisch> working perfectly fine
918: [12:54:38] <zauberfisch> (though only as values, I have never used umlauts in keys)
919: [12:54:50] <zauberfisch> and as a kind of habbit, I quote all words that have umlauts
920: [12:54:59] <zauberfisch> Foo: 'BBär'
921: [12:55:21] <zauberfisch> that umlaut is probably broken, my client here is not configured for utf8
922: [12:55:52] <wmk> hmm, i noticed IDEA saved the files as win-1252
923: [12:55:57] <wmk> so it could have been this
924: [13:01:45] <zauberfisch> :O
925: [13:01:47] <zauberfisch> it does?
926: [13:05:06] * sham has joined #silverstripe
927: [13:05:29] <Pynopizzayetk> why does Extension not inherit Object? :<
928: [13:06:19] <wmk> Pynopizzayetk, why should it?
929: [13:06:40] <Pynopizzayetk> why should it not?
930: [13:06:47] <wmk> Pynopizzayetk, you should update your nick btw ;)
931: [13:06:54] <Pynopizzayetk> thought I did
932: [13:06:59] * Pynopizzayetk is now known as Pyeatsk
933: [13:07:07] <wmk> lol
934: [13:07:13] <Pyeatsk> oh, just did /Pyeatsk derp;
935: [13:07:48] <Pyeatsk> Dependency injection, none of the lookup/fallback methods, etc.
936: [13:07:54] <Pyeatsk> I guess that's probably why (speed)
937: [13:08:05] <Pyeatsk> and to avoid reference loops.
938: [13:08:08] <sham> $To = Email::getAdminEmail(); could someone please give me the best way to write this as its showing as being deprecated
939: [13:08:35] <Pyeatsk> deprecation errors come with a "Do this instead" line.
940: [13:08:36] <Pyeatsk> read it.
941: [13:10:22] * Jakx quit (Ping timeout: 250 seconds)
942: [13:12:51] <Pyeatsk> It literally says in big letters on the screen as part of the notice: 'Use the "Email.admin_email" config setting instead'
943: [13:13:33] <wmk> sham, look at the code ;)
944: [13:13:39] <Pyeatsk> return Config::inst()->get('Email', 'admin_email');
945: [13:14:13] <wmk> sham, https://github.com/silverstripe/silverstripe-framework/blob/3.2/email/Email.php#L558
946: [13:20:17] * jonners has joined #silverstripe
947: [13:36:55] <Pyeatsk> where does $this->config() come from?
948: [13:37:02] <Pyeatsk> or am I doing it wrong, is it $this->config ?
949: [13:43:33] <kinglozzer> Pyeatsk: $this->config() is correct
950: [13:43:36] <kinglozzer> Object::config()
951: [13:43:41] <kinglozzer> (must extend Object)
952: [13:46:07] <Pyeatsk> kinglozzer: no, coz Object::config is static :<
953: [13:47:17] <kinglozzer> Pyeatsk: So?
954: [13:47:27] <kinglozzer> You can call static methods non-statically, just not the other way around
955: [13:47:31] <Pyeatsk> so $this->config() is not a static call -.-
956: [13:47:39] <Pyeatsk> dafuq, seriously?
957: [13:47:56] <kinglozzer> Yeah, PHP encourages good design patterns like that
958: [13:47:57] <kinglozzer> :P
959: [13:48:50] <kinglozzer> So I guess you could do self::config() instead if it makes you feel better
960: [13:48:51] <kinglozzer> :D
961: [13:49:19] <Pyeatsk> wholey fuck you can too that's fucking mental
962: [13:49:28] <Pyeatsk> kinglozzer: no, in extension.
963: [13:49:34] <Pyeatsk> $this->owner->config()
964: [13:49:37] <Pyeatsk> giving issues
965: [13:49:43] <Pyeatsk> but it's because owner isn't set, apparently.
966: [13:49:47] <Pyeatsk> which is extremely shit.
967: [13:49:51] <kinglozzer> Oh, right, yeah you're shit outa luck there
968: [13:50:07] <Pyeatsk> $this->owner->config()
969: [13:50:16] <Pyeatsk> so it should work but doesn't.
970: [13:50:29] <kinglozzer> Pyeatsk: Depends at what stage you're calling it I guess
971: [13:50:36] <kinglozzer> If the owner isn't set, you're calling it "too early"
972: [13:50:37] <Pyeatsk> because isset($this->owner) === false
973: [13:50:47] <Pyeatsk> yeah, whcih is bullshit. It's on fucking construct
974: [13:50:58] <Pyeatsk> err, not __construct
975: [13:51:01] <Pyeatsk> but... uhh... init.
976: [13:51:18] <kinglozzer> Hm? owner must be set by then..
977: [13:52:03] <Pyeatsk> Object::__construct
978: [13:52:12] <Pyeatsk> http://api.silverstripe.org/3.1/source-class-Object.html#696
979: [13:52:41] <kinglozzer> Pyeatsk: http://api.silverstripe.org/3.1/source-class-Object.html#690
980: [13:52:47] <kinglozzer> Uhhh, wait
981: [13:52:51] <kinglozzer> setOwner(null)
982: [13:52:53] <kinglozzer> O.o
983: [13:53:26] <kinglozzer> Ohhh I see, __call sets the owner, calls shit, then clears the owner
984: [13:54:18] <kinglozzer> So ->allMethodNames() is where you're doing it?
985: [13:54:35] <Pyeatsk> yup
986: [13:54:41] <kinglozzer> Pyeatsk: Sounds like a bugbugbug
987: [13:54:49] <kinglozzer> http://api.silverstripe.org/3.1/source-class-Object.html#839
988: [13:54:58] <kinglozzer> It should set the owner first, then clear it again afterwards (I think)
989: [13:55:04] <Pyeatsk> me too
990: [13:55:09] <Pyeatsk> ffffffuuuuuuuuuuuuuuuuuuuuuuuuuck
991: [13:55:35] <kinglozzer> http://api.silverstripe.org/3.1/source-class-Object.html#1001-1004
992: [13:55:42] <kinglozzer> Add it, see if it fixes it
993: [13:55:44] <kinglozzer> then PR that shit
994: [13:59:40] * pinc_ has joined #silverstripe
995: [14:04:17] * pinc_ quit (Ping timeout: 244 seconds)
996: [14:06:07] <wmk> Pyeatsk, $this->owner->config() in an extension? or Config::inst()->get(...)
997: [14:09:26] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
998: [14:09:41] <Pyeatsk> wmk: either or. I can't do it because ->owner isn't set.
999: [14:11:23] <wmk> ah, you need a config var of the owner?
1000: [14:11:31] <wmk> or of the current extension class?
1001: [14:11:51] <Pyeatsk> yep
1002: [14:11:53] <Pyeatsk> owner
1003: [14:12:10] <Pyeatsk> extension class can't have config ... well can but can't use ->config()
1004: [14:12:21] <Pyeatsk> gotta inst.get it
1005: [14:34:33] <Pyeatsk> urgh fuck that's a bit shit.
1006: [14:34:38] <Pyeatsk> anyway
1007: [14:34:57] <Pyeatsk> Just realised that it won't work anyway
1008: [14:35:02] <Pyeatsk> SADFACE
1009: [14:35:30] <Pyeatsk> (ie, even if the owner was set. Config would access, but the overall goal would still be unachievable)
1010: [14:37:03] * elgabbu quit (Ping timeout: 246 seconds)
1011: [14:41:16] <wmk> Pyeatsk, that's how i solved it: https://github.com/wernerkrauss/silverstripe-folderperpage/blob/master/code/RootFolder.php#L129
1012: [14:44:00] <Pyeatsk> wmk: won't work, will error.
1013: [14:44:02] <Pyeatsk> owner is null
1014: [14:45:05] <Pyeatsk> you've just got a fallback there for if it's not set on the owner
1015: [14:45:10] <Pyeatsk> also check this
1016: [14:45:22] <Pyeatsk> I'm trying to set up the extension from information on the owner
1017: [14:45:56] <Pyeatsk> before I tried to turn it into extension I coudld do it from init, using Object methods
1018: [14:46:31] <Pyeatsk> Extension doesn't inherit Object, and Object doesn't call setOwner before calling defineMethods
1019: [14:47:03] <Pyeatsk> but wouldn't work anyway because I can't supply a config as a result, only a simple list.
1020: [14:49:04] * Mike123 quit (Quit: Page closed)
1021: [14:58:09] <ss-helper> GridField Data Model Admin filter based on logged in user - http://www.silverstripe.org/community/forums/data-model-questions/show/102743
1022: [15:01:44] * elgabbu has joined #silverstripe
1023: [15:15:02] * nontgor quit (Ping timeout: 272 seconds)
1024: [15:23:56] * oetiker quit (Remote host closed the connection)
1025: [15:24:45] * arnhoe quit ()
1026: [15:54:24] * sham quit (Ping timeout: 246 seconds)
1027: [15:57:51] * jonners quit (Remote host closed the connection)
1028: [16:00:17] * jonners has joined #silverstripe
1029: [16:00:25] * pinc_ has joined #silverstripe
1030: [16:04:40] * pinc_ quit (Ping timeout: 244 seconds)
1031: [16:11:20] * kinglozzer quit ()
1032: [16:16:54] <Pyeatsk> hoooome!
1033: [16:17:02] <Pyeatsk> Finally I get to sleeeeep! :D
1034: [16:17:10] * Pyeatsk quit ()
1035: [16:17:27] * joelpittet has joined #silverstripe
1036: [16:24:05] * jonners_ has joined #silverstripe
1037: [16:27:24] * jonners quit (Ping timeout: 244 seconds)
1038: [16:28:45] * jonners_ quit (Ping timeout: 255 seconds)
1039: [16:36:23] * GioVdK quit (Ping timeout: 260 seconds)
1040: [16:41:42] * Copperis quit (Remote host closed the connection)
1041: [17:04:20] * wilson has joined #silverstripe
1042: [17:04:44] * wilson is now known as Guest95450
1043: [17:06:12] <Guest95450> Hi to all, i need a Silverstripe guru to help me go thru my next project. Ready (and more than willing) to pay on an hour/task done basis, as you'd wish.
1044: [17:25:03] * Guest95450 quit (Ping timeout: 246 seconds)
1045: [17:32:28] * wmk quit (Ping timeout: 272 seconds)
1046: [17:44:18] <ss-helper> ear-old Walter Palmer extradite - http://www.silverstripe.org/community/forums/installing-silverstripe/show/102744
1047: [17:47:40] * wmk has joined #silverstripe
1048: [18:01:11] * pinc_ has joined #silverstripe
1049: [18:05:51] * pinc_ quit (Ping timeout: 256 seconds)
1050: [18:12:57] * gelignite has joined #silverstripe
1051: [18:27:09] <Firesphere> 'Evening folks
1052: [18:27:17] * gordon__ has joined #silverstripe
1053: [18:27:22] * gordon__ is now known as nontgor
1054: [18:27:25] * r_hector quit (Remote host closed the connection)
1055: [18:30:16] <wmk> yo Firesphere
1056: [18:47:02] * MarcGuay has joined #silverstripe
1057: [18:47:23] <MarcGuay> Hi folks. Picking up a colleague's project that uses Silverstripe and having a pretty hard time figuring out what's going on.
1058: [18:48:09] <MarcGuay> Is it possible to insert a simple div in the HTML editor? When I do this is seems to get stripped.
1059: [18:48:37] <MarcGuay> Trying to embed an issuu magazine snippet. (http://help.issuu.com/hc/en-us/articles/204816078-How-to-embed-Issuu-on-your-website-for-publishers-)
1060: [18:50:39] <Firesphere> You should insert it in the source in the editor
1061: [18:50:51] <Firesphere> should work fine unless your colleage has written a custom stripper.
1062: [18:52:47] * darjus01 quit (Quit: Leaving)
1063: [18:53:45] <wmk> Firesphere, MarcGuay well, TinyMCE strips everything it doesn't know
1064: [18:53:48] <wmk> e.g. javascript etc..
1065: [18:54:14] <MarcGuay> Ok, thank you.
1066: [18:54:17] <Firesphere> Yes, javascript is stripped, but divs aren't
1067: [18:54:32] <wmk> normally, yes
1068: [18:54:55] <wmk> so two possibilities: allow Tiny (HtmlEditor) to embed JS (and open pandora's box)
1069: [18:55:04] <wmk> or use a shortcode to embed the code for you
1070: [18:55:25] <wmk> there are tutorials for embedding youtube as a shortcode, pretty easy
1071: [18:55:26] <Firesphere> Shortcode is the best way to go, because it'll prevent users from being idiots
1072: [18:56:00] <wmk> Firesphere, isn't that a defintion of the term "user" ?
1073: [18:56:15] <MarcGuay> Thanks I'll look into shortcodes...
1074: [18:56:20] <Firesphere> Well, no, according to WordPress, the definition of "user" == "error"
1075: [18:57:01] <wmk> ah, the good ol' "userInFrontOfScreen"-Error?
1076: [18:57:16] <Firesphere> Same as ID-10T error, yes
1077: [18:58:03] <wmk> ID-10t LOL
1078: [18:59:59] <Firesphere> Don't ever tell a client they ran into the ID-10T error. They will google it and leave you.
1079: [19:03:26] <MarcGuay> Ok something else I don't get. It looks as thought some custom fields have been added to a custom page type (Class extends Page) using $fields->addFieldToTab. I don't see any references elsewhere in the code where these fields are being pulled and displayed in a template. Any hints?
1080: [19:06:08] <MarcGuay> Found it, it's because my IDE isn't set to search .ss files...
1081: [19:07:59] <Firesphere> What IDE do you use?
1082: [19:18:30] <MarcGuay> Firesphere: Eclipe, I've fixed it...
1083: [19:18:35] <MarcGuay> *Eclipse
1084: [19:18:46] <Firesphere> Eclipse?? :X
1085: [19:18:51] <Firesphere> Ow god
1086: [19:23:21] * oetiker has joined #silverstripe
1087: [19:23:47] <wmk> Firesphere, well, it was nice in the beginning. Eclipse is like the first love
1088: [19:23:59] <wmk> (well this was borland pascal 5)
1089: [19:24:21] * wmk feels suddenly old
1090: [19:29:28] <Firesphere> Heh, that was my first IDE as well :D When I went to uni, Pascal was the first they tought!
1091: [19:29:30] <Firesphere> http://www.speedtest.net/result/4547182312.png
1092: [19:29:39] <Firesphere> Hmm, almost
1093: [19:35:05] * Azure quit (Excess Flood)
1094: [19:36:48] <UndefinedOffset> damn... man goes to show how much internet in canada lacks compared to the rest of the world
1095: [19:44:13] * Matt____ has joined #silverstripe
1096: [19:45:06] <Matt____> Hi. I'm looking for some help with forms :)
1097: [19:46:04] <Matt____> I have a bootstrap form, and have a submission button: new FormAction("doSubmit", "Submit")->style("primary")
1098: [19:46:40] <Matt____> I have a function called 'doSubmit', but whenever it's called, it shows the error that argument 2 is missing. I've done some searching and not had much luck, so any help would be appreciated
1099: [19:47:01] * pinc_ has joined #silverstripe
1100: [19:51:48] * pinc_ quit (Ping timeout: 272 seconds)
1101: [19:54:39] <wmk> Matt, i'd throw xdebug on it
1102: [19:56:18] <Firesphere> Debug it, you're probably only giving the call at point A, where point B is needed too ;)
1103: [19:56:23] <Firesphere> Is it a manual form
1104: [19:56:43] <Firesphere> Crap, I should be deep into Python now, but it's not working, I give up.
1105: [19:57:27] <Matt____> xdebug?
1106: [19:58:09] <Matt____> Firesphere - I'll try and upload the code somewhere and maybe you could advise? I'm a little bit lost with this =/
1107: [19:58:38] <Firesphere> try putting it in ssbits.com
1108: [19:58:57] <Firesphere> sorry, not ssbits, sspaste.com
1109: [19:59:09] <Firesphere> It's hard to give a solid advice without a look at the code.
1110: [20:00:09] <Matt____> Sure, 2 seconds
1111: [20:00:37] * UndefinedOffset quit (Quit: Leaving.)
1112: [20:00:44] <Matt____> http://sspaste.com/paste/show/55bbd3b640e7d
1113: [20:01:26] <Firesphere> Ok, first off, don't return instantly, but gather the data.
1114: [20:01:32] <Firesphere> That's way more readable.
1115: [20:01:50] <Firesphere> This is everything stuffed into the return. Causing readability issues.
1116: [20:02:03] <Firesphere> That's just a generic advice, unrelated to your issue ;)
1117: [20:02:13] <Matt____> I agree... but it's how the example was out :(
1118: [20:02:22] <Matt____> *was set out
1119: [20:02:47] <Firesphere> I know, and I strongly disagree with it, but that's a fight I have to fight with UncleCheese ;)
1120: [20:03:01] <Matt____> ha
1121: [20:03:47] <Firesphere> Ok, try assigning the FormAction to a variable, then assign the style. I think that's causing the issue.
1122: [20:04:25] <Firesphere> And please, just tear it apart into BootstrapForm::create($this, __FUNCTION__, $fields, $actions, $required); ;)
1123: [20:06:09] <Firesphere> Your actual issue seems to be related to bootstrapforms itself. Which I'm not entirely familiar with :(
1124: [20:06:47] <Firesphere> It should work, since the FormAction only requires 2 parameters.
1125: [20:07:06] <Firesphere> At this point, concerning your issue.... I'm out, best to ask Aaron himself.
1126: [20:07:31] <Matt____> I'll see what I can sort now - thank you
1127: [20:07:36] <Firesphere> (Also, I'm a bit tired, so if I don't spot the issue right away, I kinda give up :P )
1128: [20:07:49] <Matt____> I do have another issue, although I'm not sure if it's my code or the add-on itself
1129: [20:08:18] <Matt____> I'll come to you on that one in a moment though - one thing at a time ;)
1130: [20:09:06] <Firesphere> There's no specific construct in any of the fields in bootstrap forms. I'm slightly lost in the code therefor.
1131: [20:09:21] <Matt____> Ah ha, that's that one sorted
1132: [20:09:28] <Firesphere> Without a specific construct, I really don't know. What SS version?
1133: [20:10:39] <Matt____> errr, 3.1.3 - seems I'm a little behind
1134: [20:10:42] <Firesphere> Ow, just reading up on BootstrapForms.... It's based on bootstrap 2, not the latest 3
1135: [20:10:52] <Firesphere> 3.1.3 is errr.... okay-ish
1136: [20:10:56] <Matt____> Ah
1137: [20:11:06] <Matt____> Much work to upgrade to latest?
1138: [20:11:17] <Firesphere> I have utterly no clue :D
1139: [20:11:23] <Matt____> Fair enough!
1140: [20:11:39] <Matt____> I'll give it a go now
1141: [20:11:49] <Firesphere> But according to UncleCheese, it's not easily done if I recall correctly.
1142: [20:12:02] <Firesphere> https://github.com/unclecheese/silverstripe-bootstrap-forms/issues/23
1143: [20:12:10] <Firesphere> That one's open for more than a year ;)
1144: [20:12:16] <wmk> Yo! http://www.daykinandstorey.co.uk/blog/silverstripe-vs-wordpress
1145: [20:13:34] <Matt____> Well, I've butchered it a little bit and it appears to be ok, so see how that goes!
1146: [20:14:45] <wmk> Firesphere, with ss3.2 stuff like bootstrap forms and foundation forms will not be needed anymore. just define the standard templates in your yml
1147: [20:14:46] <Firesphere> If you want to customise the templates, copy them to your theme folder!
1148: [20:14:52] <wmk> ok bootstrap forms has some other goodies
1149: [20:15:09] <Firesphere> wmk: I know, but Matt is on 3.1.x ;)
1150: [20:15:19] <wmk> of course
1151: [20:15:50] <Matt____> I'm getting there! :)
1152: [20:16:09] * Azure has joined #silverstripe
1153: [20:16:23] <Firesphere> And obviously, you can't expect anyone to upgrade to a Beta on a stable website ;)
1154: [20:16:57] <wmk> nono, this wasn't meant like that
1155: [20:17:07] <wmk> was just happy things might become easier in 3.2
1156: [20:17:12] <Matt____> I'll certainly get it up to 3.1.13 though... (already in progress :P)
1157: [20:17:36] <Firesphere> 3.1.13 is fully compatible with 3.1.3 as far as I know :)
1158: [20:17:42] <Matt____> brill
1159: [20:17:49] <Firesphere> Maybe only deprecation notices you'll see in dev-mode :)
1160: [20:18:02] <Matt____> I'm actually intrigue by this standard template thing though - sounds like it'll make life easier
1161: [20:19:45] * Azure quit (Client Quit)
1162: [20:23:14] <Matt____> well, form submits fine... but if there's an error it just seems to reload the page with nothing shown
1163: [20:23:18] <Matt____> (thanks btw)
1164: [20:30:28] * Stomach has joined #silverstripe
1165: [20:30:51] <Stomach> does anyone know who did the NZTA site? its on CWP and its always broken :\
1166: [20:31:03] * Stomach rants
1167: [20:36:09] * Matt____ quit (Ping timeout: 246 seconds)
1168: [20:45:25] * Stomach quit (Quit: zzz)
1169: [20:47:45] * pinc_ has joined #silverstripe
1170: [20:51:57] * Azure has joined #silverstripe
1171: [20:52:41] * pinc_ quit (Ping timeout: 265 seconds)
1172: [21:23:57] * veb has joined #silverstripe
1173: [21:31:12] * wmk quit (Ping timeout: 244 seconds)
1174: [21:42:38] * UncleCheese has joined #silverstripe
1175: [21:50:59] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1176: [21:57:47] * zfmf quit ()
1177: [22:02:50] * pinc_ has joined #silverstripe
1178: [22:05:28] * spronka has joined #silverstripe
1179: [22:14:26] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
1180: [22:36:53] * mobiusnz has joined #silverstripe
1181: [22:48:32] * pinc__ has joined #silverstripe
1182: [22:50:37] * MichaelHabib has joined #silverstripe
1183: [22:53:09] * spronka has joined #silverstripe
1184: [22:53:09] * pinc__ quit (Ping timeout: 256 seconds)
1185: [23:21:11] * pinc__ has joined #silverstripe
1186: [23:25:44] * pinc__ quit (Ping timeout: 246 seconds)
1187: [23:26:07] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
1188: [23:31:20] <ss-helper> CMS-Admin: Buttons (Save as Draft, Save & Publish) don't work - http://www.silverstripe.org/community/forums/installing-silverstripe/show/102708
1189: [23:31:20] <ss-helper> Re: HTMLText Saving Error - http://www.silverstripe.org/community/forums/data-model-questions/show/102705#post403127
1190: [23:43:16] * pinc__ has joined #silverstripe
1191: [23:44:24] * pinc__ quit (Read error: Connection reset by peer)
1192: [23:44:32] * pinc__ has joined #silverstripe
1193: [23:47:39] * MarcGuay quit (Ping timeout: 265 seconds)
1194: [23:49:09] * pinc__ quit (Ping timeout: 244 seconds)

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