#silverstripe IRC Log

IRC log for 27 March 2014

All timestamps are in UTC.

1: [00:00:12] <Colin[pi]> when someone else looks at your code: http://i.imgur.com/OxIQjuq.gif
2: [00:00:42] * catcher has joined #silverstripe
3: [00:02:56] * chris_bryer quit (Quit: chris_bryer)
4: [00:04:47] <antmas> Colin[pi]: tis what happens everytime my senior dev inspects my code :P
5: [00:05:45] <antmas> or
6: [00:05:51] <antmas> when I paste something here :D
7: [00:06:44] <Colin[pi]> hehe
8: [00:11:46] <Colin[pi]> ugh this responsive image css makes tinymce sad
9: [00:11:56] * catcher quit (Ping timeout: 268 seconds)
10: [00:15:56] <antmas> Colin[pi]: what's it doing?
11: [00:17:48] <Colin[pi]> well, the typography sets up max-width and width etc. so that it works when the site resizes
12: [00:17:57] <Colin[pi]> but tinymce has a spaz about it
13: [00:18:05] <Colin[pi]> so I'm trying to override it in the editor.css
14: [00:18:13] <Colin[pi]> by using things such as "width: auto" etc.
15: [00:18:27] <Colin[pi]> but when I then resize the image in tinymce, it does nothing
16: [00:18:29] * travis-ci has joined #silverstripe
17: [00:18:29] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#811 (3.1 - ab78198 : Damian Mooyman): The build passed.
18: [00:18:29] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/17b3e3e99fa4...ab78198946e5
19: [00:18:29] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/21637268
20: [00:18:29] * travis-ci has left #silverstripe
21: [00:18:48] <Colin[pi]> if I disable the width: auto in firebug, it works :\
22: [00:19:07] <Colin[pi]> but I can't "remove" an inherited css property, just override with auto, and it doesn't work
23: [00:19:07] <Colin[pi]> gah
24: [00:19:45] <Colin[pi]> I could try "inherit"
25: [00:24:53] <antmas> Colin[pi]: maybe try !important to see if it forces it that way
26: [00:27:24] <Colin[pi]> I did, but auto seems to behave differently than "nothing at all" :\
27: [00:27:40] <Colin[pi]> ah fuck it, I'll look at it later
28: [00:27:55] <zippy__> ^ classic :)
29: [00:28:48] * UncleCheese quit (Quit: UncleCheese)
30: [00:28:54] <antmas> CSS not working? TRY AGAIN IN 2 WEEKS
31: [00:28:56] <antmas> :D
32: [00:33:09] <zippy__> did you turn it off and on again?
33: [00:33:15] <zippy__> oh wait...
34: [00:35:17] <unsignedint> Colin[pi]: well auto is the default value of width. when you remove it in firebug, and things start working, whats the new value of width?
35: [00:37:09] <antmas> Colin[pi]: it'll be inheriting from something ^^
36: [00:37:38] <Colin[pi]> hmm let me see
37: [00:38:48] <Colin[pi]> looks like it gets it from the img width attrib after resize
38: [00:41:05] <unsignedint> whats the img width attribute set to?
39: [00:41:25] <unsignedint> well, I suppose it doesnt matter if you use 'inherit'
40: [00:41:32] <Colin[pi]> it gets defined by tinymce on resize
41: [00:41:52] <Colin[pi]> hmm the problem seems to be with the captionImage, the wrapper div is not having it's width updated if I set to auto
42: [00:42:03] <Colin[pi]> so you resize the image and nothing happens
43: [00:55:25] <antmas> hmmm
44: [00:57:40] <Colin[pi]> could be a js thing :o
45: [00:57:46] <Colin[pi]> fffuuu tinymce
46: [00:59:37] <Colin[pi]> "hi colin, I can't locate the files I sent to you earlier, can you send them to me?"
47: [00:59:45] <Colin[pi]> this shouldn't be part of my job -_-
48: [01:00:23] <unsignedint> typical dumbass client haha
49: [01:00:39] * UncleCheese has joined #silverstripe
50: [01:01:32] * danfo has joined #silverstripe
51: [01:01:35] <Colin[pi]> what do I look like, a backup service?
52: [01:01:43] <danfo> yes
53: [01:02:02] <antmas> lol
54: [01:02:10] <antmas> I'll admit I've done that with a print house before
55: [01:08:34] * babak quit (Quit: Connection closed for inactivity)
56: [01:12:58] * zippy__ quit (*.net *.split)
57: [01:12:58] * basso_ quit (*.net *.split)
58: [01:12:58] * Colin[pi] quit (*.net *.split)
59: [01:12:58] * nicolaas quit (*.net *.split)
60: [01:13:00] * simon_w|air quit (*.net *.split)
61: [01:13:00] * danfo quit (*.net *.split)
62: [01:13:00] * cloph quit (*.net *.split)
63: [01:13:00] * muskie9 quit (*.net *.split)
64: [01:13:01] * CodeTrap quit (*.net *.split)
65: [01:13:01] * jrthomer quit (*.net *.split)
66: [01:13:01] * SMaction quit (*.net *.split)
67: [01:13:02] * Kapdap quit (*.net *.split)
68: [01:13:02] * Stomach quit (*.net *.split)
69: [01:13:02] * marvanni quit (*.net *.split)
70: [01:13:02] * lab-notes quit (*.net *.split)
71: [01:13:03] * andylockran quit (*.net *.split)
72: [01:13:03] * mrzero quit (*.net *.split)
73: [01:13:03] * UncleCheese quit (*.net *.split)
74: [01:13:05] * spronk quit (*.net *.split)
75: [01:13:05] * lewellyn quit (*.net *.split)
76: [01:13:05] * irogue_ quit (*.net *.split)
77: [01:13:05] * ^pH quit (*.net *.split)
78: [01:13:06] * FrozenFire quit (*.net *.split)
79: [01:13:06] * tinyzygote quit (*.net *.split)
80: [01:13:06] * unsignedint quit (*.net *.split)
81: [01:13:06] * Zauberfisch quit (*.net *.split)
82: [01:13:07] * ec8or_ quit (*.net *.split)
83: [01:13:07] * TRB143 quit (*.net *.split)
84: [01:13:07] * Azure quit (*.net *.split)
85: [01:13:08] * violetina quit (*.net *.split)
86: [01:13:08] * ss23 quit (*.net *.split)
87: [01:13:09] * antmas quit (*.net *.split)
88: [01:13:09] * an_Eskimo quit (*.net *.split)
89: [01:13:09] * haydn quit (*.net *.split)
90: [01:13:09] * terryapodaca quit (*.net *.split)
91: [01:13:09] * madmatt quit (*.net *.split)
92: [01:13:09] * ajmitch quit (*.net *.split)
93: [01:13:10] * Kolin quit (*.net *.split)
94: [01:34:37] * simon_w quit (Quit: Leaving)
95: [01:43:04] * ss-log has joined #silverstripe
96: [01:46:17] * danfo quit (Ping timeout: 268 seconds)
97: [01:48:38] <simon_w> 5.2? Why would anyone do that to themselves?
98: [01:49:24] * mojo5000 has joined #silverstripe
99: [01:49:24] * nbezzala has joined #silverstripe
100: [01:49:24] * pippy_ has joined #silverstripe
101: [01:49:53] * robert_ has joined #silverstripe
102: [01:52:56] * travis-ci has joined #silverstripe
103: [01:52:57] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2218 (3.0 - b5c1415 : Hamish Friedlander): The build passed.
104: [01:52:57] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/475b41f11be1...b5c14150cc76
105: [01:52:57] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/21642623
106: [01:52:57] * travis-ci has left #silverstripe
107: [01:57:06] <unsignedint> hey does anyone know how to get [sitetree_link,id=50] out of the search result descriptions
108: [01:57:53] <muskie9> .HTML
109: [01:58:03] <muskie9> or (HTML)
110: [01:58:07] <unsignedint> I tried doing $Content.HTML, $Content.LimitWordCount, $Content.LimitWordCount.HTML and none work
111: [01:58:12] <unsignedint> I still want to limit the word count
112: [01:58:28] <unsignedint> $Content.HTML works but the word count is not limited
113: [01:58:48] <muskie9> .HTML.LimitWordCount
114: [01:58:54] <muskie9> ah
115: [01:59:17] <unsignedint> that just wraps them in <a href=""> and escapes the tags
116: [01:59:35] * mojo5000 quit (Remote host closed the connection)
117: [01:59:38] <muskie9> so don't want the link at all?
118: [01:59:56] <unsignedint> I do want it but its being entity escaped
119: [02:00:07] <unsignedint> eg <a> becomes &gt;a&lt;
120: [02:00:29] <unsignedint> doing .HTML.LimitWordCountXML expands the [sitetree_link] to a proper url but its still entity escaped
121: [02:01:02] <unsignedint> or if I could strip out the [sitetree_link] completely that would work too but its part of the field
122: [02:01:58] <muskie9> are you using the built in site search?
123: [02:02:07] <unsignedint> sure am
124: [02:02:20] <unsignedint> well ive overridden the Page_results.ss template
125: [02:02:40] <unsignedint> but I copy+pasted in the old one and just wrapped it in more html tags
126: [02:02:51] <muskie9> I've used $Content.LimitWordCountXML w/no issues
127: [02:03:02] <unsignedint> I hate site search and wish it would die a horrible death, but client wants it
128: [02:03:15] <unsignedint> muskie9: thats what I had, and its including the [sitetree] tags
129: [02:03:17] <zippy__> sounds just like simon
130: [02:04:15] * nicolaas quit (Remote host closed the connection)
131: [02:04:49] <unsignedint> well .Content.HTML.LimitWordCount.RAW appears to work but now I get the extra formatting due to the content being in <p> elements
132: [02:06:23] <unsignedint> actually it doesnt work, it wraps the [sitetree] in <a> tags and doesnt expand it, although it also doesnt entity encode the <a> tags which is good
133: [02:10:15] <unsignedint> arr bugger it, just subclassed HTMLText and created a new method on it that uses a regex to get rid of anything between square brackets
134: [02:10:34] <unsignedint> and then made my Page use it for Content instead of HTMLText
135: [02:14:46] * PapaBearNZ has joined #silverstripe
136: [02:15:00] <PapaBearNZ> Hi again!
137: [02:15:33] <PapaBearNZ> How can I turn off the preview options completely in the CMS for a specific subset of page classes?
138: [02:16:52] <PapaBearNZ> I have several page classes that are dependent upon a third party api that the cms user may not necessarily be authenticated in so attempting to go to these pages in the CMS breaks.
139: [02:17:40] <PapaBearNZ> However, there are elements of the pages that we wish the cms users to be able to edit - just that preview is meaningless for these pages unless you are properly authenticated into the front end (front end users are not SS users)
140: [02:17:48] * spronk2 has joined #silverstripe
141: [02:20:06] <zippy__> PapaBearNZ: If you create a function on the pages controller called LinkPreview which returns false, might do it (hunch)
142: [02:20:18] * antmas quit (Quit: Page closed)
143: [02:20:30] <zippy__> PapaBearNZ: make sure to flush
144: [02:24:00] <PapaBearNZ> zippy__: that's worth a try :)
145: [02:24:30] <zippy__> PapaBearNZ: 3.1 right?
146: [02:25:01] <PapaBearNZ> zippy__: sorry - yes :) 3.1
147: [02:26:52] <PapaBearNZ> Hmm - nope - that hasn't done the trick. I've tried writing some entwine code to add to LeftAndMain but that's not worked either :( http://pastie.org/8971957
148: [02:27:12] <PapaBearNZ> of course - I'm stumbling in the dark so this might be just so much dingoes kidneys.
149: [02:28:34] <PapaBearNZ> alternative idea - how do I get the pages link in the CMS to use my leftand main class instead of the default one? Then I could overload the getEditForm method and remove the .cms-previewable class from the form and the normal code would take care of the rest... in theory.
150: [02:30:04] <simon_w> ss23, going to be a 3.1.4 before my next disclosure? :p
151: [02:30:20] <zippy__> ss23: one day left!! no pressure
152: [02:30:31] <zippy__> simon_w: pushed automatically at 12:01am ?
153: [02:30:35] <zippy__> *published
154: [02:30:40] <simon_w> zippy__, 0945
155: [02:30:51] <PapaBearNZ> all the pages are extensions of SiteTree which implements the CMSPreviewable interface which si what LeftAndMain uses to add the .cms-previewable class to the form in the firstplace. Unfortunately you cant un-implement an interface from within a child class. *grin*
156: [02:32:26] <zippy__> With the GridField, GridFieldConfig_RelationEditor the grid shows a button to unlink an item - but because the relation is a has_many, I just want to delete it. I am using the wrong config here, to many a has_many relation?
157: [02:34:14] <simon_w> zippy__, you need to change the GridFieldDeleteAction to have $removeRelation set to false (need to remove it and re-add)
158: [02:40:07] * basso_ quit (Quit: basso_)
159: [02:41:33] <zippy__> simon_w: thanks!
160: [02:48:45] * Stomach quit (Read error: Connection reset by peer)
161: [02:59:22] * Colin[pi]-2 has joined #silverstripe
162: [02:59:22] * Stomach[Ache] has joined #silverstripe
163: [02:59:22] * Stomach[Ache] is now known as Stomach
164: [02:59:22] * Colin[pi] quit (Ping timeout: 252 seconds)
165: [03:07:13] <PapaBearNZ> ok - some progress. I've created an extension to LeftAndMain that includes updateEditForm to remove the cms-previewable class from the edit form for the desired classes. This doesn't remove the preview option - instead when you select preview mode you can't go back to the page editting form without clicking the pages option in the sidebar. Not what I was hoping for. Any ideas?
166: [03:07:24] * nbezzala quit (Remote host closed the connection)
167: [03:16:25] <zippy__> PapaBearNZ: You had a look at http://doc.silverstripe.org/framework/en/reference/preview ?
168: [03:19:08] <zippy__> $('.cms-preview').entwine('.ss.preview').disablePreview(); - maybe you could do that right off the bat
169: [03:20:56] * antmas has joined #silverstripe
170: [03:21:21] <antmas> bah
171: [03:21:40] * markcl has joined #silverstripe
172: [03:21:41] <antmas> I'll be stuck at the dentist for 5 hours ;__;
173: [03:21:46] <Colin[pi]-2> dafuq?
174: [03:21:53] * Colin[pi]-2 is now known as Colin[pi]
175: [03:22:00] <Colin[pi]> what happened?
176: [03:22:15] <antmas> Colin[pi]: wisdom teeth removal and jaw bone fixes
177: [03:22:31] <Colin[pi]> D:
178: [03:22:34] <Colin[pi]> fuck that
179: [03:22:35] <Colin[pi]> :(
180: [03:22:37] <antmas> it's mostly my own fault for letting it go so long without sorting it
181: [03:22:45] <antmas> the jaw bone part anyway
182: [03:23:16] <Colin[pi]> what's up with the bone?
183: [03:23:22] <antmas> paid $200 extra for the crazy drugs though :D
184: [03:23:31] <antmas> Colin[pi]: got infected by impacted tooth
185: [03:24:20] <Colin[pi]> ;_;
186: [03:25:04] <antmas> so this weekend will be titanfall 24/7 XD
187: [03:25:07] * muskie9 quit ()
188: [03:26:23] <Colin[pi]> antmas: the dentist paradox.. go now, it gonna hurt but wont be too bad, put if off for later (and later, and later), son you in a world of trouble
189: [03:28:19] <antmas> oh yeah
190: [03:28:33] <antmas> plus the bill goes WAAAAAY up
191: [03:28:48] <Tanger> Does anybody know if there's a way to hide a modeladmin page based on a setting in a config.yml file?
192: [03:31:05] <antmas> Ryan_Toast been on today at all?
193: [03:31:58] <Colin[pi]> nope I believe he started a 4 day weekend
194: [03:32:06] <Colin[pi]> that bitch
195: [03:32:11] <antmas> bastard!
196: [03:37:17] <Colin[pi]> it's almost due for release! https://www.youtube.com/watch?v=dvWGLcdI8o8
197: [03:38:38] <antmas> Colin[pi]: dat trailer
198: [03:38:43] <antmas> lelel
199: [03:39:03] <Colin[pi]> I like the key features: http://i.imgur.com/rtPNR6v.png
200: [03:39:35] <antmas> if that doesn't get to the top of steam
201: [03:39:39] <antmas> the world fails
202: [03:39:45] <Colin[pi]> YOU CAN BE A GOAT
203: [03:39:47] <Colin[pi]> :O
204: [03:39:54] <Colin[pi]> my life is complete
205: [03:40:00] <antmas> LOL
206: [03:40:04] <antmas> that list is excellent
207: [03:40:24] <antmas> the first game ever to actively encourage bugs
208: [03:41:03] <antmas> Custom Goat with reflex scope
209: [03:41:03] <Colin[pi]> a lot of people think it's a joke given the launch date, but I mean... the FAQ clearly states: Q: bro are u srs A: Yes.
210: [03:42:17] * UncleCheese quit (Quit: UncleCheese)
211: [03:43:02] <antmas> imcoming lame clones surely
212: [03:43:10] <antmas> haha yes, Bear Simulator
213: [03:44:14] <Colin[pi]> I really want Beaver Simulator
214: [03:46:34] <markcl> hi. how do i filter only published pages using SomePage::get(null, $filter);
215: [03:46:46] <markcl> what should $filter's contents be?
216: [03:48:43] * UncleCheese has joined #silverstripe
217: [03:49:31] <zippy__> markcl: It will be filtered already
218: [03:49:39] <zippy__> markcl: you will see more if your logged in I believe
219: [03:53:33] * antmas quit (Ping timeout: 245 seconds)
220: [03:56:10] <markcl> zippy__: the code im using is to displayed only to people logged in the cms. will the unpublished pages still be filtered out?
221: [04:03:33] * an_Eskimo quit (Ping timeout: 245 seconds)
222: [04:08:15] * spronk2 quit (Quit: spronk2)
223: [04:16:25] * CodeTrap quit (Ping timeout: 240 seconds)
224: [04:17:25] * CodeTrap has joined #silverstripe
225: [04:19:29] * babak has joined #silverstripe
226: [04:25:03] <zippy__> No has_one found on class 'SIgnupFormSubmission', the has_many relation from 'SignupPage' to 'SIgnupFormSubmission' requires a has_one on 'SIgnupFormSubmission'
227: [04:25:09] <zippy__> ooohhh… typo
228: [04:32:36] * Bollig|DesignCty has joined #silverstripe
229: [04:42:31] * zippy__ quit (Ping timeout: 264 seconds)
230: [04:44:44] * basso_ has joined #silverstripe
231: [04:48:43] <markcl> i cant seem to save anything on DisplayPage
232: [04:48:44] <markcl> $f->push(DropDownField::create('DisplayCenterID')->setTitle('Display Center')->setSource($displayCenters)->setEmptyString('-- select --'));
233: [04:48:51] <markcl> err.. i mean DisplayCenter
234: [04:49:04] <markcl> when i refresh the page it resets to blank after saving
235: [04:49:21] <markcl> im sure DisplayCenter is in the has_one array
236: [04:50:27] <markcl> [User Error] Uncaught Exception: Object->__call(): the method 'displaycenter' does not exist on 'Photo'
237: [04:50:47] * UncleCheese quit (Quit: UncleCheese)
238: [04:51:54] * cloph quit (Ping timeout: 268 seconds)
239: [04:56:21] * cloph_away has joined #silverstripe
240: [05:24:13] * Shrike_Finland has joined #silverstripe
241: [05:48:31] * markcl1 has joined #silverstripe
242: [05:49:01] * markcl quit (Ping timeout: 240 seconds)
243: [05:51:11] * zippy__ has joined #silverstripe
244: [05:51:35] * zippy__ is now known as Guest87165
245: [05:55:08] * Colin[pi] quit (Ping timeout: 240 seconds)
246: [05:55:43] * Guest87165 quit (Ping timeout: 264 seconds)
247: [05:59:49] * Shrike_Finland quit (Quit: Leaving.)
248: [06:02:37] * Shrike_Finland has joined #silverstripe
249: [06:16:07] <Bollig|DesignCty> simon_w/ simon_w|air: you about dude, I have a query about modeladmin filter.
250: [06:17:13] <Bollig|DesignCty> I have a data object with an Image has_one. I want to be able to filter by the Image.Title field, however when I enable it with searchable fields it seems the code is trying to look for an Image table in the database and just dies :(
251: [06:18:33] <Bollig|DesignCty> anyone else who can help, would be greatly appreciated :D
252: [06:19:27] * Shrike_Finland quit (Quit: Leaving.)
253: [06:29:54] * Shrike_Finland has joined #silverstripe
254: [06:39:23] * Shrike_Finland quit (Quit: Leaving.)
255: [07:04:03] * zippy___ has joined #silverstripe
256: [07:04:13] <zippy___> :)
257: [07:04:41] * zippy___ is now known as Guest24159
258: [07:05:17] * Guest24159 is now known as zippy____
259: [07:10:45] * markcl1 quit (Quit: Leaving.)
260: [07:42:27] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
261: [07:46:34] * spronk2 has joined #silverstripe
262: [08:04:23] * deschebbs has joined #silverstripe
263: [08:12:18] * Shrike_Finland has joined #silverstripe
264: [08:12:21] * UncleCheese has joined #silverstripe
265: [08:15:50] * deschebbs quit (Quit: User terminated!)
266: [08:16:12] * deschebbs has joined #silverstripe
267: [08:20:18] <Tanger> Some components on grid field can go suck a fat one
268: [08:20:27] * ARNHOE has joined #silverstripe
269: [08:20:38] <Tanger> No offence or anything
270: [08:20:55] <zippy____> :)
271: [08:25:09] * Colin[pi] has joined #silverstripe
272: [08:34:19] <zippy____> UncleCheese: going to fix those broken images on the better buttons page :)
273: [08:34:37] <UncleCheese> not very high on my list
274: [08:34:45] <UncleCheese> you want to give it a go?
275: [08:35:30] <UncleCheese> Tanger: I don’t like the AddNewOrLinkExisting clusterfuck very much either
276: [08:36:52] <Tanger> UncleCheese: I wouldn't mind it, except Bollig and I spent the past hour or so wondering why I could filter using searchable_fields, yet that particular component just errored because it wasn't reading it in the same way
277: [08:37:14] <zippy____> Eveytime I create a gridfield I remove that GridFieldAddExistingAutocompleter
278: [08:37:18] <UncleCheese> it’s really bad execution in so many ways
279: [08:37:34] <Tanger> zippy___: Same, absolutely 100% agree
280: [08:37:47] <UncleCheese> it’s a good idea in spirit.. grid field in generatl
281: [08:37:55] <Tanger> Yeah
282: [08:37:55] <UncleCheese> but i think it kind of outsmarts itself
283: [08:39:30] <Tanger> By the way UncleCheese, was the ol' sortable Kickassetmultiimagefield not upgraded in 3.x because it just doesn't work in grid field?
284: [08:39:32] <Tanger> I miss that module
285: [08:39:50] <UncleCheese> i have plans for a new kickassets module
286: [08:39:58] <UncleCheese> it’s actually available for 3.0
287: [08:40:11] <UncleCheese> but i’m not sure i’d recommend using it in production
288: [08:40:24] <Tanger> I have the current one on git, which enhances the file admin
289: [08:40:29] <UncleCheese> yeah
290: [08:40:35] * Shrike_Finland quit (Quit: Leaving.)
291: [08:40:37] <Tanger> Why not in production?
292: [08:40:42] <UncleCheese> i dunno
293: [08:40:48] <UncleCheese> you don’t find that it’s really buggy?
294: [08:40:48] <Tanger> Hah
295: [08:41:40] <Tanger> To be honest I don't really use it as a dev. Most uploaded stuff we use is handled either by encapsulating data objects or with uploadfields
296: [08:42:10] <Tanger> No bugs found yet ;)
297: [08:42:28] <UncleCheese> oh great
298: [08:42:42] <UncleCheese> you liked the upload fields that came iwth the old kickassets?
299: [08:43:27] <Tanger> Loved them. Sortable, easily editable galleries were a cinch. And you could do it without changing to a new page
300: [08:43:36] <UncleCheese> they were sortable?
301: [08:43:55] <Tanger> Yeah, drag and drop sortable
302: [08:43:57] <UncleCheese> no shit
303: [08:44:02] <UncleCheese> wow
304: [08:44:04] <Tanger> lol
305: [08:44:06] <UncleCheese> i never used that module
306: [08:44:12] <UncleCheese> sounds cool
307: [08:44:34] <UncleCheese> i know there’s a sortable upload field module for ss3
308: [08:44:41] <UncleCheese> but uploadfield is such a mess
309: [08:44:44] <UncleCheese> thanks to Zauberfisch
310: [08:44:44] <Tanger> Is there?
311: [08:44:46] <UncleCheese> yeah
312: [08:45:23] * Shrike_Finland has joined #silverstripe
313: [08:45:31] <Tanger> Didn't you write the ManyManySortable module for 2.4?
314: [08:45:44] <UncleCheese> in what capacity?
315: [08:45:52] <UncleCheese> dataobjectmanager had support for it
316: [08:46:03] <Tanger> It was part of kickassets
317: [08:46:10] <UncleCheese> possibly
318: [08:46:22] <Tanger> Too many projects ago?
319: [08:46:22] <UncleCheese> i’ve written so much shit
320: [08:46:29] <Tanger> Yeah, thought so
321: [08:46:41] <UncleCheese> it’s probably like a musician who forgets the chords to his own songs
322: [08:47:28] <UncleCheese> i have a billion other things i should be doing, but maybe an updated version of kickassets would hit the spot
323: [08:47:45] <Tanger> We'd love you even more than we do now
324: [08:48:03] <UncleCheese> i’m thinking that it has to be a persistent, non-blocking experience to browse files
325: [08:48:07] <Tanger> My coworker loves his simplicity
326: [08:48:30] <UncleCheese> i think it’s really punishing to have to go to a new admin screen just to manage files
327: [08:48:47] <UncleCheese> i don’t even think it belongs in the left column with all the admins
328: [08:48:47] <Tanger> Agreed. It just confuses the user
329: [08:48:54] <UncleCheese> so a modal window works well
330: [08:48:57] <UncleCheese> the other thing is
331: [08:49:03] <Tanger> And they're usually barely internet-competent as it is
332: [08:49:04] <UncleCheese> it needs to be a public api
333: [08:49:13] <UncleCheese> so any module should be able to ivoke somehthing like this:
334: [08:49:27] <UncleCheese> KickAssets.requestFile(function(fileID) { } ));
335: [08:49:38] <UncleCheese> and that would instantiate the modal window, and on close, return your selection (s)
336: [08:49:49] <UncleCheese> and that way, the other widget could do whatever it needs to do
337: [08:52:15] <Tanger> That would be ideal. Could you do it in a way that the page would maintain it's state when you return, but eith the updated files added to relevant section?
338: [08:54:55] * danfo has joined #silverstripe
339: [08:55:03] <zippy____> danfo!! hows the hhvm
340: [08:55:55] <danfo> hey :D still struggle street with this /admin issue so trying to solve that on php 5.3
341: [08:55:58] <danfo> besides that, great :P
342: [08:56:17] <UncleCheese> Tanger: yeah, exactly
343: [08:56:22] <Tanger> By the way, with your cli Silversmith application, I'm pretty convinced you don't need to restart the browser. A /flush on admin does the trick too
344: [08:56:38] <UncleCheese> you did in 2.4
345: [08:56:44] <UncleCheese> no longer true in 3.0
346: [08:56:52] <Tanger> Oh really? I thought it was a 3.0 invention
347: [08:57:01] <UncleCheese> nope
348: [08:57:02] <UncleCheese> well
349: [08:57:08] <UncleCheese> silversmith started in 2.4
350: [08:57:17] <UncleCheese> and then i released the cli for 3.0
351: [08:57:25] <UncleCheese> but a lot of the language was left over from the 2.4 days
352: [08:57:37] <Tanger> Yeah, we've been going through it and adding a few things
353: [08:57:48] <UncleCheese> pull request!
354: [08:58:36] <Tanger> Haha, sure. I'll get onto that tomorrow morning. Some parts aren't too useful except as internal things we use for quoting and the like
355: [08:59:26] <Tanger> But we added extra ways to populate default settings and stuff in fixtures
356: [08:59:52] <Tanger> So we write even less php
357: [09:05:06] * kinglozzer has joined #silverstripe
358: [09:08:43] <zippy____> with silversmith is it possible to gernate just a page via the command line? like; silversmith --page FooBar --fields 'name:varchar(20), note:text' etc ?
359: [09:11:21] <Tanger> zippy___: I don't think it is, you still need to go through _project.yml
360: [09:11:33] <Tanger> But it wouldn't be THAT hard to implement…
361: [09:14:48] <Tanger> seed-content does the same, but it just passed the argvs to a different class
362: [09:19:42] <zippy____> in my form, after it's passed the basic required validation and it gets passed to my "processing" action, if I then add an error myself and redriect back the forms contents don't appear to be kept. It seems the session for the data is only kept if the internal validation fails....
363: [09:19:57] * spronk2 quit (Quit: spronk2)
364: [09:22:02] <Tanger> How do you go about redirecting back?
365: [09:22:45] <zippy____> controller->redirectBack();
366: [09:25:02] <marvanni> you will need to add the data to session yourself if you need the data after a redirect
367: [09:25:34] * spronk2 has joined #silverstripe
368: [09:26:04] * micmania1 has joined #silverstripe
369: [09:26:37] <marvanni> Or you might check for if($data = Session::get("FormInfo.{$form->FormName()}.data")) {$form->loadDataFrom($data);}
370: [09:26:55] * Pyxilik has joined #silverstripe
371: [09:28:54] <UncleCheese> Tanger: have you seen mockdataobjects?
372: [09:29:01] <UncleCheese> it replaces a lot of the silversmith functionality
373: [09:29:19] <Tanger> zippy___: I think it's the part where it sets cache_age to 0 when you redirect back
374: [09:29:31] <Tanger> UncleCheese: No I haven't, might take a look now
375: [09:29:38] <UncleCheese> http://www.leftandmain.com/silverstripe-screencasts/2013/11/07/just-fake-it-the-mockdataobjects-module/
376: [09:31:48] <Tanger> Ah, I see. I do love the content population
377: [09:32:12] <Tanger> Beats the heck out of copy & pasting lore ipsum into the db
378: [09:34:53] * basso_ quit (Ping timeout: 252 seconds)
379: [09:36:18] <Tanger> Video is loading so slow :(
380: [09:37:00] <Tanger> Oh cool
381: [09:37:11] <Tanger> That's amazing for unit testing
382: [09:41:28] <UncleCheese> yeah, it’s quite nice
383: [09:41:37] <UncleCheese> i like the model independent data generation
384: [09:41:52] <UncleCheese> $Fake.Address
385: [09:42:20] <UncleCheese> <% loop $Fake.Loop %>$Fake.Image $Fake.Words<% end_loop %>
386: [09:42:57] <Tanger> And the field name hooks
387: [09:43:03] <Tanger> Gives so much room for custom modules to use it
388: [09:43:07] <UncleCheese> that’s only to disambiguate varchars
389: [09:43:24] <Tanger> With realistic-like data, yeah
390: [09:43:32] <UncleCheese> a lot of data is driven by the field type
391: [09:43:43] <UncleCheese> but varchars are a bit second-class citizens in that way
392: [09:44:44] * ocm has joined #silverstripe
393: [09:44:46] <ocm> howdy!
394: [09:45:06] <zippy____> ocm: hi
395: [09:45:16] * UncleCheese quit (Quit: UncleCheese)
396: [09:45:53] <ocm> 9+685230.3
397: [09:45:53] <ocm> 6+9584120.3
398: [09:45:53] <ocm> +69854320.3
399: [09:45:54] <ocm> 6+98547210.3
400: [09:45:54] <ocm> 6+9*/8547210-*+96
401: [09:45:55] <ocm> -+
402: [09:46:11] <ocm> whoops, that was the coffee spilled on my keyboard
403: [09:46:18] <zippy____> uh oh
404: [09:46:24] <Tanger> Lol
405: [09:46:25] <zippy____> lost a keyboard recently to that
406: [09:46:28] <Tanger> Quick! Dump it in water!
407: [09:46:59] <ocm> some heavy coffee
408: [09:47:03] <ocm> but it survived!
409: [09:47:29] <Tanger> I nearly cried when the 'M' key on my mechanical keyboard stopped working properly
410: [09:47:30] <ocm> I think it loves the coffee, spilling it once a month or so
411: [09:47:48] <ocm> do you use the 'M' that much?
412: [09:47:49] <Tanger> Do you know how flipping' impossible it is to type emails with a crappy 'm' key?
413: [09:47:56] <Tanger> URLs too
414: [09:48:03] <Tanger> See? I never thought I used 'm' much either
415: [09:48:12] <ocm> haha
416: [09:48:24] <ocm> you could always go for the onscreen keyboard
417: [09:48:33] <ocm> or make a keymapping of other keys combined to create the M
418: [09:48:34] <ocm> :D
419: [09:48:39] <Tanger> Hahaha
420: [09:48:42] <Tanger> Map 'm to a macro key
421: [09:49:10] <ocm> those are a lot of m's there
422: [09:49:16] <ocm> macro mapping madness
423: [09:49:24] <Tanger> acro apping adness
424: [09:49:33] <Tanger> Very confusing while typing via IM
425: [09:53:40] <andylockran> hey guys, really want to get my head into the Session stuff on SS3.
426: [09:54:07] <andylockran> I'm getting blocking sessions on lots of pages, meaning when the site slows down quite quickly
427: [09:54:55] <andylockran> I've moved them over to memcached
428: [09:55:39] <Pyxilik> again with the sessions, but again with no explanation at all.
429: [09:55:44] <ss23> http://i.imgur.com/NiPAP3M.gif
430: [09:56:18] <Pyxilik> urgh ss23, wtf.
431: [09:56:25] <Pyxilik> y u do dis 2 me? :<
432: [09:56:40] <andylockran> I'm just not sure where to start. When I load a page, there is a 4 second delay whilst session_start() is called in framework/control/Session.php
433: [09:56:46] <Tanger> ss23:…I don't quite agree with your statement, but I'll defend to the death your right to say it
434: [09:56:58] <Pyxilik> andylockran: well then the issue is at PHP level, not SS leve.
435: [09:57:00] <Pyxilik> level*
436: [09:57:50] <andylockran> Pyxilik: that may be true, yes - but it only manifests itself when I'm using SS.
437: [09:57:52] <ss23> help
438: [09:57:54] <ss23> I'm luaghing so hard I'm hiccuping
439: [09:58:10] <ss23> Pyxilik: Why the nick changes you weirdo?!
440: [09:58:21] <ss23> Or are you not pyro
441: [09:58:22] <ss23> :O
442: [09:58:54] <Pyxilik> andylockran: in that case you should try as best you can to ensure it is in fact session_start that's causing it.
443: [09:59:18] <Pyxilik> perhaps hacking some mtime and a die will help.
444: [09:59:45] <Pyxilik> around the session start call
445: [09:59:51] <Pyxilik> ss23: desl with it.
446: [10:00:07] <zippy____> ss23: 1 hour left
447: [10:00:20] <Pyxilik> ss23: I'm at work, can't be arsed authing over non ssl.
448: [10:01:06] <ss23> :O
449: [10:01:07] <Pyxilik> and just having a bit of fun.
450: [10:01:11] <ss23> zippy____: It's all merged!
451: [10:01:11] <ss23> :D
452: [10:01:16] <ss23> zippy____: The release is ready to go ^.^
453: [10:01:16] <zippy____> https://tinypng.com/ has been quite handy to shrink down pngs
454: [10:01:18] <Pyxilik> I unno, JUST COZ MAN
455: [10:01:29] <andylockran> I'm 100% sure it's session_start() - I've already microtimed either side of it and also attempted to use xdebug to get deeper into the code. Yet session_start() and it's slowness is as close as I've got to any answer
456: [10:01:30] <zippy____> ss23: cool :) fire away!!
457: [10:01:41] <Pyxilik> zippy____: dafuq.
458: [10:01:57] <Pyxilik> advanced non-lossy compression. Do they realised they just described PNG itself?
459: [10:02:17] <Pyxilik> oh wait, lossy.
460: [10:02:31] <Pyxilik> well what the fuck is the point in that.
461: [10:02:39] <Pyxilik> oic, alpha preservation.
462: [10:03:22] <zippy____> Pyxilik: jez, it's like you read two letters on the page, come back and make a comment, go back and read two more and rinse and repeat :)
463: [10:03:28] <zippy____> * two words rather
464: [10:04:07] <Pyxilik> zippy____: just use PNG.
465: [10:04:15] <Pyxilik> It's the solution for all the things.
466: [10:04:39] <zippy____> Pyxilik: yes I use a png, it's 300k and I drop it in there and comes out 60% less, with alpha (orginally saved via photoshop)
467: [10:05:10] <Pyxilik> mmm. Photoshop. There's your issue right there!
468: [10:05:49] <Pyxilik> but yeh, merging like colours to reduce size is a smart idea I guess, it's not actually a new format or anything, so it's just a lot of calculation.
469: [10:05:53] <zippy____> andylockran: I've seen that issue before with concurrent requests / lots of ajax loading on the page at the same time, and then opening another browser window and hitting the same url
470: [10:06:05] <Pyxilik> Alright, I've changed my mind. I can agree with that.
471: [10:07:06] <zippy____> phew I am glade, I will be able to get some sleep tonight then
472: [10:07:17] * Tanger quit (Quit: Tanger)
473: [10:07:23] <Pyxilik> oop, no. Not 100% reliable. I'm skeptical again.
474: [10:07:26] <zippy____> Pyxilik: sort out the itching face?
475: [10:07:48] <Pyxilik> "compressed images may look faded"
476: [10:07:55] <Pyxilik> :<
477: [10:08:01] <Pyxilik> zippy____: uhh... kinda.
478: [10:08:38] <andylockran> zippy____: think that might be part of the problem
479: [10:08:41] <Pyxilik> I used some wipes to clean non affected areas (like forehead) when changing tape last night. Much better, but of course still random itches every now and then
480: [10:09:41] <Pyxilik> also, "zippy____: lasting freshness edition" - what's up with your new persona? and why so relieved about it?
481: [10:09:53] <Pyxilik> [10:07] <zippy____> phew I am glade
482: [10:10:02] <zippy____> :)
483: [10:10:16] <Pyxilik> are you the kind one has to plug into a wall socket?
484: [10:10:21] * zippy____ is now known as zippy_
485: [10:10:39] * Pyxilik is now known as zippah
486: [10:10:50] * micmania1 is now known as zipper
487: [10:11:19] * zipper is now known as Guest3042
488: [10:11:25] <zippah> lawl
489: [10:11:30] * zippah is now known as zippae
490: [10:11:41] * zippae is now known as zippie
491: [10:11:53] * zippy_ is now known as micmania1
492: [10:12:02] * Raymondo has joined #silverstripe
493: [10:12:12] * zippie is now known as zippitydoodah
494: [10:12:20] <zippitydoodah> OMFG THIS NAME IS REGISTERED
495: [10:12:23] <zippitydoodah> xD
496: [10:12:28] <micmania1> lol
497: [10:12:31] <Guest3042> WTF!
498: [10:12:33] * zippitydoodah is now known as zippy_
499: [10:12:34] <Guest3042> lol
500: [10:12:39] * Guest3042 is now known as micmania2
501: [10:12:44] * zippy_ is now known as zippy__
502: [10:12:47] * zippy__ is now known as zippy___
503: [10:12:50] * zippy___ is now known as zippy____
504: [10:12:51] <micmania1> oh yea, I owns this
505: [10:13:04] <zippy____> not until he auths.
506: [10:13:13] <micmania1> zippy____: zippit
507: [10:13:14] * micmania1 is now known as Guest53036
508: [10:13:21] <zippy____> micmania2: /msg nickserv ghost :P
509: [10:13:32] <zippy____> keke
510: [10:13:45] * Guest53036 is now known as zippy__
511: [10:13:45] * zippy____ is now known as Pyrixilisk
512: [10:14:14] * zippy__ is now known as Guest69669
513: [10:14:29] * Pyrixilisk is now known as Pyrvilaxk
514: [10:14:38] * Pyrvilaxk is now known as Py^k
515: [10:14:41] * Guest69669 is now known as zippy___
516: [10:14:51] <Py^k> fine fine. Hat's back.
517: [10:14:59] <micmania2> I don't even know who I am any more
518: [10:15:05] <Py^k> I think a certain testing framework needs more hats.
519: [10:15:08] <Py^k> beAhat.
520: [10:15:11] * zippy___ is now known as Guest58535
521: [10:15:19] * Guest58535 is now known as zippy____
522: [10:15:32] <Py^k> nah zippy, they're all regeistered up until 4x_
523: [10:15:33] <zippy____> keep forgetting my password
524: [10:15:38] * micmania2 quit (Quit: silverstripe)
525: [10:15:39] <Py^k> unless htey're all by you.
526: [10:15:40] <zippy____> yea I have registred them
527: [10:16:02] <zippy____> just can't rmemeber the password, my irc client is supposed to register, but keeps failing
528: [10:16:04] <Py^k> urgh, itch returns :<
529: [10:16:16] <Py^k> zippy____: ha, that's what you get for telling irc client to do it for you.
530: [10:16:26] <Py^k> a load of shit and no memory of password.
531: [10:16:27] <zippy____> should of just gone with hunter2
532: [10:16:41] <Py^k> why?
533: [10:16:46] <zippy____> wont forget that
534: [10:16:56] <Py^k> just go play with your twanger.
535: [10:17:17] * micmania2 has joined #silverstripe
536: [10:17:22] <micmania2> I AM BACK!
537: [10:17:26] <Py^k> keh, here he is
538: [10:17:27] <micmania2> no i'm not :( lol
539: [10:17:31] <Py^k> lawl.
540: [10:17:37] * micmania2 is now known as micmania1
541: [10:17:40] <micmania1> YAY!
542: [10:17:55] <Py^k> micmania1: /msg nickserv help ghost
543: [10:17:56] <micmania1> My IRC client totally screwed up haha
544: [10:18:18] <micmania1> It was telling me I was micmania1 but wouldn't change from micmania2
545: [10:18:24] <Py^k> ha
546: [10:20:12] * cloph_away is now known as cloph
547: [10:20:38] * PapaBearNZ quit (Ping timeout: 245 seconds)
548: [10:25:19] <Py^k> I wonder what happened to that Russian chap that used to drop by for a while.
549: [10:25:28] <Py^k> from Auckland.
550: [10:25:34] <Py^k> He was an interesting bloke.
551: [10:26:03] <ss23> what was his name?
552: [10:26:12] <Py^k> don't remember
553: [10:26:28] <Py^k> something that alluded to the fact he was a Russian Kiwi though.
554: [10:26:30] <Py^k> iirc
555: [10:28:31] <zippy____> so, not Bob then?
556: [10:28:41] <Py^k> no. Super-ru
557: [10:28:42] <Py^k> http://logs.simon.geek.nz/index.php?date=2014-01-30#log_1170325
558: [10:29:13] <Py^k> ah that's right. His name was -ru suffix, but join stamp was .xtra.co.nz
559: [10:29:15] <Py^k> or soemthing
560: [10:30:30] <Py^k> http://logs.simon.geek.nz/index.php?date=2014-01-30#log_1170323
561: [10:30:31] <Py^k> lulz
562: [10:33:01] <Py^k> last seen 11th Feb. I guess maybe he found work not with SS or something.
563: [10:33:39] <Py^k> gawd, sandwich sitting there smelling amazing. Dammit.
564: [10:33:56] <Py^k> micmania1: How should I deal with this? 've already got it wrapped in plastic :<
565: [10:34:37] <micmania1> BURN IT
566: [10:37:31] <zippy____> nom the fuck out of it
567: [10:38:08] <micmania1> I'm just jealous
568: [10:38:17] <micmania1> Might go for KFC
569: [10:38:38] <zippy____> Buger Fuel
570: [10:40:27] <ss23> :O
571: [10:40:30] <ss23> Burger Fuel, yeah!
572: [10:42:30] * Shrike_Finland quit (Quit: Leaving.)
573: [10:42:43] <micmania1> Being able to mute an email thread is the best thing ever.
574: [10:44:20] <micmania1> Py^k: what was that radio thing from yday?
575: [10:46:36] <Py^k> micmania1: Hauraki.co.nz
576: [10:46:59] <micmania1> gracias
577: [10:47:13] <Py^k> Hauraki is a gulf up by Auckland, it's where the pirate radio boat was situated in the stations beginnings.
578: [10:47:58] <Py^k> Turns out it's just large enough to be far enough off shore in all directions to be technically out of NZ (like "The boat that rocked" if you've seen that movie, if not, watch it, it's good)
579: [10:48:25] <Py^k> Although the boat that rocked was set on a boat in the north sea, similar events happened in NZ.
580: [10:49:10] <Py^k> micmania1: there's also therock.net.nz - but it's less SFW and also I couldn't get it to play from here :<
581: [10:49:43] <Py^k> by less sfw I mean the homepage, etc. It's an extremely lad focussed station.
582: [10:50:06] <Py^k> If you get what I mean (somewhere between music and zoo weekly I guess)
583: [10:50:30] <micmania1> The Killers... yeeeeeaaaah
584: [10:50:58] <Py^k> Both stations are part of competing networks, there are other stations if you look to the top I think there's a navigation bar.
585: [10:51:23] <Py^k> But I wouldn't recommend checking anything else out, other stations tend to be teenybopper bullshit doof doof repeat a song 8 times a day kinda shit.
586: [10:51:39] <Py^k> Katy Perry on repeat sorta stuff.
587: [10:53:00] <ss23> lol
588: [10:53:04] <ss23> I prefer The Rock in NZ
589: [10:53:42] <Py^k> ss23: yeah the station is fine, but when the ony option is to listen online... it can be a bit suspect loading up the website in the workplace :<
590: [10:54:16] <ss23> haha
591: [10:54:24] <ss23> Listen to the local music, weirdo!
592: [10:54:24] <ss23> :P
593: [10:54:38] <Py^k> ss23: I am. But micmania1 is moving to NZ.
594: [10:55:00] <Py^k> also, local music... you wouldn't believe how much you don't realise some shit is from NZ.
595: [10:55:18] <Py^k> no I am Giant, no Blindspott, no Luga Boa, etc.
596: [10:55:36] <Py^k> You don't really miss it, but when you hear it again you're just ... *ahh*.
597: [10:55:58] <Py^k> although... on Waitangi day... yeah. I missed NZ music a bit.
598: [10:56:09] <Py^k> I put in a request for some Crowded House, never heard a thing :(
599: [10:56:21] <Py^k> Came home and blasted the Feelers all night xD
600: [10:58:18] <micmania1> urgh! adverts. I don't remember this?
601: [10:58:36] <Py^k> haha there are.
602: [10:58:46] <Py^k> but as it gets deeper into the night there are less and less
603: [10:59:14] <Py^k> or maybe I just notice less and less. I dunno.
604: [10:59:29] <micmania1> there wasn't a single one yesterday
605: [10:59:46] <Py^k> The first time I heard one about fork lifts I had forgotten I was listening to an NZ station.
606: [11:00:11] <Py^k> They were all "in Manuwera" and I was all "wtf there's a Manuwera around here? AND THEY PRONOUNCE IT PROPERLY!?"
607: [11:00:17] <Py^k> hahaa
608: [11:01:31] <micmania1> hehe northern forklists
609: [11:01:37] <micmania1> forklifts*
610: [11:03:10] <Py^k> mmm
611: [11:03:17] * Shrike_Finland has joined #silverstripe
612: [11:03:23] <Py^k> Especially the 'Northern' part threw me off, since we are in the North.
613: [11:07:56] * Shrike_Finland quit (Client Quit)
614: [11:07:59] * opalfroot has joined #silverstripe
615: [11:08:28] <opalfroot> wondering if someone could give me a hand with a routing question?
616: [11:08:42] <Py^k> Wonder less, ask question more!
617: [11:09:02] <opalfroot> ok dokey
618: [11:09:13] <opalfroot> well I have private static $url_handlers = array( 'view/$urlsegment!' => 'view' );
619: [11:09:16] <Py^k> That's how it work :)
620: [11:09:32] <opalfroot> but it wont force the $urlsegment
621: [11:09:52] <Py^k> because there's another rule
622: [11:10:00] <Py^k> succeeding when that one fails.
623: [11:10:14] <opalfroot> oh ok
624: [11:10:47] <Py^k> this one: https://github.com/silverstripe/silverstripe-cms/blob/3.1/_config/routes.yml#L9
625: [11:10:51] <opalfroot> so the ordering of routes within the config.yml would work better for catching the route before
626: [11:11:13] <Py^k> I don't know what you just said :<
627: [11:11:45] <Py^k> long story short, if your method is named view, going page/view will put you on that action.
628: [11:11:55] <Py^k> you don't need that url handler.
629: [11:11:57] <Py^k> at all.
630: [11:12:05] <Py^k> (assuming this is a page, yes?)
631: [11:12:41] <Py^k> if you want it to throw something, just throw the error if $this->request->param('ID') is not set
632: [11:13:11] <Py^k> that's $this->httpError(401) or something
633: [11:13:13] <opalfroot> yea was thinking just manually check for the segment
634: [11:13:39] <Py^k> yeah, manaually check from within method I guess is easiest.
635: [11:14:05] <Py^k> set up a redirect or error or something if the required param is missing.
636: [11:14:17] <Py^k> easy :>
637: [11:14:28] <opalfroot> yup thats cool
638: [11:14:31] <opalfroot> cheers
639: [11:14:41] <Py^k> np
640: [11:19:08] * deschebbs quit (Ping timeout: 240 seconds)
641: [11:21:31] * Colin[pi] quit (Ping timeout: 264 seconds)
642: [11:27:39] * zippy____ quit (Quit: zippy____)
643: [11:30:41] * Shrike_Finland has joined #silverstripe
644: [11:44:40] * Shrike_Finland quit (Quit: Leaving.)
645: [11:56:21] * spronk2 quit (Quit: spronk2)
646: [11:59:39] <micmania1> Py^k: LOL - just got that advert you were on about
647: [12:00:42] * basso_ has joined #silverstripe
648: [12:02:03] <Py^k> micmania1: it's a trap! xD
649: [12:02:19] <Py^k> Everyone knows if you're after hotties you go to Sweden, not NZ.
650: [12:10:19] <Zauberfisch> micmania1: any recommendations on comments?
651: [12:10:26] <Zauberfisch> use the standard silverstripe module?
652: [12:20:49] <Py^k> lol, read that as /or/ comments, was thinking "comments on what?" keke
653: [12:21:23] <Py^k> Suddenly thunder!
654: [12:29:51] <basso_> Hi, how come function does not output something? I have the following code for my homepage: http://pastie.org/8972995 it gets the folder from the files section and it's children en prints them in the template. On another install this worked fine, but now all im seeing on my page is: <img src="/assets/homepage-slideshow/SlideShowImages"
655: [12:31:28] <basso_> I also flushed and rebuild
656: [12:33:52] <Py^k> basso_: it will be returning false.
657: [12:34:31] <Py^k> don't return $list ? $list : false; just return the Folder::get()
658: [12:34:49] <Py^k> ie
659: [12:34:51] <Py^k> $folder = Folder::g...
660: [12:34:52] <basso_> That's also an option
661: [12:34:52] <Py^k> becomes
662: [12:34:57] <Py^k> return Folder::g
663: [12:35:22] <Py^k> but if the list is empty, it will still loop once and output nothing. You need wrapping <% if SlideshowStuff %>
664: [12:35:33] <Py^k> SlideShowImages*
665: [12:40:02] <basso_> Py^k: strangely, this worked before. I still get no output, looks like the query is not returning anything.
666: [12:45:20] <Py^k> basso_: exactly. So the loop executes once. It's not like a PHP foreach.
667: [12:45:37] <Py^k> it goes into the loop, but there's no data.
668: [12:45:49] <Py^k> nothing more to iterate over, so it exists.
669: [12:46:20] <Py^k> thus you get the loop internal html with no template substitution.
670: [12:46:32] <Py^k> or rather with empty variables substitutes.
671: [12:47:12] <Py^k> Interesting to know what version you were using when it worked.
672: [12:47:19] <Py^k> because so far as I can remember it hasn't.
673: [12:47:36] <Py^k> at least with all 3.1 versions, maybe it did in 3.0 but I'm not sure.
674: [12:47:53] <basso_> 3.1.3 when it worked
675: [12:48:01] <Py^k> and now you're using?
676: [12:48:34] <Py^k> because it didn't work in 3.1.1, 3.1.2, and while I'm not calling you a liar, I'm pretty sure it hasn't worked in 3.1.3 either.
677: [12:48:55] <basso_> and this is an upgraded composer package I believe, the orginal codebase was 3.0-dev, but the admin interface looks like 3.1, after seeing a 3.0 admin interface
678: [12:49:05] <Py^k> but I haven't been developing much in 3.1.3, so not sure.
679: [12:49:19] <basso_> Py^k: I got this working 2 days ago in 3.1.3
680: [12:50:03] <Py^k> well for starters SomeClass::get() will ALWAYS return something, so $list ? $list : false will NEVER return false.
681: [12:50:11] <basso_> Got both sides running, but Im continuing work on the older install, since they got a lot of stuff going on and I tried setting it up in 3.1.3, but failed, so now Im doing the opposite.
682: [12:50:15] <Py^k> you're getting an empty list.
683: [12:50:31] <Py^k> you simply need an if.
684: [12:50:48] <basso_> Py^k: it seems im not getting anything back query to begin with
685: [12:50:51] <Py^k> The template is the best place of rit.
686: [12:50:53] <Py^k> for it*
687: [12:51:07] <Py^k> basso_: yes, nothing is returned by the query, so you have an empty list.
688: [12:51:16] <Py^k> This is what causes this to happen.
689: [12:51:28] <Py^k> I'm trying to tell you
690: [12:51:33] <basso_> but the folder exists in the files section, homepage-slideshow
691: [12:51:39] <basso_> yes, i know Py^k
692: [12:51:43] <Py^k> but are there any children?
693: [12:52:00] <basso_> but how to get the query working again
694: [12:52:01] <basso_> yes
695: [12:52:16] <basso_> I have to images in the folder
696: [12:52:18] <basso_> two
697: [12:52:43] * opalfroot quit (Ping timeout: 245 seconds)
698: [12:53:26] <basso_> Is there some simple query I can run to check if everything is set up properly? Something that has to work?
699: [12:54:06] <Py^k> well you could append ->sql() to that line, and then var_dump it instead of continuing. Then run that sql directly in php my admin or something
700: [12:54:23] <Py^k> although you'll need to set phpmyadmin into ANSI mode somehow. Dunno if you can.
701: [12:54:46] <basso_> Why in ANSI mode?
702: [12:57:19] <Py^k> because that's how SQL should be executed.
703: [12:57:40] <Py^k> and how SS builds it's queries. If you dump it you'll see. " instead of `
704: [12:57:51] <Py^k> its*
705: [12:58:09] <basso_> Aaah, yes, the quotes
706: [12:58:27] <Py^k> mysql is just stupid and non sql compliant.
707: [12:58:34] * babak quit (Quit: Connection closed for inactivity)
708: [13:03:48] <micmania1> Zauberfisch: I've only used the official comments module. The blog posts have some defaults in place for it too.
709: [13:04:02] * Shrike_Finland has joined #silverstripe
710: [13:05:03] <basso_> Hmmm. The site runs in dev mode, I don't see anything when var_dumping something
711: [13:13:52] <Py^k> basso_: I might have the wrong method names, you should check api.silverstripe.org
712: [13:13:59] <Py^k> DataList
713: [13:15:29] * Shrike_Finland quit (Quit: Leaving.)
714: [13:15:36] <Zauberfisch> micmania1: ok, thanks
715: [13:15:46] <basso_> Py^k: All this fiddling in the old install. Im having doubts anyway. Trying to get it to work asap, but it's probably worthwhile for me to learn more about GridFields and build it myself anyway. But thanks so far!
716: [13:15:54] <Zauberfisch> micmania1: did you also took any spam prevention measures?
717: [13:16:11] <Py^k> basso_: it's super easy to build a slider.
718: [13:16:32] <Py^k> I've got a module you could just drop in and configure, but unfortunately for you it's not on hand and isn't on the web anywhere
719: [13:17:35] <Py^k> basso_: the simple solution as I say is to <% if %> your template loop. But I can't figure out why it's your ORM get isn't returning anything sorry.
720: [13:18:09] <basso_> Py^k: the slider works in 3.1.3 :-) Now I have to find a convenient way to create a menu, with starters, main and deserts and output all that in one webpage.
721: [13:18:11] <Py^k> I'd suggest applying each call individually and testing the querys generated at each step (ie. at get(), at first(), at children())
722: [13:18:31] <Py^k> basso_: define 'starters, mains, desserts'
723: [13:18:33] <Py^k> ?
724: [13:18:33] <micmania1> Zauberfisch: nope
725: [13:18:48] <basso_> basso_: the courses for a menu
726: [13:19:00] <basso_> nm :)
727: [13:19:21] <basso_> Py^k:
728: [13:28:07] * Shrike_Finland has joined #silverstripe
729: [13:30:25] * catcher has joined #silverstripe
730: [13:33:48] <Py^k> basso_: private static $has_many = ['Starters' => 'MenuItem', 'Mains' => 'MenuItem', 'Desserts' => 'MenuItem']; public function getCMSFields() { $fields = parent::getCMSFields(); foreach(array('Starters', 'Mains', 'Desserts') as $course) { $fields->addFieldToTab('Root.Main', Tab::create($course)); $fields->addFieldToTab('Root.Main.'.$course, GridField::create($course, $course, $this->$course(), GridFieldConfig_RelationEditor::creat
731: [13:33:59] * Shrike_Finland quit (Quit: Leaving.)
732: [13:34:55] * Shrike_Finland has joined #silverstripe
733: [13:35:09] <Py^k> Just typed that out, may not be 100% correct.
734: [13:35:55] <basso_> Py^k: ;-)
735: [13:36:32] <basso_> I was already reading, but thanks for the begining
736: [13:42:51] * Shrike_Finland quit (Quit: Leaving.)
737: [13:43:50] * Shrike_Finland has joined #silverstripe
738: [13:52:39] * Shrike_Finland quit (Quit: Leaving.)
739: [13:56:37] * Shrike_Finland has joined #silverstripe
740: [14:05:56] <Py^k> So turns out carrot juice is quite sweet. Who would have thought it?
741: [14:07:28] * oceanmountain has joined #silverstripe
742: [14:07:34] * muskie9 has joined #silverstripe
743: [14:09:12] * ocm quit (Read error: Operation timed out)
744: [14:09:12] * oceanmountain is now known as ocm
745: [14:25:24] * Shrike_Finland quit (Quit: Leaving.)
746: [14:28:24] * basso_ quit (Quit: basso_)
747: [14:33:45] <catcher> Py^k, you've eaten carrots before, haven't you?
748: [14:33:58] <Py^k> catcher: yes, but never thought of them as either sweet nor juice.
749: [14:35:57] <catcher> My wife is into making smoothies, crazy how things can taste different when liquified
750: [14:36:04] <Py^k> yeh
751: [14:36:14] <Py^k> I like smoothies too, but have never done things with carrot.
752: [14:36:23] <Py^k> missus has made juice like that before though.
753: [14:36:35] <Py^k> I've tried it, but also didn't really think of it as sweet.
754: [14:36:52] <Py^k> Mind you, this stuff is from concentrate, so who knows. Maybe that has something to do with it.
755: [14:37:29] <Py^k> oh, hmm. And reading ingredients list, has more sugar than carrot juice :<
756: [14:37:32] <Py^k> fuck.
757: [14:37:41] <Py^k> I thought I was drinking pure juice.
758: [14:37:44] <Py^k> LIES
759: [14:37:50] <Py^k> damn supermarket lies.
760: [14:39:39] * babak has joined #silverstripe
761: [14:49:48] <kinglozzer> ... client is insisting that any email attachments from the site are sent in a password protected zip
762: [14:50:11] <Py^k> rofl. dat security...
763: [14:50:19] <kinglozzer> It takes what, like less than a second for alphanumeric passwords to be bruteforced?
764: [14:50:41] <Py^k> depends on the complexity
765: [14:51:02] <kinglozzer> I can guarantee it won't be a complex one :P
766: [14:51:58] <kinglozzer> Also received an email earlier from client asking for more, I quote: "sparkle and oomph"
767: [14:52:11] <catcher> haha, more sugar than juice
768: [14:52:12] <Py^k> lemme guess, always the same password too?
769: [14:52:25] <kinglozzer> Py^k: Yep.
770: [14:52:36] <kinglozzer> Monthly data exports, will always have the same password
771: [14:53:04] <Py^k> oh, well if it's a batch action that's just too easy.
772: [14:53:28] <Py^k> catcher: well, it's orange and carrot, but yeh.
773: [14:53:31] <Py^k> pretty shithouse.
774: [14:53:54] <Py^k> I like the juices that are not from concentrate and no added sugar. Fruit is f'n sweet enough you silly people!
775: [14:53:57] <catcher> I used to think oatmeal cream pies were healthy, 'cause oatmeal
776: [14:54:03] <Py^k> haha
777: [14:54:05] <Py^k> and cream.
778: [14:54:11] <catcher> right!
779: [14:54:24] <Py^k> cream being basically liquid fat... -.-
780: [14:54:37] <micmania1> kinglozzer: why send attachments then? Why not just send a link to a password protected area?
781: [14:54:47] <catcher> Not to mention the oatmeal patty being mostly butter
782: [14:54:51] <Py^k> micmania1: shit, don't be silly son!
783: [14:55:00] <Py^k> that would require EFFORT on their part!
784: [14:55:12] <Py^k> on /their/ part
785: [14:55:13] <Py^k> !
786: [14:55:19] <Py^k> sif that'll ever happen.
787: [14:55:39] <Py^k> monthly data emails will probably go in the email trash as it is.
788: [14:56:49] <Py^k> catcher: ha, sounds like a flapjack.
789: [14:57:12] <Py^k> oats! And about a metric dickload of golden syrup.
790: [14:57:31] <Py^k> and mebbe kremelta if you're going for the real quality upset your stomach kind.
791: [14:58:04] <kinglozzer> micmania1: Because no CMS, for security...
792: [14:58:06] <kinglozzer> Yeah...
793: [14:58:26] <micmania1> you what?!
794: [14:58:37] <kinglozzer> I know :P
795: [14:58:51] <Zauberfisch> sounds like you are having a good time kinglozzer :D
796: [14:58:54] <kinglozzer> Indeed
797: [14:59:06] <Py^k> kinglozzer: this sounds amazing
798: [14:59:16] <Py^k> NO ONE CAN SEE MY DATA, NOT EVEN ME!
799: [14:59:27] <micmania1> not as bad as this one client we have...
800: [14:59:32] <catcher> corn syrup for everyone!
801: [14:59:37] <kinglozzer> The client who asked for more sparkle and oomph has sent over about 5 pages full of text with the guide "Some of this text might be useful on the home, about, contact or services pages"
802: [14:59:42] <Py^k> kinglozzer: I be they're too cheap to fork out for an SSL cert, just for complete irony.
803: [14:59:43] <micmania1> wanted us to obtain their competitors IP addresses and block them from visiting his site...
804: [14:59:53] <kinglozzer> So basically, some of this text might go somewhere - go figure
805: [14:59:57] <catcher> kinglozzer, tell them you might put it there
806: [15:00:05] <Py^k> kinglozzer: just copy paste the whole lot onto each of those pages.
807: [15:00:18] <kinglozzer> I'm just emailing it back :P
808: [15:00:23] <catcher> kinglozzer, and send them this for sparkle: http://www.thinkgeek.com/product/e5a7/
809: [15:00:23] <Py^k> oh, and put a picture of a rugby player in a sparkly tutu.
810: [15:00:48] <Py^k> gawd, you open that and nyan cat pops out, I can see it now.
811: [15:01:48] * headtrip has joined #silverstripe
812: [15:03:54] <Py^k> or just reply with "I've forwarded your enquiry to the designers"
813: [15:03:57] <Py^k> kinglozzer: ^
814: [15:06:10] <kinglozzer> Nah I'm just sending them CMS login info so they can do it instead :P
815: [15:06:21] <headtrip> hey guys
816: [15:06:40] <Py^k> hi
817: [15:06:43] <headtrip> any idea why the localdate module does not work with the archive widget of the blog?
818: [15:06:52] <Py^k> localdate module?
819: [15:07:06] <headtrip> https://github.com/richardsjoqvist/silverstripe-localdate
820: [15:07:17] <Py^k> probably because it's from richardsjoqvist
821: [15:07:22] <headtrip> :D
822: [15:07:40] <Py^k> and he's never used it with the blog, or something.
823: [15:08:14] <headtrip> so how to translate my month names in the archive widget?
824: [15:09:02] <Py^k> well they have to be using SS_Datetime
825: [15:09:23] <headtrip> but they are using date
826: [15:12:17] <Py^k> I guess DBField::create_field() doesn't leverate injector like it should or something
827: [15:12:54] <micmania1> yep, it does.
828: [15:13:02] <Py^k> Should work then.
829: [15:13:06] * Py^k shrugs
830: [15:13:40] <headtrip> replaced the code with a SS_Datetime alternative
831: [15:13:43] <headtrip> still doesnt work
832: [15:14:44] <headtrip> http://pastebin.com/fTXZQX0V (does not work)
833: [15:15:30] <Py^k> yeah well of course that won't
834: [15:15:36] <headtrip> could it be something with the order the modules are loaded?
835: [15:15:43] <Py^k> $date = new SS_Datetime("Date");
836: [15:15:45] <Py^k> ^ wrong.
837: [15:15:46] <headtrip> 1. Blog 2. Localdate 3. Widgets
838: [15:16:00] <Py^k> $date = SS_Datetime::create('Date')
839: [15:16:15] <Py^k> even worse, it's a DBField, so that's wrong too.
840: [15:16:30] <Py^k> $date = DBField::create_field('SS_Datetime')
841: [15:16:40] <headtrip> Py^k , your solution works
842: [15:16:42] <headtrip> thanks
843: [15:16:58] <Py^k> if you don't ::create, you can't have injections.
844: [15:17:07] <headtrip> ah yes i see
845: [15:17:11] <Py^k> new Blah is hard and fast.
846: [15:17:24] <Py^k> it's PHP level, no room for wriggling in and changing stuff.
847: [15:17:55] <Py^k> https://github.com/silverstripe/silverstripe-blog/blob/master/code/widgets/ArchiveWidget.php#L95
848: [15:18:00] <Py^k> this should have worked though, I think.
849: [15:18:15] <Py^k> but if changing 'Date' to 'SS_Datetime' works, then so be it :)
850: [15:18:55] <headtrip> no this does not work
851: [15:19:28] <headtrip> http://pastebin.com/rZaShzm0
852: [15:19:35] <headtrip> this is the solution
853: [15:20:26] <headtrip> thank you so much man, mmd
854: [15:21:02] <Py^k> I'm confused, I can't see where that code snippit is from.
855: [15:21:10] <Py^k> But if it works, it works. wd :)
856: [15:22:27] <headtrip> your solution, will you make pull request?
857: [15:22:58] <headtrip> it is: https://github.com/silverstripe/silverstripe-blog/blob/master/code/widgets/ArchiveWidget.php#L95
858: [15:23:12] <headtrip> replacing 95 to 99
859: [15:26:44] * deschebbs has joined #silverstripe
860: [15:28:54] <Zauberfisch> how can a tabset have a title?
861: [15:29:10] <micmania1> Zauberfisch: setTitle() ?
862: [15:29:23] <Zauberfisch> sorry. missleading question
863: [15:29:47] <Zauberfisch> why has tabset a title? how does that make any sense?
864: [15:30:09] <Py^k> headtrip: the code that's there should work.
865: [15:30:09] <Py^k> http://api.silverstripe.org/3.1/source-class-Date.html#32
866: [15:30:15] <Zauberfisch> the tabset.ss file makes no use of it. yet the constructor of the tabset checks for a title
867: [15:30:43] <Py^k> headtrip: at a guess I'd say that either month or year are null at some point.
868: [15:30:46] <Py^k> for whatever reason.
869: [15:30:51] <micmania1> Zauberfisch: ah, I get you. Not really sure - maybe something in the past?
870: [15:31:05] <micmania1> I've seen a few instances of things like that
871: [15:31:45] <Py^k> Zauberfisch: it's a FormField. FormField's have titles, no?
872: [15:32:05] <Py^k> A tabset's title is used ... no wait that's name.
873: [15:32:15] <Py^k> Zauberfisch: Tabsets have titles when they're nested IIRC
874: [15:32:18] <Zauberfisch> yes, but those that don't use a title usually don't expect one in the contstructor
875: [15:32:18] <micmania1> Tabset would never use a title. Only tabs would.
876: [15:32:40] <Zauberfisch> exactly, only tabs have titles, not tabsets
877: [15:32:56] <Py^k> eg going back a few years, Root.Content.Slides.Left, etc.
878: [15:33:13] <Py^k> micmania1: tabsets render as tabs when they've more tabsets in them.
879: [15:33:22] <Py^k> you can nest them.
880: [15:33:32] <Zauberfisch> Py^k: I don't think so
881: [15:33:37] <Py^k> You can't put tabs in a tab, so you have to tabset.
882: [15:33:54] <Py^k> Zauberfisch: well it used to. Perhaps that's why.
883: [15:34:02] <Py^k> if it's not like that anymore.
884: [15:34:05] * Py^k shrugs
885: [15:34:10] <Zauberfisch> I think it used to be:
886: [15:34:16] <Zauberfisch> Root - TabSet
887: [15:34:29] <Zauberfisch> Root.Content - A Tab containing nothing but a TabSet
888: [15:34:40] <Zauberfisch> Root.Content.Main - A Tab containing fields
889: [15:34:46] <Py^k> nah, I tried stuff like that when building my own tabs.
890: [15:34:51] <Zauberfisch> Root.Content.Slides - A tab containing a Tabset
891: [15:34:58] <Py^k> about 60% sure they rendered a tab.
892: [15:35:02] <Zauberfisch> Root.Content.Slides.Left - A tab containing fields
893: [15:35:06] <Zauberfisch> Root.Content.Slides.Right - A tab containing fields
894: [15:35:11] <Py^k> then again, hmm... yeah not sure.
895: [15:35:14] * Py^k shrugs
896: [15:35:45] * wmk has joined #silverstripe
897: [15:36:01] <Py^k> back to the age old "try it and see" I guess"
898: [15:36:49] <Zauberfisch> thats so weird
899: [15:37:01] <Zauberfisch> ss 2.2 did not take a title
900: [15:37:15] <Zauberfisch> and then ss2.3 comes a long and takes a title, with a comment "legacy handling"
901: [15:37:18] <Zauberfisch> dafuq?
902: [15:38:43] <Py^k> idk
903: [15:38:56] <Py^k> blame!
904: [15:52:18] * headtrip quit (Ping timeout: 245 seconds)
905: [16:22:32] <Py^k> Zauberfisch: by legacy it could be meaning something crazy like v1
906: [16:22:33] <Py^k> :<
907: [16:22:55] * mojo5000 has joined #silverstripe
908: [16:23:04] <Py^k> who knows. You'd have to git blame, hope that the info has pulled through from svn, and then ask that person.
909: [16:23:21] <Py^k> or someone who worked with them at that time.
910: [16:24:27] <micmania1> I've never done a git blame before? What does it actually do?
911: [16:24:28] * ARNHOE quit (Read error: Connection reset by peer)
912: [16:24:41] * ARNHOE has joined #silverstripe
913: [16:29:09] * ARNHOE quit (Client Quit)
914: [16:30:52] <Zauberfisch> Py^k: unlikely, because it was never in ss21 or ss22
915: [16:31:18] <Zauberfisch> introducing backwards compatibility in ss23 for something that was broken in ss21 and ss22 sounds invalid
916: [16:40:29] * deschebbs quit (Quit: User terminated!)
917: [16:42:30] <Py^k> Zauberfisch: mmm. It is odd. It's one of those things that was never really nailed down I guess, such as when one needs to reference a full field path (tabset.tab.fieldname) vs when just fieldname will work.
918: [16:42:36] <Py^k> things like that confuse me.
919: [16:42:46] <Py^k> and they really should be banged into consistencey.
920: [16:42:54] <Py^k> for great justice!
921: [16:48:43] <Zauberfisch> yeah
922: [16:49:09] <Zauberfisch> its on my todo list ^^
923: [16:49:18] <Py^k> haha
924: [16:49:25] <Zauberfisch> just next to a thousand other things like it
925: [16:49:32] <Py^k> mine too, along with those gridfield improvements, etc.
926: [16:49:38] <wmk> Zauberfisch.TodoList.length()
927: [16:49:42] <Py^k> yeah, same old story :P
928: [16:49:56] <Py^k> wmk: >9000
929: [16:49:57] <Zauberfisch> Py^k: haha, yeah. that one I wanted to start a year ago ^^
930: [16:50:09] <Py^k> Zauberfisch: same one I wanted to help you with.
931: [16:50:13] <Zauberfisch> haha. over nine thousand
932: [16:50:15] <Py^k> over a year ago now :<
933: [16:50:19] <Zauberfisch> !
934: [16:50:24] <Zauberfisch> its all your fault
935: [16:50:27] <Py^k> mmm, probably.
936: [16:50:27] <Zauberfisch> I was just waiting for you
937: [16:50:28] <wmk> we need more ram for this list
938: [16:50:33] <Py^k> I should have been more motivated :/
939: [16:50:55] <Zauberfisch> anyway, got to go. dinner time
940: [16:51:00] <Py^k> nom nom
941: [16:51:02] <Py^k> gg, cu
942: [16:51:05] <Zauberfisch> cya
943: [16:51:07] <wmk> cu
944: [16:51:22] <wmk> oh, it's really time to go
945: [17:01:40] * kinglozzer quit (Quit: <3)
946: [17:04:42] <Py^k> ciao
947: [17:04:46] * Py^k quit ()
948: [17:11:40] * basso_ has joined #silverstripe
949: [17:38:34] * babak quit (Quit: Connection closed for inactivity)
950: [18:07:57] * gelignite has joined #silverstripe
951: [19:09:00] * zippy___ has joined #silverstripe
952: [19:09:01] * danfo quit (Quit: danfo)
953: [19:09:37] <zippy___> morning
954: [19:10:40] <Stomach> howdy
955: [19:14:09] * danfo has joined #silverstripe
956: [19:16:47] <zippy___> danfo !
957: [19:21:24] * oddnoc has joined #silverstripe
958: [19:26:27] * pippy has joined #silverstripe
959: [19:28:39] * kinglozzer has joined #silverstripe
960: [19:29:40] * pippy_ quit (Ping timeout: 265 seconds)
961: [19:32:30] * mojo5000 quit ()
962: [19:32:50] * Raymondo is now known as kerosene
963: [19:33:34] * kinglozzer quit (Remote host closed the connection)
964: [19:36:25] * kinglozzer has joined #silverstripe
965: [19:38:29] * an_Eskimo has joined #silverstripe
966: [19:39:20] * gelignite quit (Quit: http://bit.ly/nkczDT)
967: [19:40:35] <Zauberfisch> kinglozzer: keep on pushing for that pull request
968: [19:40:52] <Zauberfisch> your code is ready to merge, isn't it?
969: [19:46:27] <catcher> Is there a clever way to update all objects of a class with a val at once?
970: [19:46:42] <catcher> all db records, more accurately
971: [19:47:26] <an_Eskimo> catcher: specific to one table? who the whole db?
972: [19:47:39] <catcher> one table
973: [19:47:43] <catcher> Using the ORM, not raw
974: [19:50:07] <an_Eskimo> catcher: I have small script that rewrites (without losing any data) all objects if how you want to update is by rewriting. It can probably be tweaked to write to a specific row in that table.
975: [19:50:27] <muskie9> catcher, BuildTasks
976: [19:50:42] <catcher> needs to be in onbeforewrite
977: [19:50:46] * babak has joined #silverstripe
978: [19:51:00] <catcher> easy enough to each() with a callback, not a big deal if not. Looking for a reverse column() type thing.
979: [19:51:26] <kinglozzer> Zauberfisch: Nearly ready yeah. I'd like to do some more testing on a few sites we've got in development just to be sure, but I've not encountered any issues yet
980: [19:53:04] <simon_w> catcher, no
981: [19:53:51] * UncleCheese has joined #silverstripe
982: [20:19:00] <Stomach> is there a way to do an intersect on a datalist?
983: [20:19:16] <Stomach> or ArrayList
984: [20:22:17] <Stomach> ah I can just filter by the smaller set's ID's
985: [20:24:34] <zippy___> simon_w: 20 mins? Make sure to drop link in
986: [20:25:05] <simon_w> zippy___, coding.simon.geek.nz
987: [20:25:08] <simon_w> Will be the top post
988: [20:29:48] * an_Eskimo quit (Ping timeout: 245 seconds)
989: [20:33:33] * an_Eskimo has joined #silverstripe
990: [20:35:53] <Zauberfisch> kinglozzer: I see
991: [20:36:25] <Zauberfisch> kinglozzer: I don't want to be anoying, but I really would like to see it merged asap
992: [20:36:36] <Zauberfisch> in my opinion this is the single most important fix of this year
993: [20:42:40] * danfo quit (Quit: danfo)
994: [20:43:20] <terryapodaca> Does anyone know what 'slider/tray' Hulu uses in it's content area (not the big home page slider)?
995: [20:43:28] <kinglozzer> Zauberfisch: No problem :) yeah large images have crashed a few sites lately for us. You can educate the client, but if they ask someone else to make a change for them for example they can knock part of the website out until we fix it for them
996: [20:43:56] <Zauberfisch> kinglozzer: same here, more and more clients crash their website
997: [20:44:20] <terryapodaca> it's the sliders below that, with big arrows, that slider the content (recommendations, etc) left and right.
998: [20:44:24] <Zauberfisch> and the worst part, even if I educate them, all it takes is 1 accidently uploaded image that is to large, and all is broken
999: [20:45:53] <simon_w> Use Imagik
1000: [20:45:54] <kinglozzer> Yep, it can be a real pain!
1001: [20:46:03] <zippy___> simon_w: :)
1002: [20:46:23] <Zauberfisch> kinglozzer: the problem is that I often work with my own fork of framework, so cloing your fork isn't an option either
1003: [20:46:30] <Zauberfisch> simon_w: tried it
1004: [20:46:37] <Zauberfisch> simon_w: thought about shooting myself
1005: [20:46:40] <Zauberfisch> went back to GD
1006: [20:47:04] <Zauberfisch> the silverstripe backend for imagik is not just buggy, its completely broken.
1007: [20:47:15] <Zauberfisch> even contains fatal syntax errors
1008: [20:47:37] <zippy___> simon_w: nice, I like that one :) http://coding.simon.geek.nz/2014/03/28/silverstripe-xss-in-redirection-url/
1009: [20:47:38] <wmk> Zauberfisch, what PR are you talking about? sounds interesing
1010: [20:48:00] <Zauberfisch> wmk: https://github.com/silverstripe/silverstripe-framework/pull/2753/
1011: [20:48:04] <Zauberfisch> ah,w rong one
1012: [20:48:05] <Zauberfisch> wait
1013: [20:48:14] <Zauberfisch> https://github.com/silverstripe/silverstripe-framework/pull/2859
1014: [20:49:52] <wmk> years ago (before silverstripe) i used a java applet to resize the images in the browser
1015: [20:50:19] <simon_w> zippy___, did you check out the blinking lights too? :D
1016: [20:50:22] <wmk> fortunately my customers don't have hires cameras ;)
1017: [20:50:32] <zippy___> simon_w: I did actually, was thinking, why you no use pi!!
1018: [20:50:53] <zippy___> but i supose the arduino is cheaper
1019: [20:52:11] * danfo has joined #silverstripe
1020: [20:54:55] <wmk> Zauberfisch, are there any modern ways to resize the image in browser?
1021: [20:56:33] <zippy___> wmk: you seen this btw? http://www.silverstripe.org/focuspoint-smarter-image-cropping-for-silverstripe/
1022: [20:56:46] <wmk> zippy___, yeah. cool stuff
1023: [20:56:52] <wmk> love it
1024: [20:57:17] <wmk> added focuspoint to my default modules
1025: [20:57:31] <kinglozzer> wmk: The trouble is you can't always offload it to the browser - on upload you can, but you don't know the target size for templates so some resampling will always have to be done server-side
1026: [20:57:47] <wmk> kinglozzer, yes
1027: [20:58:04] <wmk> i tend to upload images in 1600 width / height which is more than enough for my layouts
1028: [20:58:29] <wmk> and is small enough for the server / gd
1029: [20:59:32] <kinglozzer> wmk: That's what we tell clients to do (we usually say no larger than 1000px is ever needed), but sometimes they "forget" :P
1030: [20:59:53] <wmk> i know...
1031: [21:00:16] <wmk> but for theese a browser resize would be another part of the big image solution
1032: [21:00:28] <zippy___> with the gridfield, is it possible to specify different export colum,ns? Or is that only on the model admin?
1033: [21:00:37] <wmk> a drop in for ImageField would be cool...
1034: [21:00:51] <zippy___> nm, read docs
1035: [21:01:06] <kinglozzer> wmk: Possibly yeah, I looked at creating a module for it once but it's surprisingly difficult to implement :(
1036: [21:02:15] <Zauberfisch> simon_w: wmk well, yes, setting height or width on an <img> actually works well now
1037: [21:02:21] <Zauberfisch> sorry simon_w
1038: [21:02:36] <Zauberfisch> wmk: also, background-size works pretty well too
1039: [21:02:43] * an_Eskimo quit (Ping timeout: 245 seconds)
1040: [21:02:52] <wmk> Zauberfisch, in image upload??? there is actually a resize?
1041: [21:03:01] <kinglozzer> Zauberfisch: I think he meant a library to do it on upload
1042: [21:03:07] <Zauberfisch> oh wait, you mean actual image resize to change the file?
1043: [21:03:12] <kinglozzer> Yeah
1044: [21:03:15] <wmk> yes.
1045: [21:03:20] <Zauberfisch> ah, thats a different thing
1046: [21:03:28] <kinglozzer> There's a free service that I tried to implement, but gave up on
1047: [21:03:29] <wmk> so the browser resizes the img before upload
1048: [21:03:32] <kinglozzer> Can't remember what it's called
1049: [21:03:34] <Zauberfisch> well, yes its possible, but only in modern browsers
1050: [21:03:38] <Zauberfisch> not IE 9
1051: [21:03:41] <Zauberfisch> not sure about IE 10
1052: [21:03:51] <wmk> of course.
1053: [21:03:57] <Zauberfisch> its the way that the preview is created (the preview image you see before you upload the image)
1054: [21:03:58] <wmk> html5 and/or flash fallback
1055: [21:04:03] <Zauberfisch> thats done in js
1056: [21:04:07] <wmk> ah
1057: [21:04:12] <Zauberfisch> and in IE it just displays a generic thumbnail
1058: [21:04:28] <Zauberfisch> and waits for the upload to finish and then get a resized thumgnail from the server
1059: [21:06:55] * an_Eskimo has joined #silverstripe
1060: [21:09:34] * kinglozzer quit ()
1061: [21:11:03] * an_Eskimo quit (Ping timeout: 245 seconds)
1062: [21:14:07] <zippy___> I have an object with a has_many relation. When my object is deleted I want to clean up the has_many items so nothing left over. So in my onBeforeDelete, would I call $this->OtherObjects()->remove(); ?
1063: [21:14:37] <zippy___> delete() not remove() but the question still stands
1064: [21:14:37] <Zauberfisch> remove is dangerous because its inconsitently implemented
1065: [21:14:55] <wmk> Zauberfisch, FileUpload already uses some blueimp file uploade js.
1066: [21:14:58] <Zauberfisch> remove() on a datalist and has_many list deletes, but on a many_many list it only removes the relation
1067: [21:15:05] <wmk> https://github.com/blueimp/jQuery-File-Upload/wiki/Client-side-Image-Resizing would be a possibility
1068: [21:15:17] <simon_w> Zauberfisch, uh, no
1069: [21:15:25] <simon_w> On a RelationList it removes the relation
1070: [21:15:26] <Zauberfisch> simon_w: no?
1071: [21:16:00] <simon_w> zippy___, you'll need to loop over the list and call $item->delete();
1072: [21:16:16] <Zauberfisch> simon_w: ah, you are right, it does a remove on has_many list as well
1073: [21:16:37] <Zauberfisch> anyway, my point is: foreach ->delete()
1074: [21:16:56] <Zauberfisch> wmk: it already does use the image resize lib of blueimp
1075: [21:16:59] <zippy___> i see
1076: [21:17:16] * r3v3rb has joined #silverstripe
1077: [21:17:23] <Zauberfisch> wmk: the majority of the javascript in uploadfield is from blueimp
1078: [21:17:44] <wmk> Zauberfisch, so it could be possible to upload a smaller image? at least in modern(tm) browsers?
1079: [21:17:44] <SMaction> I have taken over a 2.4.5 Silverstripe site. One Page has a Youtube player on it. Here are the youtube pages http://pastebin.com/kB5ZVYFX and http://pastebin.com/Ec5hTNT5 . The page has worked fine for quite a while. However, now we have changed the site so all pages are https://. Now the player only works when you allow insecure content. I have tried changing http to https in this
1080: [21:17:44] <SMaction> file http://pastebin.com/sSQHvbLw , to no avail. I have run out of ideas and I am handicapped by the fact that the site was created by someone with a lot more SS knowledge than me.
1081: [21:18:57] <Zauberfisch> SMaction: check your console which files still use http
1082: [21:19:49] <Zauberfisch> perhaps you have some javascript included from a CDN which still uses http
1083: [21:19:58] <r3v3rb> hi all
1084: [21:20:07] <zippy___> ah shit
1085: [21:20:20] <r3v3rb> zippy___: what did i do
1086: [21:20:38] <Zauberfisch> SMaction: perhaps the swfobject lib is included from the google cdn
1087: [21:20:39] <Zauberfisch> http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js
1088: [21:20:40] <zippy___> it was actually a many_many, and looping over and doing $item->delete(); blew away the other object. nuts, I do just want to remove the relation on the many_many. hahahahaaha
1089: [21:21:04] <zippy___> just didn't think about that hard enough
1090: [21:21:14] <Zauberfisch> then $list->RemoveAll() should do the trick
1091: [21:21:29] <Zauberfisch> as long as its always a ManyMany list
1092: [21:21:53] <Zauberfisch> (because as pointed out, remove will delete on normal lists)
1093: [21:22:32] <zippy___> thanks :)
1094: [21:22:45] <Zauberfisch> simon_w: would you perhaps be so kind to merge https://github.com/silverstripe/silverstripe-framework/pull/2991
1095: [21:23:07] <Zauberfisch> it fixes the if has_one bug
1096: [21:26:19] * wmk quit (Quit: nice to meet you ;))
1097: [21:47:46] <zippy___> soo.. when using composer it seems to checkout the whole git repo of the module to the module folder… as sets it up like a module or something, but doesn't map it?
1098: [21:47:48] <zippy___> No submodule mapping found in .gitmodules for path 'betterbuttons'
1099: [21:48:08] <zippy___> I am trying to commit this betterbuttons module which I installed via composer, but it wont let me add it to git as it THINKS it's a submdoule
1100: [21:48:34] <zippy___> yes it needs to be in git as the designs and whatever can't use composer, it will blow their minds. I also can't run git on the server. argh wtfs
1101: [21:48:37] <simon_w> zippy___, delete the .git folder from better buttons?
1102: [21:48:44] <zippy___> did that, no dice
1103: [21:50:49] <simon_w> Stop using composer, so you don't have to deal with the things it thinks you want done? :p
1104: [21:51:45] <zippy___> removed the git folders, moved the two modules outside of the project and then "removed" them from git (which removed the submodule reference) then moved the folders back in and commit as usual
1105: [21:51:47] <zippy___> ball ache
1106: [21:52:20] <Zauberfisch> zippy___: composer is not designed to use git submodules
1107: [21:52:48] <Zauberfisch> zippy___: best practice with composer is to add the module folders to the .gitignore file
1108: [21:53:11] <zippy___> I wonder what was going on then, wonder why it pulled in the .git folder of the module I wanted
1109: [21:53:18] <Zauberfisch> zippy___: see https://github.com/Zauberfisch/silverstripe-boilerplate/blob/master/composer.json and https://github.com/Zauberfisch/silverstripe-boilerplate/blob/master/.gitignore as an example
1110: [21:53:24] <simon_w> Because composer
1111: [21:53:31] <Zauberfisch> I actually like that
1112: [21:53:41] <simon_w> Zauberfisch, did you read what he said? :p
1113: [21:54:02] <Zauberfisch> yes
1114: [21:54:08] <Zauberfisch> and I am making a point here
1115: [21:54:14] <simon_w> "yes it needs to be in git"
1116: [21:54:17] <Zauberfisch> not to commit a module in the first place
1117: [21:54:32] <Zauberfisch> ah, missed that part
1118: [21:54:45] <Zauberfisch> will withdraw my statement then
1119: [21:55:30] <Zauberfisch> zippy___: then use "composer update --prefer-dist"
1120: [21:55:51] <Zauberfisch> zippy___: then it will download the packages as zip if possible
1121: [21:55:59] <Zauberfisch> this way you will not have .git folders
1122: [21:56:03] <SMaction> Zauberfisch: Thanks I found the insecure code from Google and just replaced it with https
1123: [21:56:06] <zippy___> ahh!! I didn't do that with this project, I did with the other one
1124: [21:56:12] <zippy___> Thakns
1125: [21:56:30] <Zauberfisch> simon_w: so you are not using composer?
1126: [21:56:41] <simon_w> Zauberfisch, correct
1127: [21:56:52] <Zauberfisch> whats the alternative?
1128: [21:57:06] <simon_w> Doing things manually
1129: [21:57:25] <Zauberfisch> doesn't sound like a fun alternative
1130: [21:57:26] <simon_w> So much less headache
1131: [21:57:44] <simon_w> Compared to fighting composer, it is
1132: [21:57:58] <Zauberfisch> composer can be anoying at times. but I still prefer it over hand management
1133: [21:58:31] <simon_w> At times? I ran a composer require to install a module. It then reinstalled everything.
1134: [21:58:51] <simon_w> If it's a third party module, you have to remember to --no-update then update --no-dev
1135: [21:59:27] <simon_w> self.version (which is more a SilverStripe problem) breaks as soon as you delete the .git folder from the create-project
1136: [22:00:41] * an_Eskimo has joined #silverstripe
1137: [22:04:27] <oddnoc> simon_w: are you using keep-vcs on create-project?
1138: [22:04:57] * k_fish has joined #silverstripe
1139: [22:05:12] <Zauberfisch> simon_w: I am aware of the problems, but I guess I have just adopted a workflow that goes around them
1140: [22:05:31] <Zauberfisch> well, except --no-update and --no-dev
1141: [22:05:40] <simon_w> Zauberfisch, having to change my workflow means it's a broken tool
1142: [22:06:10] <Zauberfisch> valid point. but sometimes a broken tool is better than none
1143: [22:06:37] <oddnoc> It’s better than piston :)
1144: [22:07:49] <Zauberfisch> simon_w: and it could be worse. those workflow issues asside, I am actually happy with composer
1145: [22:08:23] <Zauberfisch> anyway. simon_w, did you got my message regarding pull request #2991?
1146: [22:11:00] * Pyromanik has joined #silverstripe
1147: [22:11:52] <Pyromanik> How is everyone?
1148: [22:11:59] <Pyromanik> Friday yes please.
1149: [22:13:30] <catcher> I'll take one too.
1150: [22:15:12] <spronk> would you like fries with that?
1151: [22:15:25] <Pyromanik> Fish and Chip Friday
1152: [22:15:42] <Pyromanik> Chips even. Plural!
1153: [22:15:50] <spronk> RICH BITCH
1154: [22:15:58] * spronk can only afford chip.
1155: [22:16:02] <Zauberfisch> Pyromanik: fish are friends, not food!
1156: [22:19:18] * catcher quit (Quit: Leaving)
1157: [22:24:38] <Pyromanik> spronk, I've learnt that the secret is actually: Regualr fish, small chips.
1158: [22:29:17] <zippy___> well aparently… [28-4-2014 23:01:16] <ss23> zippy____: The release is ready to go ^.^
1159: [22:29:31] * zippy___ taps fingers on desk waiting for 3.1.4
1160: [22:30:38] <simon_w> ss23, both my disclosures got out first!
1161: [22:37:31] * Colin[pi] has joined #silverstripe
1162: [22:37:56] <Colin[pi]> morning!
1163: [22:39:08] <simon_w> Afternoon!
1164: [22:40:29] <Colin[pi]> wait.. wat?
1165: [22:40:47] <oddnoc> Thursday afternoon :)
1166: [22:41:41] * opalfroot has joined #silverstripe
1167: [22:42:55] <Zauberfisch> simon_w: in the EU? :O
1168: [22:45:51] <opalfroot> trying to implement a factory method for DI - but the relevant interface doesnt seem to exist? http://api.silverstripe.org/3.1/class-SilverStripeFrameworkInjectorFactory.html
1169: [22:46:04] * tinyzygote has left #silverstripe
1170: [22:48:17] <opalfroot> anyone?
1171: [22:50:40] * joelpittet has joined #silverstripe
1172: [22:55:40] <Zauberfisch> opalfroot: i think it does but is namespaced
1173: [22:55:47] <oddnoc> opalfroot: Interesting… my local copy of the docs doesnt have that reference
1174: [22:55:47] <Zauberfisch> SilverStripe\Framework\Injector\Factory
1175: [22:56:41] <Zauberfisch> the according link to the api docs is: http://api.silverstripe.org/3.1/class-SilverStripe.Framework.Injector.Factory.html
1176: [22:57:09] <oddnoc> I think Zauberfisch has solved it.
1177: [22:57:53] <oddnoc> But it looks like line 95 of injector.md needs to be fixed.
1178: [22:58:02] <Zauberfisch> opalfroot: where did you got that link from? (if its from the docs we should fix that)
1179: [22:58:13] <Zauberfisch> ah, will create a pull request for it
1180: [22:58:18] <Pyromanik> whaaaaat
1181: [22:58:27] <opalfroot> ok cool
1182: [22:58:28] <Pyromanik> factory injector, I'm not sure what even.
1183: [22:58:52] <simon_w> It's a factory factory!
1184: [22:58:52] <Zauberfisch> crap. can't fix the docs
1185: [22:58:54] <opalfroot> its here: http://doc.silverstripe.org/framework/en/reference/injector
1186: [22:59:02] <Zauberfisch> its a problem with the docs generator
1187: [22:59:11] <oddnoc> ah
1188: [22:59:16] <Zauberfisch> in the markdown file its correct:
1189: [22:59:17] <Zauberfisch> [api:SilverStripe\Framework\Injector\Factory]
1190: [22:59:23] <Zauberfisch> just the generated link is broken
1191: [22:59:26] <simon_w> Zauberfisch, so PR?
1192: [22:59:50] <Pyromanik> simon_w, yeh, ikr.
1193: [23:00:19] <Zauberfisch> simon_w: would if I could. fixing a markdown file is easy. but I don't have time to look into the docs generator
1194: [23:00:27] <Zauberfisch> but I will open an issue
1195: [23:02:20] <opalfroot> hmmm this doesn't appear to be present in the latest version of SS
1196: [23:02:54] <oddnoc> opalfroot: I think it is on the 3.1 branch but not the 3.1.3 release.
1197: [23:03:01] <Zauberfisch> opalfroot: it does for me
1198: [23:03:21] <opalfroot> 3.1.3 I'm on
1199: [23:03:25] <opalfroot> bugger
1200: [23:03:33] <simon_w> Zauberfisch, https://github.com/silverstripe/silverstripe-docsviewer/blob/master/code/DocumentationParser.php#L251 and 272
1201: [23:05:10] <Zauberfisch> issue created
1202: [23:05:11] <Zauberfisch> https://github.com/silverstripe/silverstripe-docsviewer/issues/37
1203: [23:07:01] <opalfroot> if it's not present in 3.1.3 are there any docs how to implements factor classes for DI?
1204: [23:09:08] <oddnoc> switch to the 3.1 branch
1205: [23:09:36] * nbezzala has joined #silverstripe
1206: [23:14:36] <Pyromanik> what the hell is a factory class
1207: [23:14:54] <simon_w> A class for creating other classes
1208: [23:15:01] <Pyromanik> I thought injection deprecated factories.
1209: [23:15:22] <Pyromanik> yeah I know what a factory it, but why want more of them? :<
1210: [23:15:24] <simon_w> Injection needs a factory to be able to create the dependancies
1211: [23:15:36] <simon_w> Because it's not Java enough!
1212: [23:15:41] <Pyromanik> yeah but there are two of them already!
1213: [23:16:08] <Pyromanik> I don't get why you need a factory opalfroot
1214: [23:16:10] <Pyromanik> :<
1215: [23:16:27] <Pyromanik> if it's simply to define dependencies... that's what yml is for.
1216: [23:17:19] <Pyromanik> but anyway
1217: [23:17:22] <Pyromanik> bed time.
1218: [23:17:25] <Pyromanik> nite.
1219: [23:17:29] * Pyromanik quit (Quit: HydraIRC -> http://www.hydrairc.com <- \o/)
1220: [23:17:31] <simon_w> Lunch time!
1221: [23:25:58] <Colin[pi]> anyone seen this happening in the page tree before? http://i.imgur.com/Sm7EKwU.png
1222: [23:26:16] <Colin[pi]> I think it may be connected to pages not being deleted properly :o
1223: [23:26:45] <oddnoc> Colin[pi]: They are pages with no title or other default fields.
1224: [23:26:53] <oddnoc> very annoying when it happens
1225: [23:26:54] <Colin[pi]> yep but... how
1226: [23:27:12] <oddnoc> Are you generating them dynamically? I’ve never tracked down a specific cause
1227: [23:27:23] <Colin[pi]> yeah, I think it's related to one of the data importers
1228: [23:27:24] <Colin[pi]> from csv
1229: [23:27:31] <oddnoc> Yeah, that could do it.
1230: [23:27:43] <Colin[pi]> ffffuu
1231: [23:27:51] <Colin[pi]> now I need to figure out what's going wrong
1232: [23:27:51] <Colin[pi]> :\
1233: [23:28:07] * micmania1 has joined #silverstripe
1234: [23:28:08] <Colin[pi]> possibly creating some pages but not defining them?
1235: [23:28:15] <Zauberfisch> Colin[pi]: that looks old
1236: [23:28:21] <Zauberfisch> is that 2.x?
1237: [23:28:30] <Colin[pi]> Zauberfisch: modified 2.4 yes
1238: [23:28:47] <oddnoc> You could add a dynamic default for Title, so that you can easily delete them in the CMS
1239: [23:28:52] <simon_w> Woo, a Canberra job I can actually apply for without immediately closing it due to security clearance!
1240: [23:29:20] <Zauberfisch> simple hackfix: use onBeforeWrite and set the title to something random
1241: [23:29:32] <oddnoc> there you go
1242: [23:29:33] <Colin[pi]> oddnoc: problem is after last import there are a shitload of them there
1243: [23:29:46] <Zauberfisch> simon_w: you no longer work for pocketrent?
1244: [23:29:47] <Colin[pi]> simon_w: is it Maccas?
1245: [23:29:54] <oddnoc> I’ve had to use SQL to clean that up
1246: [23:29:57] <simon_w> Zauberfisch, I'm moving country
1247: [23:30:02] <simon_w> Colin[pi], haha, nope!
1248: [23:30:04] <Zauberfisch> I see
1249: [23:30:12] <Colin[pi]> oddnoc: yeah I will do the same, but I thought it was fixed :(
1250: [23:30:29] <micmania1> simon_w: was it something I said?
1251: [23:30:52] <opalfroot> for creating DI objects is it possible to do something like load an instance of a dataobject to pass around?
1252: [23:31:03] <Colin[pi]> micmania1: nah he's just tired of the NZ sheep and wants to try the AU ones
1253: [23:31:26] <micmania1> haha he should try Wales. I hear they have the best.
1254: [23:32:08] <micmania1> opalfroot: singleton("ClassName")??
1255: [23:32:19] <oddnoc> The sheepiest place I’ve been is Islay. But they have whisky as well.
1256: [23:32:48] <Colin[pi]> bad combo
1257: [23:32:54] <Colin[pi]> or good, depends on your perspective
1258: [23:33:06] <oddnoc> LOL
1259: [23:34:20] <micmania1> so this got sent around the office yesterday... https://www.youtube.com/watch?v=7Bg586-wl38
1260: [23:35:33] <opalfroot> micmanial that kinda works though its not an instance...kinda wanted an instance of a class
1261: [23:36:07] <zippy___> hmmm… $this->Content->LimitCharacters(100); is throwing me an error that LimitCharacters doesn't exist on my HTMLText field...
1262: [23:36:11] <opalfroot> thats why I wanted a factory method ..
1263: [23:36:26] <zippy___> Call to a member function LimitCharacters() on a non-object
1264: [23:36:27] <zippy___> hm
1265: [23:36:33] <zippy___> can you not do that in a controller..
1266: [23:36:36] <micmania1> opalfroot: ClassName::create() ?
1267: [23:37:01] <opalfroot> I want to load an instance from the DB and use it as DI object
1268: [23:37:10] <micmania1> zippy___: $this->dataObject("DBField")->LimitCharacters()
1269: [23:37:16] <micmania1> wait
1270: [23:37:18] <micmania1> that rubbish
1271: [23:37:23] <micmania1> $this->dbObject("DBField")
1272: [23:37:28] <micmania1> my bad
1273: [23:38:12] <Colin[pi]> micmania1: lol, good ad
1274: [23:38:31] <opalfroot> I want to bind dataobjects of class X to an instance of Holder Y - any ideas?
1275: [23:39:58] * jghazally has joined #silverstripe
1276: [23:40:50] <micmania1> opalfroot: You can pass an instance of a class through the constructor, but you'd still need your own logic to get it from the db
1277: [23:41:40] * jghazally has left #silverstripe
1278: [23:48:26] * muskie9 quit (Remote host closed the connection)
1279: [23:49:04] * muskie9 has joined #silverstripe
1280: [23:53:35] * r3v3rb quit (Quit: r3v3rb)
1281: [23:53:55] * muskie9 quit (Ping timeout: 264 seconds)
1282: [23:57:06] <Zauberfisch> simon_w: y u no merge? D:
1283: [23:58:35] * babak quit (Quit: Connection closed for inactivity)

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