#silverstripe IRC Log

IRC log for 16 August 2013

All timestamps are in UTC.

1: [00:00:08] <ss23> Coaxing debugging information out of clients is incredibly horrible
2: [00:00:15] <ss23> "We get it coming up with Syntax Error"
3: [00:00:19] <ss23> "Does anything else come up?"
4: [00:00:27] <ss23> "No, nothing else. Just Syntax Error - Invalid Character"
5: [00:00:32] * mobiusnz has left #silverstripe
6: [00:00:33] <ss23> MASDFNASDF THAT IS MORE THINGS ISN'T IT?
7: [00:03:10] <lewellyn> ss23: welcome to reality.
8: [00:03:18] <lewellyn> and irc more.
9: [00:03:31] <guzzlefry> Is there a way to get the submenu of a parent page in the template?
10: [00:03:33] <lewellyn> you get things like "i want to X. my data looks like $foo"
11: [00:03:46] <ss23> lewellyn: I can abusae the shit out of people on IRC
12: [00:03:47] <lewellyn> of course, they really want to do Y and their real data looks nothing like the example.
13: [00:03:49] <ss23> I can't do that on IRC
14: [00:03:50] <ss23> :<
15: [00:04:09] <guzzlefry> I basically want to grab all of the sibling pages, if that makes sense, and form a menu with them.
16: [00:04:28] <ss23> guzzlefry: Sounds very possible!
17: [00:04:32] <ss23> I don't know how to though :)
18: [00:04:51] <guzzlefry> I'm sure it'll be something I'll later say "I should have guessed that!" over. :P
19: [00:09:14] <ss23> simon_w: Did you want lunch today?
20: [00:09:26] * zippy__ quit (Ping timeout: 256 seconds)
21: [00:09:38] <simon_w> ss23, yes
22: [00:11:10] <ss23> simon_w: Sweet ^.^
23: [00:13:25] * atmos has joined #silverstripe
24: [00:15:10] <atmos> ss23: hey, my PHP isn't the strongest - but can you exmplain what the [4] and [2] represent? Is this the order of which 'attributes' are accessed? http://www.sspaste.com/paste/show/520d6dd144169
25: [00:15:54] <ss23> atmos: They're like, uh, the 5th element in that array
26: [00:16:48] <ss23> atmos: So likely, imagine if I say "I'm going to have an array, and it'll have Name, Birthday, Email", and it looks like $person = array('Stephen', 'April', 'stephen@silverstripe.com');, then in the code, you might just be like "if ($person[1]) { // if the person has a birthday ... }
27: [00:17:07] <atmos> ss23: ah I see
28: [00:17:27] <ss23> atmos: So in that case, [4] is a description, [2] is a title. Probably 0, 1, 3, are various other things that don't matter
29: [00:17:45] <guzzlefry> Answer to my question, kind of :P : <% loop $ChildrenOf(<my-page-url>) %>...<% end_loop %>
30: [00:17:46] <atmos> ss23: perfect - thanks
31: [00:37:36] * Peavers has joined #silverstripe
32: [00:37:41] <Peavers> yoall
33: [00:37:54] <ss23> yaoll
34: [00:37:55] <guzzlefry> oh, <% with $Parent %><if $Children%><% loop $Children %><% end_loop %><% end_if %><% end_with %> plus HTML markup.
35: [00:38:05] <Peavers> ss23 I've got another bone to pick with you
36: [00:38:10] <guzzlefry> evening
37: [00:38:14] <Peavers> You're just at the end of my stick every day.
38: [00:38:24] <ss23> :O
39: [00:38:31] <Peavers> naah not really
40: [00:38:31] <ss23> Peavers: I don't wanna be anywhere near your stick!
41: [00:38:35] <Peavers> lol
42: [00:38:49] <Peavers> dude, linux/bash question for you
43: [00:38:58] <Peavers> no nevermind
44: [00:39:02] <ss23> lol
45: [00:39:06] <Peavers> I don't even know what my question reall is
46: [00:39:08] <Peavers> really*
47: [00:39:20] <Peavers> how to return to the calling function in a bash script?
48: [00:40:15] <ss23> return?
49: [00:40:42] <Peavers> na nevermind
50: [00:40:45] <Peavers> I'm not wording it properly
51: [00:40:50] <Peavers> because I don't know what I'm trying to do lol
52: [00:45:45] <Peavers> okay, I've got a function called "menu" which listens for user input etc, the users enters "1" and the script goes and installs something then returns to menu by calling menu at the end of "1"s function
53: [00:45:48] <Peavers> thats all fine
54: [00:46:06] <Peavers> but what if I want to have an option to run all the scripts one after another, how do I go about that without setting flags?
55: [00:46:23] <Peavers> I can't just list all the function calls in a row because they return to "menu" and then stop..
56: [00:51:08] * RojoD is now known as rojod
57: [00:52:28] <simon_w> Peavers, refactor so menu's a loop, and the other functions don't call it?
58: [00:53:13] <Peavers> oh yeah
59: [00:53:14] <Peavers> duh
60: [00:53:40] <simon_w> Also stops your callstack from getting massive :p
61: [00:53:57] <ss23> I got a big callstack.
62: [00:54:12] <simon_w> I've got HHVM processing each request twice
63: [00:54:14] <Peavers> Please. There are children.
64: [00:54:28] <ss23> Peavers: The more children, the bigger my callstack gets
65: [00:54:29] <ss23> ;)
66: [00:54:47] <ss23> simon_w: Why?
67: [00:54:51] <ss23> simon_w: Is that... intentional?
68: [00:54:54] <simon_w> I don't know
69: [00:54:59] <simon_w> It's not supposed to
70: [00:55:08] <ss23> MORE BUG FIXES AND PULL REQUESTS
71: [00:55:14] <atmos> why does everything have to WORK on Friday?
72: [00:55:24] <ss23> atmos: Dude, would you rather all the servers DIED on a friday?!
73: [00:56:18] <atmos> ss23: That's what sysadmins are for :D
74: [00:56:23] <ss23> XD
75: [00:57:15] <simon_w> AHA! Trying to load a CSS file that doesn't exist
76: [00:57:22] <ss23> lol
77: [00:57:24] <ss23> hate that
78: [00:57:30] <ss23> having one extra 404 == so fucking expensive
79: [00:57:32] <ss23> Well
80: [00:57:34] <ss23> In Silverstripe it is
81: [00:58:40] <atmos> ss23: going back to my OP - if that is an extension of a class - would they array be the one defined the parent?
82: [00:59:52] <ss23> atmos: In that case, they're coming from $detail, which is passed in to that function as a parameter. You probably would watn to grep for '->update(' or something (which would be some kind of method call to the update method
83: [01:00:02] <ss23> atmos: Or if you have na IDE, it might tell you all the places that method gets called from automatically
84: [01:00:42] <atmos> ss23: nice
85: [01:01:29] <atmos> ss23: just wanted to be clear on what table it was relating to ultimately
86: [01:07:16] * zippy__ has joined #silverstripe
87: [01:07:20] <zippy__> Must… stop…looking… at… news….websites!!
88: [01:07:25] <ss23> lol
89: [01:07:28] <ss23> zippy__: The Civilian
90: [01:07:28] <ss23> :D
91: [01:08:20] <zippy__> It's like everytime I refresh the browser to check the code, I tab open a new window and hit stuff or reddit!
92: [01:08:34] <simon_w> zippy__, and that's what your hosts file is for
93: [01:09:13] <zippy__> might have to get back into doing that
94: [01:09:48] <simon_w> ss23, 5 minutes
95: [01:10:53] <ss23> kk
96: [01:10:53] <ss23> :<
97: [01:10:55] <ss23> I just hurt my foot
98: [01:10:57] <simon_w> ss23, hurry up and respond so I can pack my laptop
99: [01:11:00] <ss23> OKAY
100: [01:11:01] <ss23> ;_;
101: [01:11:02] <ss23> simon_w: OKAY
102: [01:11:08] <simon_w> Okay, so it'll be 5 minutes from now :p
103: [01:11:14] <ss23> I was rolling around around just rolled the wheel part of my chair into my foot and it hurt really bad
104: [01:11:21] <ss23> I'm not used to vans, they have like no padding
105: [01:11:23] <ss23> :<
106: [01:11:35] * simon_w quit (Quit: This computer has gone to sleep)
107: [01:14:17] <ss23> bbl noms :D
108: [01:15:16] <zippy__> and blocked
109: [01:19:15] * ChaBuku has joined #silverstripe
110: [01:24:37] * UncleCheese quit (Quit: UncleCheese)
111: [01:33:08] * Jayden90 has joined #silverstripe
112: [01:36:11] <Jayden90> How do can you use the title of a page that is saved via a TreeDropdownField in a gridfield record as a summary_field?
113: [01:36:38] <Jayden90> something.Title?
114: [01:50:02] * Stomach quit (Quit: Leaving.)
115: [01:50:55] <zippy__> Yes
116: [01:51:17] <zippy__> whatever you called $has_one = array('Foo' => 'Page'); or whatever, then Foo.Title
117: [01:52:04] * Stomach has joined #silverstripe
118: [01:56:43] <Jayden90> Thanks zippy, just tried that and getting "Uncaught Exception: Object->__call(): the method 'fortemplate' does not exist on 'ServicePage'"
119: [01:56:52] <Jayden90> http://www.sspaste.com/paste/show/520d858b23191
120: [01:57:01] <Jayden90> I'm sure its something simple
121: [01:57:53] <Jayden90> tried a few combinations now
122: [01:58:11] * howardgrigg quit (Remote host closed the connection)
123: [02:01:28] * toddmorey has joined #silverstripe
124: [02:03:06] <toddmorey> Man, I'm really at a loss. I have an email that needs to go out to members, but the site reports that it can't find the template. But locally, the same thing works fine. I've done a ?flush=all and even cleared the cache manually. The template file is on the server and I've checked and double checked the name of the template.
125: [02:03:19] <toddmorey> Does the emailer look for templates only in a specific folder?
126: [02:03:55] <atmos> toddmorey: where is your template stored?
127: [02:04:26] <toddmorey> I have it in the themes/theme/templates/layout/ folder, but I'm happy to put it anywhere
128: [02:04:42] <toddmorey> I've also tried the includes folder
129: [02:05:05] <toddmorey> I've never had the emailer at a loss to find a template
130: [02:05:17] <atmos> toddmorey: might not work for you, but I have an EmailReciept.ss that gets sent out to members and it's stored in /themes/theme/templates/Email/ss file
131: [02:05:33] <toddmorey> hmmm… that's a good thought
132: [02:05:35] <atmos> seems to work for me - mind you I didn't build this
133: [02:07:17] <toddmorey> atmos, if you don't mind me asking, you still call it with :
134: [02:07:17] <toddmorey> $email->setTemplate("EmailReciept");
135: [02:07:18] <toddmorey> right?
136: [02:07:32] <toddmorey> (no directory or extension)
137: [02:07:35] <atmos> toddmorey: not 100%, but more than likely yeah
138: [02:07:41] <toddmorey> so strange
139: [02:07:43] <atmos> try anyway
140: [02:07:49] <toddmorey> will do, thanks
141: [02:07:56] <atmos> toddmorey: I know, I'm just guessing mostly
142: [02:11:28] <toddmorey> hey, man, every guess helps. I'd run out of them. :)
143: [02:31:27] <ss23> wow
144: [02:31:42] <zippy__> shit
145: [02:31:45] <zippy__> eq :)
146: [02:31:57] <zippy__> ewww thats a sick feeling
147: [02:32:07] <zippy__> something somewhere is getting rattled to balls
148: [02:32:16] <ss23> fuck
149: [02:32:16] <ss23> me
150: [02:32:18] <ss23> holy shit
151: [02:32:20] <ss23> eq in wellington
152: [02:32:21] <ss23> really big
153: [02:32:24] <ss23> like
154: [02:32:26] <ss23> jesus fuck me
155: [02:32:29] <zippy__> I bet, I felt that in nelson
156: [02:35:44] <Stomach> holy fuck
157: [02:35:50] <Stomach> 6.5 at the moment on geonet
158: [02:35:52] <Stomach> that was crazy
159: [02:36:10] * simon_w|air quit (Ping timeout: 268 seconds)
160: [02:36:24] <ss23> lol
161: [02:36:25] <ss23> yes
162: [02:36:35] <zippy__> gone up to 6.9
163: [02:40:02] <atmos> zippy__: same here in Richmond
164: [02:40:21] <zippy__> atmos: Im in Richmond also, some people dunno where Richmond is thou
165: [02:40:36] <zippy__> Richmond is almost a suburb of Nelson
166: [02:40:43] <atmos> zippy__: I'm over at TDC - whole building wobbled
167: [02:41:17] <zippy__> Aren't they getting a room in that new building being built just over the road for Civil defense?
168: [02:41:34] <atmos> zippy__: yup
169: [02:41:35] <zippy__> 6.2 in the end
170: [02:41:44] <zippy__> 8km deep thou, dang
171: [02:41:46] <spronk> oo
172: [02:41:49] <spronk> a big one?
173: [02:41:58] <zippy__> yea
174: [02:42:04] <zippy__> http://www.geonet.org.nz/quakes/region/newzealand/2013p613797
175: [02:42:40] <atmos> lol geonet is having issues
176: [02:43:39] <zippy__> ss23: Bailing the office?
177: [02:43:42] <spronk> just when you thought it was safe
178: [02:43:43] <Jayden90> Found the solution to my earlier problem for those curious, had to create a method: http://www.sspaste.com/paste/show/520d858b23191
179: [02:43:57] <zippy__> said it before, say it again. Screw living in Wellington
180: [02:44:15] <spronk> amen to that
181: [02:44:19] * spronk prefers christchurch
182: [02:44:22] <spronk> :P
183: [02:44:26] <ss23> zippy__: Nup
184: [02:44:36] <zippy__> spronk: been there, done all that
185: [02:44:37] <ss23> zippy__: Clients have more tickets, ss23 has more tickets to close
186: [02:44:40] <ss23> #silverstripe - We actually do work.
187: [02:44:46] <zippy__> lol
188: [02:44:48] * Peavers quit (Ping timeout: 276 seconds)
189: [02:45:07] * UncleCheese has joined #silverstripe
190: [02:45:11] <ss23> UncleCheese: BASDFONASDF
191: [02:45:16] <ss23> UncleCheese: YOU FEELIN' IT NOW?
192: [02:45:16] <ss23> :D
193: [02:45:24] <UncleCheese> jesus fuck
194: [02:45:29] <zippy__> :)
195: [02:45:40] <ss23> Did you ditch your building, UncleCheese?
196: [02:45:43] <spronk> :D
197: [02:45:47] * willr quit (Quit: willr)
198: [02:45:56] <UncleCheese> i was actually on the street
199: [02:46:01] <ss23> oh
200: [02:46:03] <ss23> this one
201: [02:46:04] <ss23> lets guess
202: [02:46:06] <ss23> 5. something
203: [02:46:11] <zippy__> mmm I feeling it
204: [02:46:18] <zippy__> mid to high 5
205: [02:46:27] <zippy__> 5.7
206: [02:46:30] <zippy__> na. 5.6
207: [02:46:55] <zippy__> ah well, you guys will be back to the aftershocks eh
208: [02:47:02] <atmos> I judge magnitude on how much my monitor sways
209: [02:47:14] <spronk> http://geonet.org.nz/quakes/drums
210: [02:47:16] <spronk> sheesh
211: [02:47:33] <zippy__> shit has been shaken
212: [02:47:35] <ss23> haha atmos
213: [02:47:38] <zippy__> is the summary there
214: [02:48:11] <atmos> I don't even want to go near twitter - shit gets old pretty quickly
215: [02:48:28] <atmos> unless it's photos of damage - aka - coke machines falling over
216: [02:49:43] <ss23> lol atmos
217: [02:49:50] <ss23> A door opened here
218: [02:53:55] <zippy__> Supermarket / alcohol shops are always good quality - instant mess
219: [02:54:11] <ss23> dammit!
220: [02:54:42] <ss23> I was going to go buy wine tonight
221: [02:54:44] <atmos> woah - a house collpased in Seddon
222: [02:55:30] <ss23> :O
223: [02:55:35] <zippy__> big bad wolf - not required
224: [02:55:41] <zippy__> hopefully no-one injured
225: [02:56:02] <atmos> ss23: is there any documentation on the search code for SilentOne by any chance? I have everything working bar that
226: [02:56:38] * simon_w|air has joined #silverstripe
227: [02:57:22] <zippy__> hi simon_w|air
228: [02:57:28] <zippy__> shakey?
229: [02:58:14] <ss23> atmos: Only the stuff I gave you
230: [02:58:46] <atmos> ss23: sweet
231: [03:08:37] * howardgrigg has joined #silverstripe
232: [03:09:45] <zippy__> weee
233: [03:10:01] <atmos> wobble
234: [03:10:14] <ss23> okay
235: [03:10:15] <ss23> time to go home
236: [03:10:40] <Stomach> yeah
237: [03:10:41] <Stomach> i agree
238: [03:13:10] * howardgrigg quit (Ping timeout: 268 seconds)
239: [03:13:17] <atmos> zippy__: where are you in Richmond?
240: [03:14:02] <zippy__> At home
241: [03:14:14] <zippy__> King St area
242: [03:33:28] * priithansen quit (Quit: priithansen)
243: [03:35:23] * cloph_away has joined #silverstripe
244: [03:35:42] * cloph quit (Ping timeout: 256 seconds)
245: [03:36:28] * zippy__ quit (Ping timeout: 264 seconds)
246: [03:37:05] <spronk> so
247: [03:37:06] <spronk> who died?
248: [03:38:12] <atmos> spronk: Walt Jr
249: [03:47:21] <spronk> lol
250: [03:50:49] <spronk> everyone evac'd buildings? gone all quiet here
251: [03:50:50] <atmos> "students cowered" http://www.stuff.co.nz/national/photos/9051995/Earthquake-August-16 lol - COWARDS!
252: [03:51:22] <atmos> spronk: I'm guessing all the Welli guys did
253: [03:54:05] <spronk> mm
254: [03:59:54] * Jayden90 quit (Quit: Jayden90)
255: [04:00:36] <ss23> lol
256: [04:00:44] <ss23> naw like
257: [04:00:48] <ss23> some people in our office freaked the fuck out
258: [04:01:01] <ss23> Most were fine though
259: [04:02:58] <atmos> BAH - not getting any search results
260: [04:03:03] <atmos> fffffff
261: [04:05:23] <spronk> mm
262: [04:12:14] * swordsmanz has joined #silverstripe
263: [04:26:09] * UncleCheese quit (Quit: UncleCheese)
264: [04:27:42] * atmos quit (Quit: Page closed)
265: [04:32:07] * DigNZ quit (Quit: DigNZ)
266: [04:41:12] * DigNZ has joined #silverstripe
267: [04:41:13] * DigNZ quit (Remote host closed the connection)
268: [04:41:27] * DigNZ has joined #silverstripe
269: [04:47:17] * Shrike_Finland quit (Quit: Leaving.)
270: [04:47:50] * DigNZ quit (Quit: DigNZ)
271: [04:49:49] * DigNZ has joined #silverstripe
272: [04:49:51] * DigNZ quit (Remote host closed the connection)
273: [04:49:58] * nickmolhoek quit (Quit: nickmolhoek)
274: [04:50:04] * DigNZ has joined #silverstripe
275: [04:53:17] * coldblooded01 quit (Quit: coldblooded01)
276: [04:53:31] * DigNZ quit (Client Quit)
277: [05:09:22] * howardgrigg has joined #silverstripe
278: [05:13:31] * howardgrigg quit (Ping timeout: 246 seconds)
279: [05:19:23] * Jayden90 has joined #silverstripe
280: [05:29:34] * Shrike_Finland has joined #silverstripe
281: [05:31:37] * mayko quit (Read error: Connection reset by peer)
282: [05:32:00] * mayko has joined #silverstripe
283: [05:36:41] * ChaBuku quit (Quit: Leaving)
284: [05:38:47] * simon_w has joined #silverstripe
285: [05:38:52] * Stomach quit (Quit: Leaving.)
286: [05:40:07] <guzzlefry> private static $has_one = array( "PDF" => "File" ); <--- is this more or less correct?
287: [05:40:20] <guzzlefry> The document on File is kind of..emptyish. :P
288: [05:41:25] * mayko quit (Read error: Connection reset by peer)
289: [05:41:48] * Stomach has joined #silverstripe
290: [05:42:37] * openbees has joined #silverstripe
291: [05:43:44] * mayko has joined #silverstripe
292: [05:44:23] * toddmorey quit (Quit: Leaving.)
293: [05:46:57] * toddmorey has joined #silverstripe
294: [05:47:55] * mayko quit (Read error: Connection reset by peer)
295: [05:48:14] * mayko has joined #silverstripe
296: [05:48:47] <simon_w|air> So, earthquakes. Took those of us waiting at the airport about half the length of the thing to realise what was going on
297: [05:48:54] <ss23> :D
298: [05:49:23] <ss23> simon_w|air: I was walking home and didn't feel the 6.0 -> http://geonet.org.nz/quakes/region/wellington/2013p614135
299: [05:49:31] <ss23> walking == immune to earthquakes!
300: [05:49:44] <simon_w|air> Well, yeah :p
301: [05:49:53] <simon_w|air> We'd just gotten back
302: [05:50:24] <simon_w|air> Bus trip that normally takes half an hour ended up taking just over 2
303: [05:53:05] <guzzlefry> You don't have trouble standing during an earthquake?
304: [05:53:13] <simon_w> Why would you?
305: [05:53:24] <guzzlefry> Because the ground is shaking?
306: [05:53:28] <simon_w> So?
307: [05:53:39] <simon_w> It's like walking in a moving bus
308: [05:53:47] <guzzlefry> oh, good point
309: [05:58:39] <guzzlefry> Hrm, What is the function of the $items parameter of UploadField::__construct()?
310: [05:58:49] <ss23> :D
311: [05:58:51] <ss23> another big one
312: [05:58:58] <ss23> my wine survived
313: [05:58:59] <ss23> :D
314: [05:59:04] <guzzlefry> \o/
315: [05:59:11] * howardgrigg has joined #silverstripe
316: [06:02:54] * kerosene has joined #silverstripe
317: [06:02:54] * kerosene is now known as kerobo
318: [06:04:02] * toddmorey quit (Quit: Leaving.)
319: [06:08:07] <simon_w|air> Mmm, pizza
320: [06:12:18] * howardgrigg quit (Read error: Connection reset by peer)
321: [06:12:30] * openbees quit (Ping timeout: 245 seconds)
322: [06:12:49] * howardgrigg has joined #silverstripe
323: [06:15:06] * Stomach quit (Quit: Leaving.)
324: [06:15:11] * openbees has joined #silverstripe
325: [06:18:02] <ss23> simon_w|air: WHERE'S MINE!
326: [06:18:02] <ss23> :<
327: [06:18:14] <simon_w|air> On the floor!
328: [06:18:25] <ss23> XD
329: [06:19:42] * Stomach has joined #silverstripe
330: [06:31:55] * Stomach quit (Quit: Leaving.)
331: [06:47:31] * simon_w|air quit (Quit: This computer has gone to sleep)
332: [06:48:33] * chillu has joined #silverstripe
333: [06:50:20] * chillu quit (Read error: Connection reset by peer)
334: [06:50:24] * chillu23 has joined #silverstripe
335: [07:01:56] * ARNHOE has joined #silverstripe
336: [07:10:27] * howardgrigg quit (Remote host closed the connection)
337: [07:11:25] * zfmf1 has joined #silverstripe
338: [07:12:37] * PigeonFriend has joined #silverstripe
339: [07:17:10] * ARNHOE quit (Ping timeout: 240 seconds)
340: [07:22:06] * ARNHOE has joined #silverstripe
341: [07:24:22] * violetina has joined #silverstripe
342: [07:46:04] * openbees quit (Ping timeout: 264 seconds)
343: [07:55:56] <ARNHOE> Anyone able to explain me what ->relation('Authors'); does? https://github.com/silverstripe/addons.silverstripe.org/blob/master/mysite/code/dataobjects/Addon.php on line 60. Haven't seen that one before and trying to figure it out
344: [07:58:30] * Stomach has joined #silverstripe
345: [07:59:17] * openbees has joined #silverstripe
346: [07:59:29] <simon_w> ARNHOE, https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/DataList.php#L890-L905
347: [08:02:57] <ARNHOE> but simon_w I read that, but what does it exactly do? Can't you call Members already in a group loop because it belongs many many / many_many ?
348: [08:03:33] <simon_w> ARNHOE, this is on a DataList, not a DataObject
349: [08:03:42] * violet- has joined #silverstripe
350: [08:05:13] <ARNHOE> So with return $this->Versions()->relation('Authors');, you only need to loop $Authors [public function Authors()]. Where I usually would $Versions.Authors for example?
351: [08:05:42] <simon_w> Well, where you'd usually loop $Versions then loop $Authors inside that
352: [08:06:38] <ARNHOE> Ah yeah, but great that can definitely clean up my code alot
353: [08:06:40] * violetina quit (Ping timeout: 245 seconds)
354: [08:09:32] * kinglozzer has joined #silverstripe
355: [08:20:56] * howardgrigg has joined #silverstripe
356: [08:25:14] * NobrainerWeb has joined #silverstripe
357: [08:25:20] * howardgrigg quit (Ping timeout: 246 seconds)
358: [08:30:04] * Stomach quit (Quit: Leaving.)
359: [08:38:54] * simon_w|air has joined #silverstripe
360: [08:42:00] * micmania1 has joined #silverstripe
361: [08:43:36] * lobarvaz has joined #silverstripe
362: [08:45:50] * Jayden90 quit (Quit: Jayden90)
363: [08:53:06] <Zauberfisch> good morning gents
364: [08:56:03] <micmania1> good morning
365: [09:06:31] <simon_w|air> Wobble wobble!
366: [09:11:01] * fen_ has joined #silverstripe
367: [09:11:04] <fen_> Hi need a help
368: [09:16:25] <fen_> hell everybody
369: [09:16:31] <fen_> hello
370: [09:18:05] <fen_> need a help in admin request list search
371: [09:23:02] * simon_w|air quit (Quit: This computer has gone to sleep)
372: [09:25:31] * fen_ quit (Quit: Page closed)
373: [09:25:45] <Zauberfisch> ...
374: [09:26:19] * jen has joined #silverstripe
375: [09:26:43] * jen is now known as Guest65221
376: [09:26:53] <Guest65221> hi everybody
377: [09:29:27] * Stomach has joined #silverstripe
378: [09:29:54] <Zauberfisch> that's the 4th time you said hi, and the 2nd time you told us you need help, I think you can get onto actually asking a question now :P
379: [09:30:03] * Stomach quit (Client Quit)
380: [09:30:46] <DesignerX> Zauberfisch: :D
381: [09:31:20] <DesignerX> I learnt this here, login to IRC & ask the question.. anyone with an answer will reply
382: [09:32:44] * howardgrigg has joined #silverstripe
383: [09:35:29] * howardgrigg quit (Remote host closed the connection)
384: [09:37:33] * SightUnseen has joined #silverstripe
385: [09:37:45] * SightUnseen has left #silverstripe
386: [09:43:23] * priithansen has joined #silverstripe
387: [09:48:37] <Guest65221> hi need a help in request list search
388: [09:49:13] <Guest65221> in admin side
389: [09:50:16] <Guest65221> request list searc hwit ha keyword
390: [09:52:05] <Guest65221> hello anybody there
391: [09:53:05] <openbees> Guest65221 can you please give us more detail info
392: [09:53:27] <Guest65221> yes
393: [09:53:42] <Guest65221> it is like we need to implemnt a search with keyword
394: [09:54:01] <Guest65221> in cms which will search all the database fields
395: [09:54:37] <Guest65221> we have a list of details like employye name, employee age , employee country etc
396: [09:55:17] <Guest65221> we need to put a text box and typing a keyword in search box need to search employye name, employee age , employee country etc
397: [09:59:01] <micmania1> Guest65221, use ModelAdmin then define the fields you'd like to be searchable in $searchable_fields on the DataObject.
398: [09:59:27] <openbees> an example to customize search is here http://doc.silverstripe.org/framework/en/reference/modeladmin
399: [10:06:28] * micmania1 quit (Quit: Leaving)
400: [10:08:23] <Guest65221> ok]
401: [10:08:32] <Guest65221> any implmentation tutotiral
402: [10:12:48] * micmania1 has joined #silverstripe
403: [10:14:53] <ARNHOE> Anyone worked with adding extra forms through js in silverstripe for a application that gets saved into a dataobject?
404: [10:16:05] <ARNHOE> Multivaluefield only allows 1 or two extra fields, while I need 4
405: [10:16:21] * zfmf1 has left #silverstripe
406: [10:18:42] <Zauberfisch> Guest65221: try searching for SilverStripe ModelAdmin
407: [10:19:23] <Zauberfisch> i think you should find some infos on how to use it
408: [10:38:46] <micmania1> ARNHOE, do you mean in the CMS?
409: [10:39:36] <ARNHOE> no on the frontend
410: [10:40:01] <Zauberfisch> ARNHOE: did it in 2.4, had to write quiet some code
411: [10:40:13] <Zauberfisch> but its to long ago to recall any details
412: [10:40:18] <ARNHOE> hmpf oke, then that sounds like not really something for me
413: [10:42:46] <Guest65221> in 3.1 hoe t ouse the keyword search in cms
414: [10:44:27] <kinglozzer> Same as 3.0
415: [10:44:43] <kinglozzer> Except private static $searchable_fields instead of public
416: [10:45:00] * pippy has joined #silverstripe
417: [10:46:14] * pippy_ quit (Ping timeout: 240 seconds)
418: [10:46:28] <kinglozzer> Guest65221: http://www.doc.silverstripe.org/framework/en/3.1/reference/modeladmin#search-fields
419: [11:01:36] <micmania1> Anybody running the latest version of 3.1 got a spare 10 seconds to try something?
420: [11:02:14] <micmania1> I've noticed on a couple of projects when I run ?flush=1 that my URL is becoming domain.com//blah (two slashes).
421: [11:02:44] <micmania1> Is this happening to anybody else?
422: [11:06:06] <kinglozzer> micmania1: Nope, doesn't happen to me
423: [11:06:29] <kinglozzer> Haven't done a composer update for a few days though, hold on
424: [11:06:43] <kinglozzer> Ah yes, does happen now
425: [11:06:50] <micmania1> It started happening this week
426: [11:08:20] <kinglozzer> micmania1: I'm guessing this caused it
427: [11:08:21] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/pull/2285/files
428: [11:08:41] <kinglozzer> $location = "$proto://" . $host . '/' . ltrim(BASE_URL, '/') . $url . ($params ? '?'.http_build_query($params) : '');
429: [11:11:42] * inadream has joined #silverstripe
430: [11:13:48] <micmania1> I'll raise a ticket on Github for now. I should be able to fix it later on.
431: [11:15:35] <micmania1> https://github.com/silverstripe/silverstripe-framework/issues/2330
432: [11:50:24] * travis-ci has joined #silverstripe
433: [11:50:24] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#803 (3.1 - d325551 : Ingo Schommer): The build passed.
434: [11:50:24] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/acc07e67ea2c...d325551079e9
435: [11:50:24] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10275159
436: [11:50:24] * travis-ci has left #silverstripe
437: [11:52:21] * travis-ci has joined #silverstripe
438: [11:52:21] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#802 (3.1.0 - de3b1b2 : Ingo Schommer): The build was broken.
439: [11:52:21] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/b6b06945d001...de3b1b22d3b4
440: [11:52:21] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10275093
441: [11:52:21] * travis-ci has left #silverstripe
442: [11:55:58] <kinglozzer> Can static publishing deal with $Current on a navigation menu?
443: [11:59:50] <kinglozzer> I'm guessing it can, if it uses Director::test() it must render each page fully, right?
444: [11:59:57] * kinglozzer lunch bll
445: [12:00:01] * kinglozzer bbl*
446: [12:00:08] <micmania1> I've never used it but i'd guess so.
447: [12:00:23] * travis-ci has joined #silverstripe
448: [12:00:23] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#498 (master - 7ad9712 : Ingo Schommer): The build was broken.
449: [12:00:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/d18bb858e3c0...7ad9712f0500
450: [12:00:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/10275397
451: [12:00:23] * travis-ci has left #silverstripe
452: [12:00:27] <micmania1> It probably renders the page as normal before caching it
453: [12:04:33] * UndefinedOffset has joined #silverstripe
454: [12:04:48] * openbees quit (Quit: Leaving)
455: [12:06:06] * travis-ci has joined #silverstripe
456: [12:06:06] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#802 (3.1.0 - de3b1b2 : Ingo Schommer): The build passed.
457: [12:06:06] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/b6b06945d001...de3b1b22d3b4
458: [12:06:06] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10275093
459: [12:06:06] * travis-ci has left #silverstripe
460: [12:12:15] <NobrainerWeb> Hi guys - i'm trying to filter on a relation in getCustomSearchContext: http://www.sspaste.com/paste/show/520e15e741fcd
461: [12:12:39] <NobrainerWeb> But i can not get the Industri filter to work
462: [12:13:00] <NobrainerWeb> Can someone take a look at my code and see what stupid mistake i made?
463: [12:18:54] * rojod is now known as Rojod
464: [12:18:58] <NobrainerWeb> Ahh i think i figured it out: 'Industry' => new ExactMatchFilter('Industries.ID')
465: [12:28:14] <NobrainerWeb> Ok new question: how can i make the checkboxes default checked? new CheckboxSetField($name = "Industry",$title = "Type",$source = Dataobject::get("Industry")->map("ID", "Title"),isset($_REQUEST['Industry']) ? $_REQUEST['Industry'] : null );
466: [12:31:18] <NobrainerWeb> On a roll here, answering my own questions: isset($_REQUEST['Industry']) ? $_REQUEST['Industry'] : array(1,2,3)
467: [12:52:36] * Guest65221 quit (Quit: Page closed)
468: [12:53:26] <micmania1> The reactive CMS buttons are slightly annoying at times.
469: [12:59:18] * NobrainerWeb quit (Quit: NobrainerWeb)
470: [13:03:11] * ARNHOE quit (Remote host closed the connection)
471: [13:12:06] * Guest47226 quit (Ping timeout: 245 seconds)
472: [13:14:59] * lobarvaz has joined #silverstripe
473: [13:28:43] * mrzero quit (Ping timeout: 264 seconds)
474: [13:30:21] * mrzero has joined #silverstripe
475: [13:30:21] * mrzero quit (Changing host)
476: [13:30:21] * mrzero has joined #silverstripe
477: [13:36:01] * NitinShah has joined #silverstripe
478: [13:36:55] * travis-ci has joined #silverstripe
479: [13:36:56] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#805 (3.1 - 0fc3e4e : Ingo Schommer): The build passed.
480: [13:36:56] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/d325551079e9...0fc3e4ec66d8
481: [13:36:56] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10277905
482: [13:36:56] * travis-ci has left #silverstripe
483: [13:41:19] * toddmorey has joined #silverstripe
484: [13:41:52] * travis-ci has joined #silverstripe
485: [13:41:52] <travis-ci> [travis-ci] chillu/silverstripe-framework#59 (pulls/gridfield-delete-button - 0fc3e4e : Ingo Schommer): The build passed.
486: [13:41:52] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/fefb7af0f554^...0fc3e4ec66d8
487: [13:41:52] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/10277880
488: [13:41:52] * travis-ci has left #silverstripe
489: [13:47:58] * onre has joined #silverstripe
490: [13:48:21] * onre is now known as Guest56619
491: [14:03:20] * Shrike_Finland quit (Quit: Leaving.)
492: [14:05:50] <NitinShah> I am using the blog module with ss3.1 and I see tag option when adding an entry. Is there a way to add the tag option to normal cms pages as well?
493: [14:12:53] * zfmf1 has joined #silverstripe
494: [14:58:38] * Nivery has joined #silverstripe
495: [15:08:46] * NitinShah quit (Quit: Leaving)
496: [15:13:37] * inadream quit (Quit: Ex-Chat)
497: [15:29:51] * travis-ci has joined #silverstripe
498: [15:29:51] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#807 (3.1 - 3690ae1 : Ingo Schommer): The build passed.
499: [15:29:51] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/02cc662aaf06...3690ae16582e
500: [15:29:51] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10281279
501: [15:29:51] * travis-ci has left #silverstripe
502: [15:31:04] * catcher has joined #silverstripe
503: [15:31:51] * chillu23 quit (Quit: chillu23)
504: [15:53:28] * kinglozzer quit (Remote host closed the connection)
505: [16:10:01] * violetina has joined #silverstripe
506: [16:10:50] * violet- quit (Ping timeout: 245 seconds)
507: [16:23:23] * violet- has joined #silverstripe
508: [16:24:05] * violetina quit (Ping timeout: 248 seconds)
509: [16:27:29] <lobarvaz> Hi folks... Got an UploadField on frontend but the drag and drop area isn't appearing in IE7-9 but does in everything else. Is that normal?
510: [16:32:43] * violetina has joined #silverstripe
511: [16:33:45] * violet- quit (Ping timeout: 264 seconds)
512: [16:36:02] <micmania1> lobarvas, drag & drop isn't supported in those browsers. The user has to click the field then select a file
513: [16:36:05] * micmania1 quit (Quit: Leaving)
514: [16:42:08] * violetina quit (Ping timeout: 260 seconds)
515: [16:51:23] * PigeonFriend quit ()
516: [16:53:11] * violetina has joined #silverstripe
517: [16:57:23] * lobarvaz quit (Read error: Connection reset by peer)
518: [17:13:53] * kerobo quit (Quit: regenerating)
519: [17:19:34] * Nivery quit (Quit: Nivery)
520: [17:39:08] * Nivery has joined #silverstripe
521: [17:56:06] * NitinShah has joined #silverstripe
522: [17:57:12] <NitinShah> I am using the blog module with ss3.1 and I see tag option when adding an entry. Is there a way to add the tag option to normal cms pages as well?
523: [17:58:08] <guzzlefry> Well, there are metatags.
524: [17:59:36] <guzzlefry> NitinShah: What's the function of the tags?
525: [18:00:44] <NitinShah> Not meta tags but tags to create a tag cloud
526: [18:01:14] <NitinShah> Blog module already has the option but not other pages
527: [18:04:01] <guzzlefry> ah, I'm not sure.
528: [18:24:40] <priithansen> NitinShah: there is at least one tagfield module https://github.com/chillu/silverstripe-tagfield
529: [18:26:25] <NitinShah> I just found the tagfield module and downloaded it
530: [18:27:31] <NitinShah> is there a way to use the tagfield module with blog instead of the default tag system in blog
531: [18:27:38] <priithansen> and then there is built in listbox field for manymany relations that might also come useful depending on the usercase http://api.silverstripe.org/3.0/class-ListboxField.html
532: [18:29:41] <NitinShah> I would like to use the same tag system for the entire website, I wouldn't mind either using tagfield for the entire site or somehow extend the blog tags system
533: [18:30:03] <NitinShah> and would like to know what is more preferable
534: [18:31:56] <priithansen> then the tagfield is probably what you need
535: [18:34:53] <NitinShah> I will check and get back if required. Thank you.
536: [18:35:08] <priithansen> listboxfield with multiple select true looks like this http://ctrlv.in/226267 < but you can't add new entries with it, although there is a listboxfield extension for that too I think
537: [18:38:15] <NitinShah> I'll look at the tagfield module first and if that doesn't work then will check listboxfield
538: [18:59:30] * zfmf1 has left #silverstripe
539: [19:02:29] * abitran quit (Ping timeout: 248 seconds)
540: [19:21:12] * zfmf1 has joined #silverstripe
541: [19:26:35] * simon_w|air has joined #silverstripe
542: [19:35:58] * PigeonFriend has joined #silverstripe
543: [20:07:00] * NitinShah quit (Ping timeout: 260 seconds)
544: [20:12:57] * ARNHOE has joined #silverstripe
545: [20:13:39] * zfmf1 has left #silverstripe
546: [20:19:37] * PigeonFriend quit ()
547: [20:27:15] * violetina quit (Remote host closed the connection)
548: [20:28:27] * violetina has joined #silverstripe
549: [20:29:50] * UndefinedOffset quit (Quit: Leaving.)
550: [20:48:28] * ARNHOE quit (Remote host closed the connection)
551: [20:57:21] * simon_w|air quit (Remote host closed the connection)
552: [21:06:58] * zippy__ has joined #silverstripe
553: [21:07:13] * zippy__ quit (Client Quit)
554: [21:07:39] * zippy__ has joined #silverstripe
555: [21:10:58] <guzzlefry> I broke something: ERROR [Warning]: array_flip() expects parameter 1 to be array, null given IN GET /admin/chipsets/ProductChipset/EditForm/field/ProductChipset/item/1/edit
556: [21:11:46] <guzzlefry> When trying to view a dataobject in the gridfield of my ModelAdmin.
557: [21:15:52] * micmania1 has joined #silverstripe
558: [21:17:53] <guzzlefry> $remoteRelations = array_flip(Config::inst()->get($remoteClass, 'has_one')); Related to that line in DataObject.php.
559: [21:20:42] * spronk has left #silverstripe
560: [21:21:00] <guzzlefry> Any ideas?
561: [21:22:30] <guzzlefry> oh, Probably because I didn't define $has_one on the other side of the one-many relation?
562: [21:38:40] * Nivery quit (Quit: Nivery)
563: [21:41:00] <simon_w> Yes
564: [21:43:29] <guzzlefry> simon_w: Is the $belongs_many_many important? Seems to be working fine without it, but I don't want to assume things. :P
565: [21:43:47] <simon_w> Are you using it?
566: [21:44:29] <guzzlefry> I'm not.
567: [21:45:36] <guzzlefry> I have a $many_many = array ("Parts"); on my Product datamodel, but no $belongs_many_many = array("Product"); on the Parts datamodel.
568: [21:45:42] <zippy__> Morning
569: [21:46:35] <simon_w> Then it's not important
570: [22:25:28] * pippy_ has joined #silverstripe
571: [22:27:54] * pippy quit (Ping timeout: 256 seconds)
572: [22:30:16] * pippy_ quit (Ping timeout: 260 seconds)
573: [22:30:28] * pippy has joined #silverstripe
574: [22:30:56] <micmania1> am I right in thinking github issues are automatically matched to the pull request?
575: [22:54:49] * FrozenFire quit (Read error: Connection reset by peer)
576: [22:55:19] * FrozenFire has joined #silverstripe
577: [22:55:28] <AlphaCactus> wow. google is down here.
578: [23:25:08] <guzzlefry> Is there a way to masquerade as another user?
579: [23:26:43] <AlphaCactus> aha, we build a module to do that
580: [23:27:24] <AlphaCactus> basically, you just need to Session::set("loggedInAs", $memberToPossess->ID);
581: [23:30:52] * violetina quit (Remote host closed the connection)

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