#silverstripe IRC Log

IRC log for 29 May 2015

All timestamps are in UTC.

1: [00:01:28] * Cheddam_ has joined #silverstripe
2: [00:04:28] * Cheddam quit (Ping timeout: 256 seconds)
3: [00:04:39] <Colin[pi]> UncleCheese: got an idea of the next lesson?
4: [00:04:47] <UncleCheese> Dealing with arbitrary data
5: [00:05:06] <UncleCheese> e.g. stuctured content, not from the database
6: [00:05:25] <UncleCheese> so you've got a filter form and on your search results, you get to see all the applied filters and you can click them off
7: [00:05:39] <Colin[pi]> ahh I see
8: [00:05:40] <UncleCheese> that requires building a bunch of arbitrary ArrayData() objects and stuffing them into a list
9: [00:05:46] <UncleCheese> it will be cool
10: [00:05:54] <Colin[pi]> that will actually be super helpful for an upcoming project of mine ;)
11: [00:06:02] <Colin[pi]> as it'll be doing pretty much exactly that
12: [00:06:49] * logmong has joined #silverstripe
13: [00:07:01] * logmong quit (Changing host)
14: [00:07:01] * logmong has joined #silverstripe
15: [00:07:09] <logmong> hey guys
16: [00:07:49] <Colin[pi]> heya
17: [00:07:52] <logmong> i have a gridfield and i want the user to be able to put 3 different kinds of objects into it (they are feature items, each type has a slightly different set of values + template)
18: [00:07:56] <logmong> not sure how to go about it
19: [00:08:14] <logmong> currently i just have one DO that has every possible field which is not great
20: [00:09:27] <Colin[pi]> hmm GridFields are tied to one particular class, are they not?
21: [00:10:39] * Ryan-Toast quit (Quit: Ryan-Toast)
22: [00:11:56] <logmong> so the features can be a video (which gets a light box when clicked) a product (which needs to link to the product in the database to fetch the asset data) or just a news story
23: [00:12:18] <logmong> i guess i'll just have this giant DO for now with a Type dropdown
24: [00:13:09] * Cheddam_ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
25: [00:15:41] <Colin[pi]> logmong: I have solved this before by actually using Page subclasses
26: [00:16:46] <Colin[pi]> logmong: sitetree is basically a big tree of objects that are polymorphic, so it makes sense (to me at least) that one can add various "types" of pages in certain areas to represent different "things" to be rendered
27: [00:24:20] * Ryan-Toast has joined #silverstripe
28: [00:29:15] <UncleCheese> logmong the gridfieldextensions module allows you to edit multiple types in one grid, i think
29: [00:33:23] <Colin[pi]> GridFieldAddNewMultiClass - lets the user select from a list of classes to create a new record from.
30: [00:33:25] <Colin[pi]> :o
31: [00:33:26] <Colin[pi]> oooh
32: [00:33:29] <Colin[pi]> thanks UC
33: [00:51:46] <logmong> Colin[pi]: that's an interesting idea, just made the HomePage contain 3 sub page elements
34: [00:52:02] <logmong> the people who maintain the content are super... i don't even
35: [00:52:07] <Colin[pi]> lol
36: [00:52:08] <logmong> so this might bee too complex for them
37: [00:52:33] * logmong puts a weeks training in the budget for this change
38: [00:52:52] <Colin[pi]> logmong: yeah I've done it before, like setting up a few "sub element" pages, that default to hide from menu and search, and then get the parent page to work on $this->AllChildren()
39: [00:53:21] <adrexia> log mong I have solved that problem before by using one dataobject and the display logic module
40: [00:53:36] <Colin[pi]> display logic module?
41: [00:53:39] <logmong> don't call me log mong :<
42: [00:53:47] <adrexia> sorry, autocorrectedd ;0
43: [00:53:54] * travis-ci has joined #silverstripe
44: [00:53:55] <travis-ci> silverstripe/silverstripe-framework#4903 (3.1 - e733efa : Damian Mooyman): The build passed.
45: [00:53:55] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/8a74dc3e0feb...e733efa1952b
46: [00:53:55] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64485400
47: [00:53:55] * travis-ci has left #silverstripe
48: [00:53:57] <adrexia> https://github.com/unclecheese/silverstripe-display-logic
49: [00:54:02] <logmong> display logic module sounds good
50: [00:54:18] <Colin[pi]> good ol Unca Cheese
51: [00:54:25] * DanaeNZ quit (Quit: DanaeNZ)
52: [00:54:32] <adrexia> so all fields were either on the same dataobject, or the "feature" was a syndication from somewhere else (like a news listing)
53: [00:54:50] <Colin[pi]> adrexia: woah that module looks super handy
54: [00:54:53] <adrexia> you choose a 'type' and it shows the fields you want
55: [00:55:14] <adrexia> Colin[pi], it makes it super easy to not have to write custom js ;)
56: [00:55:20] <Colin[pi]> hnngggh
57: [00:55:32] <Colin[pi]> custom js makes me want to stab myself in the face
58: [00:56:10] <adrexia> I don't mind it, but doing it for the admin everytime I want to do something like that would be super annoying
59: [00:57:01] <logmong> another question
60: [00:57:16] <logmong> could i make gridfield 2 column? i figure i can hack it with js and css
61: [00:57:30] <logmong> just so i can show double the items on a page since they are just thumbnails
62: [00:57:41] <adrexia> you mean the detail view?
63: [00:58:00] <logmong> naah the gridfield list page for a set of data objects in model admin
64: [00:58:27] <adrexia> so... like item image item image?
65: [00:58:36] <adrexia> like two tables next to each other?
66: [00:59:19] <logmong> instead of ITEM\nITEM\nITEM like a normal gridfield works, just ITEM, ITEM\nITEM, ITEM\n...etc
67: [01:03:37] * Ryan-Toast quit (Quit: Ryan-Toast)
68: [01:05:09] * DanaeNZ has joined #silverstripe
69: [01:05:52] * Ryan-Toast has joined #silverstripe
70: [01:07:31] <adrexia> hmm...that would be complicated
71: [01:07:51] <adrexia> and not neccessarily advisable, as it could be pretty confusing for a user
72: [01:08:10] <adrexia> usually clicking a row let's you edit _that item_
73: [01:08:33] * willr quit (Ping timeout: 240 seconds)
74: [01:08:43] <spronk> hm
75: [01:09:39] <adrexia> what you really want is a gallery view
76: [01:10:19] <adrexia> but I don't think anyone has gotten around to building one
77: [01:10:25] * Cheddam has joined #silverstripe
78: [01:10:34] * willr has joined #silverstripe
79: [01:10:40] <adrexia> https://github.com/silverstripe/silverstripe-design/blob/master/Design/ss3-ui_files-manager-gallery-view.jpg
80: [01:13:55] * Tanger has joined #silverstripe
81: [01:14:40] <spronk> nope.
82: [01:14:54] <spronk> ss file manager needs to ditch the pagination
83: [01:16:52] <Colin[pi]> spronk: why?
84: [01:16:58] <spronk> omfg its a pain in the arse
85: [01:17:11] <spronk> you have 200 files
86: [01:17:16] <spronk> pages 1 through 5 or whatever
87: [01:17:24] <spronk> FIND "PATHWAY_005"
88: [01:17:42] <DanaeNZ> it does need a text search tho, jebus
89: [01:17:54] <DanaeNZ> in the upload window especially
90: [01:17:54] <spronk> mm
91: [01:17:59] <spronk> yeah
92: [01:17:59] * veb has left #silverstripe
93: [01:18:04] * veb has joined #silverstripe
94: [01:18:15] <veb> ARGHHH
95: [01:18:17] <veb> where's that antmas guy
96: [01:18:24] <Colin[pi]> wait, didn't 2.4 have a text search in the upload?
97: [01:18:38] <spronk> i can't remember back to the stone age mna
98: [01:18:48] <Colin[pi]> lol
99: [01:20:17] <mahfuz> UncleCheese: do you have a minute to discuss an issue on DropZone Module. The Upload Files button is not working.
100: [01:20:24] <UncleCheese> yup
101: [01:21:14] * Azure quit (Read error: Connection reset by peer)
102: [01:21:41] <Ryan-Toast> UncleCheese: do you have a moment to discuss our lord and savior?
103: [01:21:47] <Colin[pi]> lol
104: [01:21:49] <UncleCheese> nope
105: [01:21:55] * Azure has joined #silverstripe
106: [01:21:58] <UncleCheese> i've said all i need to say about ss23
107: [01:22:08] <DanaeNZ> lmao
108: [01:22:18] <Ryan-Toast> UncleCheese: Could you perhaps give me your mobile number, so we could discuss our lord and savior at a more conveniant time for you?
109: [01:23:00] <DanaeNZ> UncleCheese: Perhaps I can come back tomorrow to dscuss our lord and saviour? No? Maybe the next day, and the day after that? You’ll be home one day.
110: [01:23:10] <Ryan-Toast> We’ll get you.
111: [01:23:48] <mahfuz> UncleCheese: I have uploaded DropZone module and the did /dev/build and using the code here to create a field - http://sspaste.com/paste/show/5567bf4cd29fa
112: [01:23:54] <DanaeNZ> http://vignette3.wikia.nocookie.net/rwby/images/9/91/Korra_and_lin.gif/revision/latest?cb=20140927025012
113: [01:24:04] <DanaeNZ> fuck your imgur Ryan-Toast
114: [01:24:24] <mahfuz> It is showing up fine. I can drop file and all that but when I click Upload Files nothing happens
115: [01:24:30] <UncleCheese> ah, ok
116: [01:24:35] <UncleCheese> i haven't tested that feature much
117: [01:24:58] <UncleCheese> are you getting any js errors when you click the button?
118: [01:25:16] <mahfuz> NO nothing
119: [01:25:35] <mahfuz> Should I use ->setAutoProcessQueue(true) then
120: [01:26:07] <ss23> 13:21:59 <@UncleCheese> i've said all i need to say about ss23
121: [01:26:08] <ss23> :D
122: [01:26:10] <ss23> PRAISE ss23
123: [01:26:15] <UncleCheese> yeah, it should default to autoprocessing, mahfuz
124: [01:26:28] <UncleCheese> see if that works and in the meantime, i'll test it without the autoprocess
125: [01:26:29] * Ryan-Toast raises hands
126: [01:26:36] <Ryan-Toast> praiiiise him, ss23
127: [01:27:12] <mahfuz> UncleCheese: here is the front end page where I am trying to use it
128: [01:27:14] <mahfuz> http://findmyv2.bbtdevelopment.com/agent-registration
129: [01:35:30] <mahfuz> UncleCheese: its not working if i remove ->setAutoProcessQueue(true)
130: [01:36:01] <UncleCheese> what do you mean?
131: [01:37:11] <mahfuz> I am droping file and thumbnail is shown but when I save it, it is not saving the field is blank
132: [01:37:30] <mahfuz> At the moment I was testing in the CMS
133: [01:37:36] <UncleCheese> ok
134: [01:37:45] <UncleCheese> can you paste the code?
135: [01:38:03] * travis-ci has joined #silverstripe
136: [01:38:04] <travis-ci> silverstripe/silverstripe-framework#4904 (3.1 - 25f2689 : Damian Mooyman): The build passed.
137: [01:38:04] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/e733efa1952b...25f268983364
138: [01:38:04] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64492809
139: [01:38:04] * travis-ci has left #silverstripe
140: [01:39:52] <Ryan-Toast> adrexia: I did a thing: https://github.com/Rhym/silverstripe-boilerplate/commit/fc7900289ac5dc4b806436eae9802a0557fcd834
141: [01:39:54] * ss-helper quit (Ping timeout: 276 seconds)
142: [01:40:24] * ss-helper has joined #silverstripe
143: [01:40:24] <adrexia> Ryan-Toast, my favourite change so far: https://github.com/Rhym/silverstripe-boilerplate/blob/fc7900289ac5dc4b806436eae9802a0557fcd834/code/Modules/Blog/code/BlogHolder.php
144: [01:40:33] <adrexia> I'll read the rest now
145: [01:41:04] <Ryan-Toast> adrexia: best change
146: [01:41:09] <adrexia> :D
147: [01:41:20] <adrexia> see I just can't get past --
148: [01:41:21] <Ryan-Toast> adrexia: Probs just easier to look at this: http://webdough.co.nz/~boilerpl/
149: [01:41:54] <adrexia> hmm
150: [01:42:22] <adrexia> I think we've talked about this before - but is there a reason you have a loop class? Isn't that more BE than result?
151: [01:42:27] <Ryan-Toast> adrexia: it cut down my css file by a decent amount.
152: [01:42:33] <adrexia> sweet!
153: [01:42:34] <adrexia> :)
154: [01:42:56] <adrexia> has-sidebar is a ... modifier?
155: [01:42:58] <Ryan-Toast> loop is a generic block for anything that contains/loops through items
156: [01:43:05] <Ryan-Toast> has-sidebar is a state
157: [01:43:20] <Ryan-Toast> is- has- and some others are states
158: [01:43:30] <Ryan-Toast> — are modifiers
159: [01:43:32] <Ryan-Toast> - -
160: [01:43:35] <adrexia> state I think is similar to my defintion of a modifier... but one is function and one is design ;)
161: [01:43:46] <Ryan-Toast> yeah, pretty much :)
162: [01:44:24] <Ryan-Toast> if I wanted to change the look of the page__content with a sidebar I would use page__content—has-sidebar
163: [01:44:59] <mahfuz> UncleCheese: here is the code http://sspaste.com/paste/show/5567c483441c1
164: [01:45:01] <Ryan-Toast> This will defs go through a teething period, and I will most likely end up tweaking it a bit, but i like the direction.
165: [01:45:08] <adrexia> what is the difference between __ and --
166: [01:45:09] <adrexia> ?
167: [01:45:15] <Ryan-Toast> __ is a block
168: [01:45:20] <Ryan-Toast> element**
169: [01:45:26] <Ryan-Toast> — is a modified
170: [01:45:28] <Ryan-Toast> modifier
171: [01:45:41] <Ryan-Toast> ie list__item—odd
172: [01:45:56] <Ryan-Toast> that’s an item in a list with a modifier of odd
173: [01:46:35] <adrexia> but what's -- ?
174: [01:46:43] <Ryan-Toast> modifier
175: [01:46:47] <adrexia> c.f. article--blog
176: [01:47:00] <Ryan-Toast> block element article with a modifier of blog
177: [01:47:04] <mahfuz> UncleCheese: I can even Choose an existing file option in CMS and attach it to the field and its saving
178: [01:47:13] <UncleCheese> does the upload complete?
179: [01:47:16] <adrexia> ahh I see
180: [01:47:17] <Ryan-Toast> so the blog version of that article would look different than just an article
181: [01:47:31] <adrexia> so its a modifier on a block directly
182: [01:47:42] <Ryan-Toast> a modifier of a block, yes
183: [01:48:01] <adrexia> anything off a block has two dashes/underscores
184: [01:48:10] <Ryan-Toast> yarp
185: [01:48:21] <Ryan-Toast> single dashes are for the same element
186: [01:48:27] <adrexia> could you just do b_e-m ? or b-m>
187: [01:48:34] <Ryan-Toast> ie block-name__item—modifier
188: [01:48:42] <adrexia> oh, I guess its ...do you have a e-m case?
189: [01:48:47] <Ryan-Toast> then single dashes would be confising
190: [01:48:59] <adrexia> lol
191: [01:49:13] <adrexia> I use dashes for everything, so not confusing for me
192: [01:49:14] <Ryan-Toast> single dashes and underscroes are for names.
193: [01:49:24] <Ryan-Toast> double for emenets or modifiers
194: [01:49:27] <Ryan-Toast> elements
195: [01:49:31] <adrexia> component names, yeha?
196: [01:49:34] <Ryan-Toast> yarp
197: [01:51:42] <adrexia> probably wouldn't work for me, but I applaud your consistency. :D
198: [01:52:12] <Ryan-Toast> adrexia: thanks, I’ll come back to you with any pain points I find.
199: [01:52:18] <adrexia> :)
200: [01:52:19] <Ryan-Toast> Need to do a fresh project with it.
201: [01:52:42] * adrexia nods
202: [01:53:22] <adrexia> I think I like my css class syntax to follow english grammar rules
203: [01:53:36] <Ryan-Toast> example?
204: [01:53:45] <adrexia> actually, I think that's why I liked gumbv's syntax too.
205: [01:54:00] <adrexia> Ryan -- isn't soemthing we usually do to words
206: [01:54:06] <Ryan-Toast> Ah, right.
207: [01:54:29] <adrexia> but more than that, I liked the component with reusable modifiers
208: [01:54:32] <Ryan-Toast> Isn’t gumby dead now?
209: [01:54:45] <adrexia> but I can totally see why that could look dangerous to some
210: [01:54:59] <adrexia> gumby has stopped being updated as off a month or so ago
211: [01:55:07] <adrexia> but not dead, as such
212: [01:55:15] <Ryan-Toast> global modifiers always get modified for me anyway.
213: [01:55:18] <adrexia> just not supported any more ;)
214: [01:55:36] <Ryan-Toast> I’ve always thought that if you have to override/remove something then you’ve added it too early.
215: [01:56:12] <adrexia> if you are doing it all the time, sure
216: [01:56:28] <adrexia> I don't know
217: [01:56:36] <adrexia> there has been this movement to kill the cascade in css
218: [01:56:44] <adrexia> but it's not all bad
219: [01:57:05] <adrexia> it gives you a lot for free, that works in 90% of cases
220: [01:57:15] <Ryan-Toast> this is true.
221: [01:57:30] <Ryan-Toast> I just like trying things out, taking bits and pieces from different experiments.
222: [01:57:36] <Ryan-Toast> This will be an interesting one :P
223: [01:57:38] * adrexia nods
224: [01:57:42] <adrexia> good luck :)
225: [01:57:46] <Ryan-Toast> I may learn to hate it, or I could use it forreeevvveeerrrr
226: [02:00:18] * veb quit (Quit: veb-irc: &)
227: [02:00:33] * willr quit (Ping timeout: 246 seconds)
228: [02:00:33] * willr_ has joined #silverstripe
229: [02:03:31] <adrexia> lol
230: [02:03:50] <adrexia> you'll be the worst css dev in the world in...like 10 years time ;)
231: [02:04:17] <adrexia> actually, in the world might be too far
232: [02:05:14] <adrexia> or, I dunno, maybe css will just stop changing at some point
233: [02:05:28] <adrexia> ....nah
234: [02:05:42] * veb has joined #silverstripe
235: [02:06:23] <Ryan-Toast> adrexia: lol, eery 6 months - hwat was I thinking?
236: [02:06:26] <Ryan-Toast> every
237: [02:06:35] <adrexia> yep :D
238: [02:06:55] <adrexia> https://medium.com/seek-ui-engineering/the-end-of-global-css-90d2a4a06284
239: [02:07:06] <Ryan-Toast> in saying that,. every day that I feel incompetent there are people saying my work is good. So there’s that, I guess.
240: [02:07:41] <adrexia> it's quite a large scale, yeah
241: [02:07:57] <adrexia> it's probably good that way
242: [02:08:57] <adrexia> we have just introduced our high school work experience guy to sass. Sort of the hard way
243: [02:08:59] <adrexia> :D
244: [02:09:57] <Ryan-Toast> adrexia: here you go, good luck.
245: [02:10:02] <adrexia> lol
246: [02:11:07] <adrexia> a bit nicer than that... but in some ways worse. It's not like starting fresh and constructing things yourself. He's deep in a project we have been on for months
247: [02:11:30] <Ryan-Toast> Always fun :D
248: [02:11:36] <adrexia> so more like, ' hey you know css, right?' 'I thought I did'
249: [02:11:43] <Ryan-Toast> Poor DanaeNZ has to deal with the new boilerplate, muhahaha
250: [02:11:48] <adrexia> lols
251: [02:11:57] <Ryan-Toast> IN IT TOGETHER
252: [02:12:03] <DanaeNZ> D:....
253: [02:12:05] <Ryan-Toast> gl;hf
254: [02:12:20] <DanaeNZ> i thought that meant “good luck, high five” for ages
255: [02:12:21] <Ryan-Toast> adrexia: man I love Medium’s typography.
256: [02:12:45] <DanaeNZ> @Ryan-Toast very print, much retina
257: [02:16:10] * DanaeNZ jams to the sweet Lessons guitar riffs
258: [02:16:25] <DanaeNZ> beow beowwww dangagaga beooowww
259: [02:20:46] * spronk quit (Quit: I may need a longer sleep timer...)
260: [02:26:33] <UncleCheese> DanaeNZ you dig?
261: [02:26:46] * travis-ci has joined #silverstripe
262: [02:26:47] <travis-ci> silverstripe/silverstripe-framework#4905 (3 - 71d766a : Damian Mooyman): The build passed.
263: [02:26:47] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/161cd5c14de1...71d766a8d890
264: [02:26:47] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64494060
265: [02:26:47] * travis-ci has left #silverstripe
266: [02:26:50] <DanaeNZ> UncleCheese: it’s pretty funkyyy
267: [02:26:54] <UncleCheese> ha
268: [02:27:02] <UncleCheese> i only had like five minutes to come up with something
269: [02:28:31] <DanaeNZ> oh wait did you compose it yourself?
270: [02:35:59] * spronk has joined #silverstripe
271: [02:36:14] <adrexia> Ryan-Toast, it's nice, yeah :)
272: [02:36:22] <Ryan-Toast> adrexia: Hmm?
273: [02:36:31] <DanaeNZ> TYPOGRAPHY
274: [02:36:38] <Ryan-Toast> adrexia: Ah, right :) yeah.
275: [02:36:41] <adrexia> I'm a bit slow ;)
276: [02:36:44] <Ryan-Toast> I like larger fonts.
277: [02:36:50] <adrexia> me too
278: [02:36:52] <Ryan-Toast> No-one ever designs themm though :(
279: [02:36:57] <adrexia> I like readable thigns
280: [02:37:02] <adrexia> they are scaredd
281: [02:37:08] <Ryan-Toast> adrexia: You like to read things? Weirdo.
282: [02:37:13] <adrexia> it's hard to make big look good
283: [02:37:18] <Ryan-Toast> agreeed
284: [02:37:47] <adrexia> and... it's fine when you have few elements in the space around it, but it goes crazy if you have other things
285: [02:38:51] <DanaeNZ> mmm is why serif works so well here
286: [02:38:58] <DanaeNZ> there’s nothing else there
287: [02:39:01] <DanaeNZ> and the font is BIG
288: [02:43:34] <Colin[pi]> DanaeNZ UncleCheese: ha, was that your guitar UC? I wondered if that was you
289: [02:43:41] <UncleCheese> yessir
290: [02:43:46] <DanaeNZ> ah cool!
291: [02:43:46] <Colin[pi]> ha sweet
292: [02:44:11] <Colin[pi]> UncleCheese: I think I remember seeing some vids of you some time playing some stuff, not bad sir
293: [02:44:21] <UncleCheese> i think i spent about two hours looking for something to licence online, and then i was just like, screw it, i'll just do it
294: [02:44:31] <UncleCheese> http://youtube.com/unclecheese323
295: [02:44:56] * travis-ci has joined #silverstripe
296: [02:44:57] <travis-ci> silverstripe/silverstripe-cms#1225 (3.1.14 - 0557c0d : Damian Mooyman): The build passed.
297: [02:44:57] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/compare/3.1.14
298: [02:44:57] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/64501168
299: [02:44:57] * travis-ci has left #silverstripe
300: [02:45:50] * babak quit (Quit: Connection closed for inactivity)
301: [02:46:35] <Colin[pi]> UncleCheese: damn, awesome stuff
302: [02:46:43] <Colin[pi]> UncleCheese: are you a Tommy Emmanuel fan?
303: [02:46:47] <UncleCheese> big
304: [02:46:52] <UncleCheese> working on Angelina for my next vid
305: [02:47:00] <Colin[pi]> UncleCheese: saw him at the Gold Coast a couple of years back, fucking AMAZING
306: [02:47:08] <UncleCheese> yeah, he's ricick
307: [02:47:15] <UncleCheese> he's the reason i bough an aussie guitar
308: [02:47:18] <UncleCheese> he plays a maton
309: [02:47:35] <Colin[pi]> yep, when he performed I noticed he wasn't using his old scratched up maton
310: [02:47:42] <Colin[pi]> he said that he had to retire it :(
311: [02:47:47] <Colin[pi]> he had actually worn through the wood
312: [02:47:50] <UncleCheese> noooooo
313: [02:47:56] <UncleCheese> he's been playing that same guitar for decades
314: [02:47:59] <Colin[pi]> yeah :\
315: [02:48:11] <Colin[pi]> he said he just couldn't go on with it, finally wore it out
316: [02:48:28] <Colin[pi]> but that guitar gave some of the most unique sounds in his music :\
317: [02:48:52] <spronk> he's insane
318: [02:48:56] <spronk> HOW U DO THAT TOMMY
319: [02:49:20] <Colin[pi]> like this track, the part at the end, amazing: https://www.youtube.com/watch?v=pC6m3A0ve3A
320: [02:49:41] <UncleCheese> i would love to be able to play his Somewhere Over the Rainbow
321: [02:49:46] <Colin[pi]> mm
322: [02:49:55] <UncleCheese> does that signature harp guitar technique
323: [02:50:01] <Colin[pi]> mm yeah
324: [02:50:18] <UncleCheese> we're live! http://www.trademe.co.nz/Browse/Listing.aspx?id=895316761
325: [02:50:21] <UncleCheese> rent this bitch!
326: [02:52:29] <irogue_> > complains about house on IRC
327: [02:52:34] <irogue_> > tells people in IRC to rent it
328: [02:52:34] <irogue_> :-P
329: [02:52:39] <Colin[pi]> lol
330: [02:52:40] <DanaeNZ> irogue_: i was gonna saaaay
331: [02:52:43] <UncleCheese> hahaha
332: [02:52:50] <UncleCheese> no, seriously.. it's an awesome house
333: [02:52:53] <UncleCheese> HA!
334: [02:53:29] <Colin[pi]> UncleCheese: http://i.imgur.com/NQHKSVE.gif
335: [02:53:33] <irogue_> mind you, i can't even remember now what the issues were its been so long
336: [02:53:43] <simon_w|air> They'll be in the logs
337: [02:54:09] <Colin[pi]> "For more information on this property, please visit http://logs.simon.geek.nz"
338: [02:54:17] <DanaeNZ> lmao
339: [02:55:29] <Colin[pi]> irogue_: something about junkies and copper pipes
340: [02:55:38] <irogue_> yeah, found it :P
341: [02:56:59] <adrexia> <irogue_> > complains about house on IRC
342: [02:56:59] <adrexia> <irogue_> > tells people in IRC to rent it
343: [02:57:01] <adrexia> lol, yeah
344: [02:57:09] <adrexia> not much of a sell
345: [02:57:36] <UncleCheese> Colin[pi] hahaha
346: [02:57:47] <UncleCheese> (NSFW)
347: [02:57:55] <irogue_> i mustve never watched the video for this song before, cos I'd have definitely lol'd hard at this photoshop: https://youtu.be/k4P4XNLE8cU?t=11s
348: [02:58:12] <simon_w|air> Most of what's in the logs happens while people are at work though...
349: [02:58:36] <Colin[pi]> simon_w|air: the lines are blurred for me ;P
350: [03:00:15] <adrexia> ...it does actually look like a nice house
351: [03:00:53] <adrexia> "Pets negotiable under strict terms." == "you can have a goldfish" ?
352: [03:01:19] <Colin[pi]> adrexia: "dogs only allowed if trained to poop in the people toilet"
353: [03:01:19] <Ryan-Toast> irogue_: photoshop?
354: [03:01:31] <irogue_> Ryan-Toast: "Shapeshifter Arena"
355: [03:01:40] <adrexia> lols
356: [03:02:53] * travis-ci has joined #silverstripe
357: [03:02:54] <travis-ci> silverstripe/silverstripe-framework#4906 (3.1.14 - 04b803d : Damian Mooyman): The build passed.
358: [03:02:54] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/3.1.14
359: [03:02:54] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64501310
360: [03:02:54] * travis-ci has left #silverstripe
361: [03:03:01] <Ryan-Toast> irogue_: http://share.gifyoutube.com/yNg59J.gif
362: [03:15:13] <DanaeNZ> Ryan-Toast: https://www.youtube.com/watch?v=1Yeipzl1uZY
363: [03:15:17] <DanaeNZ> murica
364: [03:23:17] <spronk> lul
365: [03:35:52] * chocolatemoose has joined #silverstripe
366: [03:36:25] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
367: [03:51:12] <UncleCheese> ah got keeeds...
368: [03:53:13] * Phlunk3 quit (Remote host closed the connection)
369: [03:54:06] <Hailwood> Hey guys, If you use vagrant you can do "vagrant share" which sets up a kind of proxy into your vagrant machine. anyone know of a similar service when you're not using vagrant? I need an external service to be able to fire post requests off to my system for testing
370: [03:59:14] <Hailwood> ngrok looks interesting..
371: [04:01:42] <spronk> .ssh?
372: [04:01:50] <spronk> i dno i haven't used vagrant share
373: [04:03:22] <micmania1> Hailwood: ngrok
374: [04:03:47] <micmania1> Hailwood: https://ngrok.com/
375: [04:04:05] <Hailwood> micmania1, Yeah, I've just got that working now :)
376: [04:04:39] * travis-ci has joined #silverstripe
377: [04:04:40] <micmania1> oh, just seen that you mentioned it :p
378: [04:04:40] <travis-ci> silverstripe/silverstripe-framework#4909 (3.1 - b92d472 : Damian Mooyman): The build passed.
379: [04:04:40] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/25f268983364...b92d47220bb7
380: [04:04:40] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/64507045
381: [04:04:40] * travis-ci has left #silverstripe
382: [04:15:40] * DanaeNZ quit (Quit: DanaeNZ)
383: [04:16:15] * wmk has joined #silverstripe
384: [04:17:47] * novaweb quit (Quit: novaweb)
385: [04:21:15] * Ryan-Toast quit (Quit: Ryan-Toast)
386: [04:32:29] * Ryan-Toast has joined #silverstripe
387: [04:32:46] * Ryan-Toast quit (Client Quit)
388: [04:36:14] <UncleCheese> everyone says the === operator in JS is the shit
389: [04:36:19] <UncleCheese> but all it does is give me shit
390: [04:37:45] * wmk quit (Ping timeout: 256 seconds)
391: [04:39:16] <spronk> your javascript must suck then :P
392: [04:40:21] <spronk> its just like using === in php
393: [04:40:28] <spronk> if it's causing you grief, your code is wrong.
394: [04:40:47] * simon_w|air quit (Quit: My Mac has gone to sleep. ZZZzzz…)
395: [04:52:30] <MichalKleiner> spronk: +1
396: [04:57:52] * babak has joined #silverstripe
397: [05:02:26] * Hailwood quit (Remote host closed the connection)
398: [05:04:51] * benjhocking1 quit (Read error: Connection reset by peer)
399: [05:05:00] * benjhocking has joined #silverstripe
400: [05:09:31] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
401: [05:13:54] * UncleCheese has joined #silverstripe
402: [05:19:52] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
403: [05:33:57] * Sticks has joined #silverstripe
404: [05:49:33] * adrexia_ has joined #silverstripe
405: [05:54:37] * Azure quit (Read error: Connection reset by peer)
406: [05:55:24] * Azure has joined #silverstripe
407: [05:55:32] * ss-helper quit (Remote host closed the connection)
408: [05:55:45] * ss-helper has joined #silverstripe
409: [06:03:51] * Colin[pi] quit (Ping timeout: 244 seconds)
410: [06:05:40] * wmk has joined #silverstripe
411: [06:05:50] * spronk quit (Quit: I may need a longer sleep timer...)
412: [06:08:15] * Cheddam quit (Ping timeout: 272 seconds)
413: [06:19:19] * mobiusnz quit (Quit: Leaving.)
414: [06:19:41] * mobiusnz has joined #silverstripe
415: [06:20:16] * adrexia_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
416: [06:21:07] * Colin[pi] has joined #silverstripe
417: [06:21:22] * adrexia_ has joined #silverstripe
418: [06:28:05] * Colin[pi] quit (Ping timeout: 258 seconds)
419: [06:31:11] * Cheddam has joined #silverstripe
420: [06:32:22] * mahfuz quit (Quit: Page closed)
421: [06:36:52] * Eliseth has joined #silverstripe
422: [06:37:16] * novaweb has joined #silverstripe
423: [06:40:39] * willr_ quit (Quit: willr_)
424: [06:47:37] * swaiba has joined #silverstripe
425: [07:04:02] * Cheddam quit (Quit: Textual IRC Client: www.textualapp.com)
426: [07:08:15] * micmania1 quit (Quit: micmania1)
427: [07:27:36] * Sticks quit (Quit: Leaving)
428: [07:28:09] * chocolatemoose quit (Remote host closed the connection)
429: [07:33:10] * jarr0dsz has joined #silverstripe
430: [07:34:02] <jarr0dsz> hi everyone how could i print a query from a datalist or print queries in sliverstripe?
431: [07:34:05] <jarr0dsz> silverstripe newbie here
432: [07:37:01] * guci0 has joined #silverstripe
433: [07:37:02] <guci0> Hello World!
434: [07:37:30] * Shrike_Finland has joined #silverstripe
435: [07:38:24] <swaiba> guci0 hi
436: [07:39:05] <guci0> ;)
437: [07:39:18] * huberd has joined #silverstripe
438: [07:39:30] <swaiba> jarr0dsz - http://docs.silverstripe.org/en/developer_guides/debugging/url_variable_tools/
439: [07:39:52] <swaiba> look for the showqueries
440: [07:40:36] <ss-helper> silverstripe query does not work, best way to debug? - http://stackoverflow.com/questions/30523830/silverstripe-query-does-not-work-best-way-to-debug
441: [07:41:43] <huberd> hey, anyone using the dashboard module with google analytics?
442: [07:42:21] <guci0> from uncle? I saw video tutorial... Looks good
443: [07:43:22] * tmro has joined #silverstripe
444: [07:43:24] <huberd> yes, always worked fine, but now google changed something with their authentication and I can't log into analytics
445: [07:43:59] <huberd> I just wanted to know if anyone fixed this already
446: [07:44:15] <swaiba> I've not seen an update
447: [07:44:27] <guci0> Maybe google makes some change – via api
448: [07:44:30] <swaiba> I wish there was a goog place for recording that
449: [07:44:42] <swaiba> google made a ton of changes end of last year to apis
450: [07:44:53] <guci0> :)
451: [07:47:15] <jarr0dsz> thank you swaiba im newbie to silverstripe and try to fix this query: http://stackoverflow.com/questions/30523830/silverstripe-query-does-not-work-best-way-to-debug
452: [07:47:34] <jarr0dsz> havent been able to do so yet. also the filter and where query is confusing to me, using both or only the filter on the whole recordset
453: [07:47:44] <jarr0dsz> any of you ss experts could guide me in the right direction
454: [07:48:22] <swaiba> jarr0dsz - well best this is to use debug::show and take the query apart step by step
455: [07:48:40] <swaiba> you can add each filter seperately and then show the results
456: [07:48:58] <swaiba> you can do date comparisons with filter too
457: [07:49:05] <guci0> steep by steep
458: [07:49:38] <swaiba> e.g. 'StopPublication:GreaterThanOrEqual','2015-01-01'
459: [07:50:11] <huberd> I'd change the ->where to ->filterAny
460: [07:51:08] <jarr0dsz> i tried something like https://gist.github.com/rubytastic/b13cb02c3453d0651481
461: [07:51:19] <jarr0dsz> not sure do one need the where and filter always? currently it returns only 1 record
462: [07:53:26] <swaiba> you can have both
463: [07:53:34] <swaiba> obviously it is safer to stick withteh ORM
464: [07:53:52] <swaiba> and more effiecent unless you are advanced with SQL
465: [07:55:01] * veb_ has joined #silverstripe
466: [07:58:09] * veb quit (Ping timeout: 240 seconds)
467: [07:58:20] <jarr0dsz> so just using the filters like this in my example would be legitimate query?
468: [07:59:44] <jarr0dsz> any idea why it does not pick up the dates correctly
469: [08:00:20] * veb has joined #silverstripe
470: [08:03:45] * veb_ quit (Ping timeout: 240 seconds)
471: [08:06:48] * Shrike_Finland quit (Quit: Leaving.)
472: [08:07:23] <wmk> jarr0dsz, you can try $bla->sql() to show the query
473: [08:07:25] * stnvh has joined #silverstripe
474: [08:07:38] <wmk> so you see what your DataList is actually doing
475: [08:08:41] <jarr0dsz> hm that fails with an uncaught invalidArgumentException: Injected property
476: [08:08:56] * kinglozzer has joined #silverstripe
477: [08:10:21] * Py2260k has joined #silverstripe
478: [08:15:14] * Alboes has joined #silverstripe
479: [08:15:26] <Alboes> Good morning
480: [08:19:04] <Alboes> I have a dataobject with has_one relation. Now I want to add an filter with $searchable_fields: 'City.Name' => array('title' => 'City'), This works, but Name is a varchar field and the filter shows it as a textfield. Is it possible to make this an dropdownfield?
481: [08:20:09] <wmk> Py2260k, gmorning
482: [08:20:39] <wmk> Alboes, should be possible
483: [08:21:53] <Py2260k> Morgen wmk :)
484: [08:22:54] <Py2260k> Alboes: iirc, $serchable_fields takes an array (err, each element of searchable_fields takes an array)
485: [08:22:55] <kinglozzer> Alboes: You might need to override scaffoldSearchFields() in your DataObject
486: [08:23:01] <Py2260k> so you can define the field
487: [08:23:07] <Py2260k> and the search term
488: [08:23:09] <Py2260k> or something like that
489: [08:23:46] <wmk> kinglozzer, you can define the field in the array afaik?
490: [08:23:58] <kinglozzer> wmk: Yeah but you can't define the options
491: [08:24:01] * Liquide quit ()
492: [08:24:05] <wmk> true
493: [08:24:16] <kinglozzer> It's a varchar field, so I think you'll need to pass the options manually in scaffoldSearchFields()
494: [08:25:01] <Py2260k> wmk: kinglozzer Alboes: http://www.balbuss.com/modeladmin-some-simple-snippets/
495: [08:25:04] * jarr0dsz quit (Quit: My Mac has gone to sleep. ZZZzzz…)
496: [08:25:07] <Py2260k> it's old, but relevant.
497: [08:25:16] <Py2260k> ctrl+f 'searchable_fields'
498: [08:25:40] <Py2260k> field, filter & title
499: [08:26:11] <kinglozzer> Yeah but Alboes needs a bit more than that - he wants a dropdown filter to show a list of names, name is varchar not enum so it won't be scaffolded
500: [08:26:33] <kinglozzer> gotta gives it dem options
501: [08:26:35] <Py2260k> yeah, but you force the scaffold, no?
502: [08:26:46] <Py2260k> hmm, but where would it get values from
503: [08:26:52] <Py2260k> DISTINCT name
504: [08:26:57] <Py2260k> or sumfin.
505: [08:27:12] <Py2260k> idk, what a question. It's too early. It's too Friday. Sorry.
506: [08:28:05] * jarr0dsz has joined #silverstripe
507: [08:28:08] <Py2260k> I'm busy wondering why my SS install that leverages another DB won't work because suddenly db not specified
508: [08:28:21] * Py2260k sips tea
509: [08:28:33] <Py2260k> oh duh, I renamed the DB a couple of months ago
510: [08:28:43] <Alboes> thanks for the advice, gonna try some things...
511: [08:31:19] * bemusedrat has joined #silverstripe
512: [08:41:59] * Shrike_Finland has joined #silverstripe
513: [08:44:23] * Shrike_Finland quit (Client Quit)
514: [08:47:50] <Alboes> i guess this is what i need? http://docs.silverstripe.org/en/developer_guides/search/searchcontext/
515: [08:55:43] * Mike123 has joined #silverstripe
516: [08:55:49] <wmk> yup Alboes
517: [08:56:08] <wmk> somehow i managed to do a list of years (Int) as dropdown, but looked at code and didn't remember ;)
518: [08:56:09] * Shrike_Finland has joined #silverstripe
519: [08:56:16] <wmk> hey Mike123
520: [08:56:26] <Mike123> hello :)
521: [09:09:57] * Tanger quit (Quit: Tanger)
522: [09:18:12] <Py2260k> Alboes: yeah, searchcontext is what you're after. If you're using modeladmin then that's basically all the filter pop-out is.
523: [09:31:16] <Alboes> well, for now I give it up, can't get it working and can't find a clear example
524: [09:37:16] <Py2260k> Alboes: I think you'd need to perform a separate query (or at least do a bit of semi-intensive PHP work) to get the values for the dropdown and present them in a DropdownField acceptable way.
525: [09:37:48] <Py2260k> you can do that by overriding public function searchableFields() iirc (or something similarly named on DataObject.php)
526: [09:38:04] <Py2260k> in your object in question
527: [09:38:27] <Py2260k> or as kinglozzer said [09:22] <kinglozzer> Alboes: You might need to override scaffoldSearchFields() in your DataObject
528: [09:38:43] <Py2260k> Not such a simple thing, but should certainly be achievable.
529: [09:40:26] <Alboes> yes, thanks. But as still a little beginner this is not so clear for me. I like to see examples. But for now thanks for the suggestions, i wil find it out later...
530: [09:40:50] <wmk> i love when bugfix is easy
531: [09:42:22] * Mike123 quit (Ping timeout: 246 seconds)
532: [09:47:20] * Mike123 has joined #silverstripe
533: [09:51:48] * elgabbu has joined #silverstripe
534: [09:51:53] <elgabbu> hi all
535: [09:54:58] <elgabbu> say I have Object A has_many Object B and Object B has_many Object C
536: [09:55:20] <elgabbu> i would like to write a function in ObjectA ... getAllObjectC
537: [09:55:51] * ss-helper quit (Remote host closed the connection)
538: [09:55:52] <elgabbu> which would basically return all objectC from all objectB of ObjectA
539: [09:56:05] * ss-helper has joined #silverstripe
540: [09:56:40] <elgabbu> is there any better where of doing this apart from iterating over all objectsB's and pushing the values of ObjectC into an ArrayList
541: [09:58:49] <wmk> elgabbu, get ObjB IDList,
542: [09:58:57] <wmk> query where ObjC where ID in (...)
543: [10:00:44] <elgabbu> IDlist is a function?
544: [10:01:56] <Py2260k> no
545: [10:02:03] <Py2260k> column is though
546: [10:02:34] <elgabbu> actually it is :) ... you can call it like this ... $this->Days()->getIdList()
547: [10:02:44] <Py2260k> C::get()->byID($this->B()->column('ID'))
548: [10:02:56] <Py2260k> same thing I think
549: [10:02:59] * Py2260k shrugs
550: [10:03:12] * bemusedrat1 has joined #silverstripe
551: [10:03:50] <elgabbu> yeap just a proxy method ... public function getIDList() { $ids = $this->column("ID"); return $ids ? array_combine($ids, $ids) : array(); }
552: [10:04:39] <Py2260k> ah, but it turns the ID's into keys as well as values.
553: [10:05:19] <elgabbu> mmm so how does coloumn return the id?
554: [10:05:37] <Py2260k> Just selects the one column.
555: [10:05:38] <elgabbu> normal associative array?
556: [10:05:43] <Py2260k> indexed
557: [10:05:53] <elgabbu> gotcha
558: [10:06:12] <Py2260k> [1=>'123', 2=>'523'] etc.
559: [10:06:16] * bemusedrat quit (Ping timeout: 255 seconds)
560: [10:06:21] <Py2260k> err, 0,1,2,etc
561: [10:06:22] <elgabbu> mhm
562: [10:06:23] <Py2260k> :<
563: [10:06:32] * Py2260k off by 1 errors
564: [10:06:37] <elgabbu> haha
565: [10:07:32] <Py2260k> Dunno why getIDList keys the array, must be used somewhere. I can't think of a usecase though off hand though.
566: [10:08:01] <Py2260k> But my head is full of learning testing teminology though.
567: [10:08:18] <Py2260k> harness, fixture, case, suite, execution, runner
568: [10:08:26] <Py2260k> so many seem like the same thing, but aren't ><
569: [10:08:45] <Py2260k> I just wanna run a list of assertions! D:
570: [10:10:02] * jarr0dsz quit (Quit: My Mac has gone to sleep. ZZZzzz…)
571: [10:11:04] <Py2260k> All this stuff I've written before, but never bothered to learn.
572: [10:11:19] <Py2260k> suddenly you're not using phpunit and you're going whaaaaaaaaaaat!?
573: [10:11:25] <Py2260k> 0.0
574: [10:14:38] * huberd quit (Quit: Leaving)
575: [10:15:21] * novaweb quit (Quit: novaweb)
576: [10:15:37] * Py2260k quit (Ping timeout: 246 seconds)
577: [10:17:22] <Mike123> hey guys, have encautered strange problem , here code http://codepaste.net/7u7bat , i when i check for Success or Error in template locally , i get messages, on server i nned to flush or change page for message to show
578: [10:29:36] * veb quit (Quit: veb-irc: &)
579: [10:30:19] * veb has joined #silverstripe
580: [10:39:50] * veb quit (Quit: veb-irc: &)
581: [10:51:31] * Shrike_Finland quit (Quit: Leaving.)
582: [10:59:54] * UncleCheese has joined #silverstripe
583: [11:05:40] * Mike123 quit (Ping timeout: 246 seconds)
584: [11:08:00] * Robke has joined #silverstripe
585: [11:08:43] <Robke> hey, is it possible send file via userdefined forms (ajax) in IE9?
586: [11:09:56] <swaiba> Robke - you mean along with an outgoing email ?
587: [11:10:05] <swaiba> or upload?
588: [11:10:13] <Robke> upload to cms
589: [11:10:25] <Robke> like i have form where you need to put your cv and name
590: [11:11:16] <Robke> and then you submit it all info including uplaoded file goes to cms
591: [11:11:38] <Robke> because with html support this thing is done via FormData()
592: [11:11:48] <Robke> but ie9 does not support this thing
593: [11:12:03] * Mike123 has joined #silverstripe
594: [11:21:26] <swaiba> oh ie9 question again!
595: [11:21:38] <swaiba> well it does work, but ensure things uploaded are private
596: [11:21:49] <swaiba> but for ie9 I don't belive SS test anything for that
597: [11:22:16] <swaiba> I do alot with councils and I sure wish they would drop IE
598: [11:22:31] <swaiba> at least after 5 years in the business "IE6" isn't mentioned anymore
599: [11:25:57] <ss-helper> Redirects and SEO - https://groups.google.com/d/msg/silverstripe-dev/wYS_Iw0zFcM/YUcr1hkzR0wJ
600: [11:32:53] <elgabbu> it would seem that if a do a replace field from within a setItemEditFormCallback function ... the newly replaced field (in this case a dropdown) ... doesn't know the value that should be assigned to the new dropdown
601: [11:33:53] <kinglozzer> elgabbu: That's correct
602: [11:34:03] <kinglozzer> That callback is called _after_ the form is populated
603: [11:34:08] <kinglozzer> So you need to populate the field yourself
604: [11:34:41] <kinglozzer> $form->getRecord()->MyField
605: [11:36:56] <elgabbu> gotcha
606: [11:38:30] <elgabbu> thanks kinglozzer
607: [11:39:50] <Robke> :)
608: [11:45:50] * babak quit (Quit: Connection closed for inactivity)
609: [12:02:05] * babak has joined #silverstripe
610: [12:08:56] * UndefinedOffset has joined #silverstripe
611: [12:31:24] * terryapodaca has joined #silverstripe
612: [12:34:09] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
613: [12:38:29] * DimiStripe quit (Quit: DimiStripe)
614: [12:39:19] <terryapodaca> How do I turn on UncleCheese's CalendarWidget or LiveCalendarWidget in his event-canlendar module?
615: [12:39:33] <terryapodaca> i thought one of them were turned on automatically
616: [12:39:43] * Kowiana has joined #silverstripe
617: [13:03:15] * Py3608k has joined #silverstripe
618: [13:11:08] <kinglozzer> Is anyone running 3.0.14? It's completely screwed for me :|
619: [13:11:17] <kinglozzer> i.e. treeview won't load
620: [13:13:20] <kinglozzer> Oh, looks like it might have been broken since https://github.com/silverstripe/silverstripe-cms/pull/1177
621: [13:21:17] <Mike123> is anyone here ?
622: [13:26:52] <Py3608k> hello Mike123
623: [13:27:06] <Py3608k> don't ask about people, just ask questions! :)
624: [13:27:30] <Py3608k> kinglozzer: so... don't upgrade?
625: [13:27:31] <Py3608k> lol
626: [13:27:43] <kinglozzer> Py3608k: I upgraded like 20 3.0 sites yesterday :P
627: [13:27:48] <kinglozzer> Now I've gotta fuck'n fix em
628: [13:28:02] <Py3608k> no, you've gotta fcuk'n fix SS, THEN fix your sites ;)
629: [13:28:05] <Py3608k> TO DEV/MASTER
630: [13:28:07] <Py3608k> xD
631: [13:28:19] <swaiba> kinglozzer considered having ss manage them and then they would handle this...
632: [13:28:45] * Py3608k checks
633: [13:28:49] * Py3608k is still on 3.1.6
634: [13:28:51] <Py3608k> lulz
635: [13:29:24] <Py3608k> cmd> net use
636: [13:29:31] <Py3608k> huh, learn something new erre dae
637: [13:29:40] <Py3608k> aall the mapped drives :>
638: [13:29:55] <kinglozzer> swaiba: 3.0.12, 3.0.13 and 3.0.14 are all broken and no one noticed
639: [13:29:56] <kinglozzer> :P
640: [13:30:14] <swaiba> if they hosted them, they would notice and fix
641: [13:30:23] <swaiba> according to the brochure
642: [13:30:25] <Py3608k> swaiba: hosted what?
643: [13:30:31] <swaiba> maybe that is what they are doing now
644: [13:31:04] <kinglozzer> swaiba: It's the SiteTree hints that are broken, so I can only assume that other people's caches haven't been invalidated yet and they've not noticed
645: [13:31:05] * Py3608k is supposed to go to some boring meeting to listen to people faff on for half an hour.
646: [13:31:25] <swaiba> Py3608k hosted site - silverstripe are offering AWS hosting with platform support
647: [13:31:29] * Py3608k sighs and carries on thinking about abstracting actions from forms
648: [13:31:37] <Py3608k> hmm
649: [13:31:51] <swaiba> i.e. they upgrade the framework and required modules and support them
650: [13:31:51] <Py3608k> Yeh. Platform. Govt runs it.
651: [13:32:01] <swaiba> thats it
652: [13:32:11] <kinglozzer> It's super cheap
653: [13:32:14] * kinglozzer cough
654: [13:32:16] <kinglozzer> :P
655: [13:32:31] * Robke quit (Quit: Leaving)
656: [13:32:32] <kinglozzer> Nah in fairness it's not that expensive for what you get
657: [13:32:43] <kinglozzer> It's just that none of our clients need it :(
658: [13:32:45] <swaiba> comparing to our ukfast / racksace costs
659: [13:33:03] <swaiba> its similar, but you get double the hardware and a service level
660: [13:33:09] <swaiba> on my desk to consider at the moment
661: [13:33:23] <swaiba> and I'm smilling (in a compasionate way) at all the upgrade woes
662: [13:41:37] * bemusedrat1 quit (Quit: Leaving)
663: [13:44:31] * stnvh quit (Ping timeout: 255 seconds)
664: [13:52:41] <Py3608k> Went to meeting, stood around while people talked about 1.2% and a bunch of people I don't know's birthdays (coming up), then I left.
665: [13:52:45] <Py3608k> I'm so glad we have these.
666: [13:53:31] <Py3608k> swaiba: it's only because testing... yeah. Releases seem to be just bundled and dumped.
667: [13:54:07] <Py3608k> not necessarially in a specified manner (that or the process needs changing constantly and isn't quite right).
668: [13:54:47] <Py3608k> I think SS lacks in selenium test mostly. There's a hole there, so shit not really get noticed when it's an obscure cms interface bug.
669: [13:54:55] <Py3608k> at least, that's how I percieve it.
670: [13:54:59] <Py3608k> right kinglozzer ?
671: [13:55:09] <swaiba> Py3608k - yeah you are right
672: [13:55:33] <swaiba> currently the UAT enviroment isn't meant for CI, but does work for pentest and volumen testing
673: [13:55:59] <swaiba> but that's not a disaster when you have your own internal process for that
674: [13:56:22] * blueman has joined #silverstripe
675: [13:56:40] <kinglozzer> Py3608k: No behat on 3.0, otherwise it would've been picked up
676: [13:57:06] <Py3608k> mmm, pretty fuck'n obscure :< https://github.com/silverstripe/silverstripe-cms/pull/1209
677: [13:57:27] <Py3608k> kinglozzer: behat is a test thing, not a headless useability test.
678: [13:57:31] <Py3608k> ie, tests code.
679: [13:57:35] <Py3608k> unit test
680: [13:57:36] <Py3608k> whatever
681: [13:57:37] <Py3608k> idk
682: [13:57:40] <kinglozzer> Yeah, just saying that would've picked this up
683: [13:57:53] <kinglozzer> idk what selenium is
684: [13:57:54] <kinglozzer> :P
685: [13:58:22] <Py3608k> basically a headless browser.
686: [13:58:30] <kinglozzer> So... like behat?
687: [13:58:30] <kinglozzer> :P
688: [13:58:45] <kinglozzer> oic
689: [13:58:50] <Py3608k> "Behat is a BDD framework for PHP to help you test business expectations."
690: [13:59:01] <kinglozzer> Yeah we sorta use behat like that I think
691: [13:59:10] <Py3608k> Yeah, sounds f'd up to me.
692: [13:59:19] <Py3608k> plus no way behat can check JS execution.
693: [13:59:20] <kinglozzer> e.g. https://github.com/silverstripe/silverstripe-cms/blob/3.1/tests/behat/features/create-a-page.feature
694: [13:59:41] <Py3608k> you can unit test PHP, and you can unit test JS, but selenium is for integration testing between the two I guess.
695: [13:59:43] <kinglozzer> Py3608k: https://github.com/silverstripe/silverstripe-cms/blob/3.1/.travis.yml we use selenium for behat
696: [13:59:44] <kinglozzer> lol
697: [13:59:47] * kinglozzer had no idea
698: [13:59:49] <Py3608k> oic
699: [14:05:00] <blueman> having an issue with the admin not letting go of the old file upload limit. I increased it on the server but the file interface is still enforcing the old limit. I manually increased using ->getValidator()->setAllowedMaxFileSize in one model and it uploaded files at the new level fine. However, all other upload fields are defaulting to the old value. Can't find anywhere in the codebase where it is being set manually. Any
700: [14:06:28] <Py3608k> kinglozzer: https://github.com/silverstripe-labs/silverstripe-behat-extension/blob/master/README.md#overview
701: [14:06:32] <Py3608k> see, that's technically incorrect.
702: [14:06:56] <Py3608k> ("it primarily interacts with your website through a browser")
703: [14:06:56] <kinglozzer> Yeah, that's just how we're using it
704: [14:07:52] <Py3608k> It's actually a general test framework for php. Just happens to have selenium integration it would appear... which means it's futher incorrect (" you don't need any specific integration tools to get it going with a basic SilverStripe website") as you need selenium installed and operating
705: [14:08:47] <kinglozzer> Yeah, the instructions below even mention that
706: [14:08:48] <kinglozzer> O.o
707: [14:08:57] <kinglozzer> Oh and you need Java
708: [14:08:57] <kinglozzer> :P
709: [14:09:26] <swaiba> Py3608k "plus no way behat can check JS execution" - errr what?
710: [14:09:42] <swaiba> beha can be used for controller only test like PHPUnit
711: [14:10:02] <Py3608k> swaiba: what are you trying to tell me?
712: [14:10:13] <swaiba> but it is also targeted at having the same business language used from product manger, to sales, to tester, to developer
713: [14:10:13] <kinglozzer> swaiba: On its own it can't run JS though, just like PHPUnit can't
714: [14:10:29] <Py3608k> I know what BDD and Behat are.
715: [14:10:32] <swaiba> behat is just an extension of gerkin language
716: [14:10:45] <swaiba> but the behat stuff certainly can test JS is what I'm saying
717: [14:10:49] <swaiba> with mink / selenimum
718: [14:11:04] <Py3608k> well, no. It's a test framework AROUND the Gherkin definition DSL.
719: [14:11:10] <Py3608k> well, not even a DSL really.
720: [14:11:15] * ss-helper quit (Remote host closed the connection)
721: [14:11:27] * ss-helper has joined #silverstripe
722: [14:11:34] <swaiba> ok, I've bored the ss-helper
723: [14:11:45] <kinglozzer> ss-helper: help
724: [14:11:50] <Py3608k> swaiba: yeah, behat itself cannot. Selenium can. Behat with a selenium plugin can interface with selenium, to enable it to test JS, yeah.
725: [14:11:52] <kinglozzer> ss-helper: uhhh, options
726: [14:11:53] * travis-ci has joined #silverstripe
727: [14:11:54] <travis-ci> silverstripe/silverstripe-cms#1226 (3.0.15-sitetree-hints - d6c97a5 : Loz Calver): The build passed.
728: [14:11:54] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-cms/commit/d6c97a53e407
729: [14:11:54] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/64573948
730: [14:11:54] * travis-ci has left #silverstripe
731: [14:11:57] <kinglozzer> ss-helper: commands
732: [14:11:58] <Py3608k> but technically it's selenium that's doing it.
733: [14:11:59] <kinglozzer> ffs
734: [14:12:03] <Py3608k> !commands
735: [14:12:05] <Py3608k> !help
736: [14:12:05] <ss-helper> Please provide the version, full error message and relevant code. You can put the code in http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and paste the link here.
737: [14:12:13] <Py3608k> !cmd
738: [14:12:17] <Py3608k> !wtfbish
739: [14:12:24] <swaiba> ok ok - both with behat and the helper!
740: [14:12:28] <Py3608k> !immaslapyou
741: [14:12:40] <kinglozzer> !options
742: [14:12:46] <kinglozzer> !damnitshowmewhatyoucando
743: [14:13:12] <Py3608k> kinglozzer: there is something like that, search zippy and hear me
744: [14:13:14] <Py3608k> or something
745: [14:13:39] <Py3608k> swaiba: yeah but if we're talking about plugins, then you could probably make PHPUnit interface with selenium too.
746: [14:13:48] <Py3608k> I mean, if we really get into it ;P
747: [14:14:05] <kinglozzer> !date
748: [14:14:05] <ss-helper> It's currently 30th May 2:14:05 am in New Zealand (NZST)
749: [14:14:11] <swaiba> Py3608k - I withdraw - we both meant the same thing
750: [14:14:32] <Py3608k> Yup ;)
751: [14:14:35] <logmong> it's awkward to me that NZ of all countries has made a competent CMS
752: [14:14:45] <logmong> we're kinda shitcocks about process
753: [14:14:49] <Py3608k> Why, you australian?
754: [14:14:56] <logmong> no, kiwi as
755: [14:15:07] <kinglozzer> !man
756: [14:15:07] <ss-helper> Hear me now! Commands; !manpage: See !man. !help: Displays a help message for poeple asking for help. !flush: A message about flushing. !date: The current time in NZ. !paste: A list of paste bins for people to use. !seen nick: When I last saw nick do something. !debug: A message about debugging. !man: See !manpage.
757: [14:15:08] <kinglozzer> BOOM
758: [14:15:09] <Py3608k> chur, suck it up then bro.
759: [14:15:14] <Py3608k> kinglozzer: yeh, that's the one.
760: [14:15:27] <Py3608k> we're pretty good at process.
761: [14:15:36] <logmong> nope
762: [14:15:41] <Py3608k> wrong.
763: [14:15:49] <Py3608k> You are dead wrong.
764: [14:15:55] <logmong> some of us might be, but our cultural narrative is '#8 wire' or 'do it ourselves' etc which we pride ourselves on
765: [14:16:03] <Py3608k> and?
766: [14:16:07] <logmong> which created SS, which is the antithesis to good process
767: [14:16:12] <Py3608k> all the cms's were shit, so we did it ourselves and it's good.
768: [14:16:16] <logmong> right
769: [14:16:17] <kinglozzer> !seen ss-helper
770: [14:16:17] <ss-helper> kinglozzer: They're in the channel now....
771: [14:16:23] <logmong> now you're thinking with portals
772: [14:16:32] <Py3608k> logmong: no. 8 wire doesn't mean shit.
773: [14:16:36] <Py3608k> It means pragmatic.
774: [14:16:45] <logmong> #8wire means unilateralism
775: [14:16:52] <logmong> which in the worst case leads to NIH
776: [14:17:07] <Py3608k> wrong.
777: [14:17:11] <logmong> hey, i am okay with SS and it makes me money
778: [14:17:35] <logmong> but a reoccuring pattern with my american and european clients is our lack of professionalism
779: [14:18:14] <Py3608k> wrong. It's their definition of what professionalism is.
780: [14:18:23] <logmong> if you look at my first statement, i find it awkward we're told we are not basically part of the status quo yet produce a competent tool for abstracting management of data
781: [14:18:32] <logmong> (it was a joke, and you've gone full retard)
782: [14:19:10] <Py3608k> explain that better
783: [14:19:18] <Py3608k> with use case examples
784: [14:19:51] <logmong> THE CODE COVERAGE ON THIS ANECDOTE IS INSUFFICENT
785: [14:19:59] <Py3608k> yesh
786: [14:20:34] <Py3608k> Error: column awkward is ambiguious
787: [14:22:12] <Py3608k> you find it uncomfortable like a fish out of water when dealing with americans because they look down on you as some small time insignificant who's unprofssional because you don't have a billion in the bank and 20 years of corporate history?
788: [14:22:25] <Py3608k> Yet your tool is superior to all others?
789: [14:22:31] <logmong> whoa projection
790: [14:22:32] <Py3608k> OH BOOM TOOL JOKE
791: [14:22:38] <logmong> sorry about your life mate
792: [14:22:50] <Py3608k> I asked for clarification, you didn't provide it.
793: [14:22:55] <logmong> hooker with a penis is the best tool song about commercial reality
794: [14:26:16] <kinglozzer> I have no idea what the fuck you two are talking about
795: [14:26:17] <ss-helper> Re: [silverstripe-dev] Redirects and SEO - https://groups.google.com/d/msg/silverstripe-dev/wYS_Iw0zFcM/PJe0getkY1EJ
796: [14:26:23] <kinglozzer> :P
797: [14:26:24] <Py3608k> No one ever does with this guy
798: [14:26:31] <Py3608k> He just spouts shit a lot.
799: [14:26:33] <Py3608k> like, a lot.
800: [14:27:00] <logmong> it's tough seeking Py3608k's approval
801: [14:27:04] <logmong> but i'll do it
802: [14:28:40] * blueman quit (Ping timeout: 246 seconds)
803: [14:35:14] * GioVdK has joined #silverstripe
804: [14:37:21] <GioVdK> Hello, I read that with SiteConfig you can define some custom configuration settings for the admin to change. Is there anything similar to store some data for example the last timestamp of an imported item?
805: [14:37:32] <GioVdK> (don't want to rely on the item itself as it may get deleted after importing and therefore I don't want it to be imported it again the next time the script runs)
806: [14:37:41] <Py3608k> yes
807: [14:38:58] <Py3608k> Just add a field via an extension, but don't add a form field to update it. Update it programmatically after import.
808: [14:39:03] <Py3608k> easy.
809: [14:39:12] <Py3608k> see docs.silverstripe.org
810: [14:39:20] <Py3608k> on dataextension
811: [14:42:05] <GioVdK> Thanks Py3608k, so you mean extending SiteConfig adding the new field?
812: [14:42:33] <GioVdK> without defining updateCMSFields, right?
813: [14:45:06] <Py3608k> well, extending via DataExtension, not subclassing.
814: [14:45:07] <Py3608k> yes
815: [14:47:30] <GioVdK> yep, thanks Py3608k
816: [14:51:22] * Mike123 quit (Quit: Page closed)
817: [14:56:36] * logmong is now known as longmog
818: [15:09:22] * muskie9 has joined #silverstripe
819: [15:09:27] * MichalKl_ has joined #silverstripe
820: [15:09:58] * MichalKleiner quit (Ping timeout: 244 seconds)
821: [15:11:45] <Py3608k> terryapodaca: you just call the appropriate variable in the template from what I remember.
822: [15:11:53] <Py3608k> Haven't used that module in years though.
823: [15:12:20] <Py3608k> last I did I seem to remember it not being in the template by default and having to include all the calls manually.
824: [15:14:02] <muskie9> anyone use the cloud assets module, and if yes, did you setup separate containers for dev and production environments?
825: [15:14:14] <Py3608k> nope and nfi :P
826: [15:14:26] <Py3608k> ask kinglozzer, he seems like a savvy kinda guy.
827: [15:14:40] <kinglozzer> Nope, sorry
828: [15:15:11] <terryapodaca> Py3608k: yeah, that's how I did it the first time I used the module, but haven't used it since it was for 2.4, trying to sue the 3.0+ version and everythign works so far...just can't get the calendar to show up
829: [15:17:25] <Py3608k> yeah, I seem to rmemeber something around that... back over 2 years ago :P
830: [15:17:47] <Py3608k> iirc it's a JS issue
831: [15:17:54] <Py3608k> some script not being included.
832: [15:18:01] <terryapodaca> no worries, i'll pick it back up later. it's Friday
833: [15:18:19] <Py3608k> if the base markup is there, then that's probably it. If not you might be missing some kind of <% include %> or something
834: [15:18:22] <Py3608k> idk, gl man
835: [15:18:29] <Py3608k> I avoid that thing like the plague, as you know :P
836: [15:18:53] <terryapodaca> I usually would too, client specific request
837: [15:18:56] <terryapodaca> :(
838: [15:19:22] <Py3608k> terryapodaca: already committed to it?
839: [15:19:38] <Py3608k> or could you use say... Anselm's superior service: http://addons.silverstripe.org/add-ons/titledk/silverstripe-calendar
840: [15:20:29] <terryapodaca> I'm actually using that one on a different site
841: [15:20:42] <Py3608k> :>
842: [15:20:48] <terryapodaca> I would love to be able to use it for this too...
843: [15:21:01] <terryapodaca> I just never could figure out how to get a tiny calendar on the home page
844: [15:21:07] <Py3608k> Yeah, I figured there was probably a reason you'd gone for the old trap :<
845: [15:21:09] * muskie9 quit (Read error: Connection reset by peer)
846: [15:21:18] * muskie9_ has joined #silverstripe
847: [15:21:27] <terryapodaca> :/
848: [15:21:27] <Py3608k> anyways, good luck!
849: [15:21:39] <terryapodaca> yeah, not looking at it for the rest of the weekend
850: [15:21:51] <Py3608k> Wise move.
851: [15:22:13] <terryapodaca> Unless UncleCheese gets online before I quit for the day and happens upon this conversation and he can tell me a real quick fix
852: [15:22:16] <Py3608k> Put down the workstation, go and see to the missus instead :P
853: [15:22:30] <Py3608k> terryapodaca: haha, unlikely. It's already the weekend for him.
854: [15:22:43] <terryapodaca> yeah, not getting my hopes up
855: [15:22:48] <Py3608k> 3:22 am Saturday in fact.
856: [15:23:02] <Py3608k> So unless he decides to check IRC first thing Saturday morning... haha
857: [15:23:03] <terryapodaca> he's either dead asleep or just getting home from the bars
858: [15:23:14] <terryapodaca> right
859: [15:23:19] <Py3608k> As the magic 8 balls says "It's not looking likely"
860: [15:23:34] * Eliseth quit (Ping timeout: 245 seconds)
861: [15:23:55] * muskie9_ is now known as muskie9
862: [15:24:48] <Py3608k> https://github.com/unclecheese/silverstripe-event-calendar/blob/master/templates/CalendarWidget.ss
863: [15:25:15] <Py3608k> https://github.com/unclecheese/silverstripe-event-calendar/blob/master/code/CalendarWidget.php#L40
864: [15:25:42] <Py3608k> https://github.com/unclecheese/silverstripe-event-calendar/blob/master/code/Calendar.php#L441
865: [15:26:14] <Py3608k> terryapodaca: seems like Calendar::get()->first()->CalendarWidget()
866: [15:26:27] <longmog> Py3608k chill babe
867: [15:26:29] <Py3608k> in a function on your homepage
868: [15:26:34] <Py3608k> or somethign
869: [15:26:46] <terryapodaca> now you are making me want to keep looking
870: [15:26:56] <Py3608k> that's all there is to it terryapodaca :)
871: [15:27:05] <Py3608k> well, if it isn't, then give up and go and see to the missus, ahha
872: [15:27:37] <Py3608k> Get some of that Kentucky Bourbon in ya. It's Friday. I heard that the F in Friday stands for Fiesta!#
873: [15:28:07] <Py3608k> So even if you don't drink, you can still party
874: [15:28:11] * Py3608k puts on shades
875: [15:29:02] <terryapodaca> I'll check it out
876: [15:29:18] <terryapodaca> but shouldn't it also be showing up on the Event page by default?
877: [15:29:27] <Py3608k> Maybe. I dunno.
878: [15:29:29] <terryapodaca> http://justin.cultivateapps.com/events/
879: [15:29:49] <terryapodaca> totally unstyled, but that's a default install of both SS and E-C
880: [15:30:38] <Py3608k> https://github.com/unclecheese/silverstripe-event-calendar/blob/master/code/CalendarEvent.php#L145
881: [15:31:54] <terryapodaca> looks right, but the default template has $CalendarWidget, so isn't that where the tiny calendar widget should be showing up?
882: [15:32:59] <Py3608k> Yup.
883: [15:33:09] <Py3608k> like I say, iirc it's something to do with JS errors
884: [15:33:14] <Py3608k> It's entirely JS built.
885: [15:33:20] <Py3608k> or defaults to that silly live one. Or something like that
886: [15:33:32] <Py3608k> iirc the live one doesn't work well.
887: [15:33:37] * Py3608k shrugs
888: [15:34:33] <terryapodaca> ugh...
889: [15:34:34] <terryapodaca> oh well
890: [15:36:17] <Py3608k> terryapodaca: yeh, this is in your code - https://github.com/unclecheese/silverstripe-event-calendar/blob/master/code/CalendarWidget.php#L47
891: [15:36:23] <Py3608k> the output html that is.
892: [15:37:05] <Py3608k> terryapodaca: what is the folder named?
893: [15:37:21] <Py3608k> silverstripe-event-calendar by chance?
894: [15:37:28] <terryapodaca> event-calendar
895: [15:37:32] <terryapodaca> does it need to be
896: [15:37:36] <terryapodaca> event_calendar
897: [15:37:38] <terryapodaca> ?
898: [15:37:44] <Py3608k> https://github.com/unclecheese/silverstripe-event-calendar/blob/master/code/CalendarWidget.php#L42
899: [15:37:47] <Py3608k> yes.
900: [15:37:51] <Py3608k> problem solved :D
901: [15:38:03] <Py3608k> hard coded routes ftl :<
902: [15:38:08] <kinglozzer> Ewwww
903: [15:38:11] <kinglozzer> Log an issue!
904: [15:38:19] <Py3608k> neg
905: [15:38:26] <Py3608k> let it die a death
906: [15:38:36] <Py3608k> again, eventually, please
907: [15:38:42] <Py3608k> :>
908: [15:38:59] * MichalKleiner has joined #silverstripe
909: [15:39:11] <terryapodaca> lol
910: [15:39:19] <Py3608k> happy half year birthday btw, lulz
911: [15:39:32] <terryapodaca> ahh...you noticed
912: [15:39:34] <terryapodaca> haha...
913: [15:39:36] <terryapodaca> almost there
914: [15:39:56] <Py3608k> gotta flush!
915: [15:40:20] <Py3608k> boom, prablam salved
916: [15:40:48] <terryapodaca> http://justin.cultivateapps.com/events/
917: [15:40:50] <terryapodaca> done
918: [15:40:54] * MichalKl_ quit (Ping timeout: 252 seconds)
919: [15:40:55] <Py3608k> mmhmm
920: [15:40:58] * Py3608k already saw
921: [15:41:06] <Py3608k> GG terryapodaca, enjoy your weekend :>
922: [15:41:28] <terryapodaca> now...getting it (the small calendar) on the home page, it's not as simple as using that same template tag is it?
923: [15:41:37] <Py3608k> yeh, it is.
924: [15:41:57] <kinglozzer> terryapodaca: Wait you only have two more birthdays? D:
925: [15:42:02] <Py3608k> well, provided you add a function with that name that retrieves/calls the calendar's function.
926: [15:42:18] <Py3608k> [16:26] <Py3608k> terryapodaca: seems like Calendar::get()->first()->CalendarWidget()
927: [15:42:55] <terryapodaca> < I only entered two test "repeats" and not repeat forever
928: [15:42:57] <Py3608k> add it to page.php
929: [15:43:07] <Py3608k> then it'll show on any page you want it to
930: [15:45:05] <terryapodaca> should i pull ALL his code or just function getCalendarWidget() { return Calendar::get()->first()->CalendarWidget() }
931: [15:45:32] <Py3608k> just function getCalendarWidget() { return Calendar::get()->first()->CalendarWidget() }
932: [15:49:43] <GioVdK> Hi, do someone have an example of how to use TreeDropdownField with an array as sourceObject? http://api.silverstripe.org/master/source-class-TreeDropdownField.html#67-97
933: [15:51:41] <terryapodaca> I know I should know this...but what's the new way to get the dataobjects? like, I want function getUpcomingEvents() { return DataObject::get_one("Calendar")->upcomingEvents(1); } was the old way
934: [15:54:14] <muskie9> Calendar::get()->first()->upcomingEvents(1) ?
935: [15:54:29] <Py3608k> GioVdK: just pass it the array.
936: [15:54:48] <Py3608k> terryapodaca: what muskie9 said.
937: [15:54:52] <GioVdK> I get singleton() passed bad class_name: array ( 'A' => 'B', )
938: [15:55:04] <Py3608k> GioVdK: keys are values, values are textual display
939: [15:55:06] <kinglozzer> You can't use TreeDropdownField like that
940: [15:55:21] <Py3608k> oh, TREEdropdownfield.
941: [15:55:28] <Py3608k> derp, sorry
942: [15:55:56] <Py3608k> GioVdK: it's for use with dataobjects that have Heirarchy extension applied.
943: [15:56:00] <Py3608k> Hierarchy
944: [15:56:06] <Py3608k> one of those two, I can never remember
945: [15:56:16] <GioVdK> Yep but the docs says "In this case, the field will act like show a flat list of tree items"
946: [15:56:40] <terryapodaca> the ->first() means it's just going to return the events of the first calendar...so if I have multiple calendars I'll need to specify which one, correct...so if I need 4 events i simplay change upcomingEvents(4)
947: [15:56:40] <GioVdK> I'd actually want to use it to show only some page types (holders to be treated as categories)
948: [15:56:41] <Py3608k> mm, I first.
949: [15:56:45] <GioVdK> so you can select the "category" from it
950: [15:56:55] <Py3608k> terryapodaca: ->byID
951: [15:56:58] <Py3608k> ()
952: [15:57:19] <Py3608k> terryapodaca: generally a site only has one calendar.
953: [15:57:31] <Py3608k> not always true, but... gets exceedingly complex if it doesnt'.
954: [15:57:33] <terryapodaca> right, but since I won't have more than one, I can still use that same syntax just changing the "limit"
955: [15:57:44] <kinglozzer> GioVdK: That's possible, yeah. You can disable specific items, so you'd disable everything *except* your page type you want to be selectable
956: [15:57:46] <Py3608k> just get the first
957: [15:57:51] <Py3608k> terryapodaca: or limit(1)
958: [15:59:29] <Py3608k> terryapodaca: http://docs.silverstripe.org/en/developer_guides/model/data_model_and_orm/#limit
959: [16:00:19] <GioVdK> kinglozzer: should I use the filter callback?
960: [16:00:52] <kinglozzer> GioVdK: $field = TreeDropdownField::create('MyFieldName', 'Field Title', 'SiteTree'); $field->setDisableFunction(function($item) { return ($item instanceof SelectablePage) ? true : false; });
961: [16:00:55] <kinglozzer> Or something like that
962: [16:01:00] <kinglozzer> http://api.silverstripe.org/3.1/class-TreeDropdownField.html#_setDisableFunction
963: [16:01:21] * swaiba quit (Remote host closed the connection)
964: [16:01:52] <kinglozzer> Basically your callback should return true if you want the item disabled
965: [16:02:23] <kinglozzer> If you use filter, it removes the page from the list. Meaning that if you have Parent > Child, and Parent is removed by the filter, Child is also removed even if you don't want it to be
966: [16:02:35] <kinglozzer> Hence why I added setDisableFunction :D
967: [16:03:43] <GioVdK> oh :) cool, thanks
968: [16:04:03] <Py3608k> after five.
969: [16:04:05] <Py3608k> time to pack up!
970: [16:04:16] <terryapodaca> BOOM!
971: [16:04:17] <terryapodaca> http://justin.cultivateapps.com/
972: [16:04:17] <Py3608k> gg have good weekends
973: [16:04:21] <kinglozzer> ciao Py3608k
974: [16:04:26] <terryapodaca> thanks Py3608k
975: [16:04:27] <Py3608k> 2ez terryapodaca :>
976: [16:04:31] <Py3608k> ciao kinglozzer
977: [16:04:36] * Py3608k quit ()
978: [16:04:38] <terryapodaca> later all!
979: [16:04:44] <terryapodaca> thanks for the help!
980: [16:04:44] <kinglozzer> cya
981: [16:06:07] * terryapodaca quit (Quit: Leaving.)
982: [16:16:21] * DimiStripe has joined #silverstripe
983: [16:18:14] * Mike123 has joined #silverstripe
984: [16:19:15] <Mike123> in administration , SiteTree language switch isn't working, the dropdown work fines but nothing happens, on console log no error
985: [16:21:15] * kinglozzer quit ()
986: [16:32:49] * Mike123 quit (Quit: Page closed)
987: [16:36:07] * Alboes quit (Remote host closed the connection)
988: [16:51:35] * GioVdK quit (Ping timeout: 256 seconds)
989: [17:36:16] * Liquide has joined #silverstripe
990: [18:11:34] * ss-helper quit (Remote host closed the connection)
991: [18:11:47] * ss-helper has joined #silverstripe
992: [18:35:32] * UndefinedOffset quit (Quit: Leaving.)
993: [18:49:31] * UndefinedOffset has joined #silverstripe
994: [19:15:00] * mobiusnz quit (Quit: Leaving.)
995: [19:30:55] * sealan has joined #silverstripe
996: [19:55:33] * DimiStripe quit (Quit: DimiStripe)
997: [19:56:43] * sealan quit (Remote host closed the connection)
998: [19:57:20] * sealan has joined #silverstripe
999: [20:09:42] * sealan quit (Remote host closed the connection)
1000: [20:12:55] * sealan has joined #silverstripe
1001: [20:14:49] * UndefinedOffset quit (Read error: Connection reset by peer)
1002: [20:15:54] * sealan quit (Remote host closed the connection)
1003: [20:16:20] * sealan has joined #silverstripe
1004: [20:26:54] * sealan quit (Remote host closed the connection)
1005: [20:31:41] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1006: [20:42:19] * UncleCheese has joined #silverstripe
1007: [20:49:19] * sealan has joined #silverstripe
1008: [20:53:13] <UncleCheese> who do you all rate for SS hosting?
1009: [20:53:31] <UncleCheese> digital ocean is becoming problematic.. i keep getting attacked, and i'm just not a sysadmin
1010: [21:02:08] * sealan quit (Remote host closed the connection)
1011: [21:22:45] * veb has joined #silverstripe
1012: [21:43:24] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1013: [21:53:04] * eldoleo has joined #silverstripe
1014: [21:55:29] * eldoleo quit (Remote host closed the connection)
1015: [22:00:35] * sealan has joined #silverstripe
1016: [22:03:19] * Azure quit (Max SendQ exceeded)
1017: [22:05:37] * Azure has joined #silverstripe
1018: [22:18:01] * sealan quit (Remote host closed the connection)
1019: [22:45:47] * newperson has joined #silverstripe
1020: [22:46:44] * newperson quit (Client Quit)
1021: [22:52:50] * joelpittet has joined #silverstripe
1022: [22:53:41] * joelpittet quit (Client Quit)
1023: [22:55:18] * ss-helper quit (Ping timeout: 246 seconds)
1024: [23:03:19] * ss-helper has joined #silverstripe
1025: [23:12:16] * minizeka quit (Ping timeout: 246 seconds)
1026: [23:51:05] * micmania1 has joined #silverstripe
1027: [23:53:56] * UncleCheese has joined #silverstripe

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