#silverstripe IRC Log

IRC log for 14 November 2013

All timestamps are in UTC.

1: [00:04:13] * Liquide quit ()
2: [00:05:29] * DigNZ1 quit (Quit: DigNZ1)
3: [00:07:15] * vonker has joined #silverstripe
4: [00:07:18] <vonker> hi everyone
5: [00:08:50] <vonker> how do i get my controller method to use a particular template?
6: [00:09:16] <vonker> ie, i have my routes.yml set up so that when i hit a url, it correctly hows the echo "hi!"; in the correct class/method
7: [00:09:24] <vonker> however it doesnt use any sort of template
8: [00:09:37] <vonker> (its black text on white screen)
9: [00:10:00] <vonker> how can i get it to output using my ContentPage.ss file?
10: [00:11:29] <EasyCo> What class is your Controller extending from?
11: [00:11:36] <simon_w> vonker, return an array and it'll use the templates
12: [00:11:42] <vonker> class ContentPage_Controller extends Page_Controller {
13: [00:11:59] <EasyCo> In that case, what simon_w said
14: [00:15:57] <guzzlefry> Anyone familiar with PayPal API?
15: [00:16:07] <vonker> hmm
16: [00:17:13] <vonker> thanks. now it doesnt seem like my site_search() method isnt getting hit
17: [00:17:15] <Colin[pi]> guzzlefry: I did some stuff with it a long while back, I seem to remember it was shit
18: [00:17:24] <guzzlefry> heh
19: [00:17:24] <vonker> i havent done that change you suggested yet
20: [00:17:30] <guzzlefry> Are there no default test accounts?
21: [00:17:35] <vonker> 1+ for paypal api == shit
22: [00:17:50] * zippy__ has joined #silverstripe
23: [00:17:52] <lewellyn> guzzlefry: you use your own account with the sandbox flag on, iirc.
24: [00:18:02] <guzzlefry> investor presentation thing in 3 hours and everything seems to be going to shit. :/
25: [00:18:08] <EasyCo> Yah you can setup a sandbox
26: [00:18:23] <EasyCo> guzzlefry: That's always the way
27: [00:18:26] <vonker> i have in my routes.yml
28: [00:18:27] <vonker> 'site_search': 'ContentPage_Controller'
29: [00:18:42] <vonker> class ContentPage_Controller extends Page_Controller {
30: [00:18:43] * antmas has joined #silverstripe
31: [00:18:46] <vonker> private static $allowed_actions = array ( 'site_search' );
32: [00:18:55] <vonker> public function site_search(SS_HTTPRequest $request) { exit('here'); }
33: [00:19:01] <vonker> in my php file
34: [00:19:07] <vonker> and it doesnt get hit any more.
35: [00:19:10] <vonker> i have flush=1'd
36: [00:19:27] * DigNZ1 has joined #silverstripe
37: [00:19:27] * DigNZ1 quit (Client Quit)
38: [00:19:42] <vonker> a second ago, it was hitting the method..
39: [00:20:19] <EasyCo> What URL are you visiting?
40: [00:20:19] * howardgrigg has joined #silverstripe
41: [00:20:34] * UncleCheese has joined #silverstripe
42: [00:20:39] <vonker> url is /site_search
43: [00:20:52] <vonker> it just shows me the basic ContentPage.ss with no content
44: [00:21:51] <vonker> if i change $allowed_actions to 'site_search1231232'
45: [00:22:01] <vonker> it has no effect; (ie it isn't getting read..?)
46: [00:22:20] <simon_w> You need to flush after changing it
47: [00:22:47] <vonker> yep i'm flushing
48: [00:22:52] <simon_w> And what rule are you using?
49: [00:24:37] * howardgrigg quit (Ping timeout: 248 seconds)
50: [00:26:56] <vonker> the rule is 'site_search': 'ContentPage_Controller'
51: [00:29:13] <EasyCo> Where would you look if you wanted to force a /new action to save automatically first and therefore giving it an ID?
52: [00:29:36] <vonker> ok so what i've changed is; i've added 'site_search': 'ContentPage_Controller' to routes.yml
53: [00:30:00] <vonker> added 'site_search' => true, to private static $allowed_actions = array ( on ContentPage_Controller
54: [00:30:17] <vonker> and added public function site_search(SS_HTTPRequest $request) { exit('hi there'); to ContentPage_Controller
55: [00:30:24] <vonker> done ?flush=1
56: [00:30:25] <simon_w> vonker, that rule makes /site_search point at the index method on ContentPage_Controller
57: [00:30:30] <vonker> and it doesnt work
58: [00:31:29] <simon_w> ss23, wanna feed us?
59: [00:31:49] <ss23> kind of
60: [00:31:51] <ss23> I wanna eat
61: [00:31:53] <ss23> does that count?
62: [00:32:09] <simon_w> I suppose so>
63: [00:32:13] <ss23> :D
64: [00:32:21] <ss23> simon_w: You guys coming down here? I'm totally not paying for you :P
65: [00:32:40] <simon_w> Well, James is fine with that
66: [00:32:48] <simon_w> You can pay for him then
67: [00:32:53] <ss23> o.o
68: [00:32:56] <ss23> NU UH
69: [00:32:57] <ss23> :(
70: [00:33:02] <ss23> That was you pluar!
71: [00:33:05] <ss23> plural
72: [00:33:15] <simon_w> Well, 3 minutes
73: [00:33:19] <ss23> kk
74: [00:33:55] <vonker> arrrrr.
75: [00:34:03] <vonker> got it sorted, thanks very much simon_w
76: [00:34:11] <vonker> i get what its doing now :)
77: [00:39:59] * mobiusnz has joined #silverstripe
78: [00:40:24] <mobiusnz> hey, is there a way to set Email::send_all_emails_to() in _ss_environment.php?
79: [00:42:41] <guzzlefry> yep
80: [00:42:44] * ajshort has joined #silverstripe
81: [00:43:13] <guzzlefry> mobiusnz: define("SS_SEND_ALL_EMAILS_TO", "mobiusnz@gmail.com");
82: [00:44:11] <Stomach> oh thats handy
83: [00:44:24] <guzzlefry> yeah
84: [00:44:35] <mobiusnz> guzzlefry: chur
85: [00:44:38] <guzzlefry> I stole simon_w's trick with _ss_environment.php.
86: [00:44:45] <mobiusnz> I have all the other things
87: [00:45:21] <Stomach> ive just got a dev, test and live config setup in a local composerized repo that i pull into every project
88: [00:45:26] <guzzlefry> if ($_SERVER["REMOTE_ADDR"] == "my static IP") { set email debugging to full, send all emails to me, set to development environment}
89: [00:45:46] <guzzlefry> I should do that. :P
90: [00:46:04] <guzzlefry> it still takes me about 45 minutes to set up a base SilverStripe install.
91: [00:46:09] <Stomach> :S
92: [00:46:26] <Stomach> takes me however long composer install stevie/silverstripe-installer takes to download
93: [00:46:27] <Stomach> lol
94: [00:46:44] <guzzlefry> I have to do lots of housekeeping for git/gitolite.
95: [00:46:54] <guzzlefry> Need those fancy script things to do that for me. :)
96: [00:48:09] <ajshort> guzzlefry: keep in mind that the remote address isn't reliable and can be faked
97: [00:48:16] <ajshort> so ideally should not be used for that kind of thing
98: [00:48:24] <guzzlefry> How can you fake that?
99: [00:48:47] <Stomach> isn't the entire idea of an environment file to be specific to the environment you are in? :D
100: [00:49:06] <guzzlefry> It was simon_w's idea!
101: [00:49:18] <ajshort> hrmm, i could be wrong
102: [00:49:40] <Stomach> you can totally spoof an ip for a request
103: [00:49:53] <ajshort> but i think you can just send a dodgy http request with a fake ip
104: [00:49:56] <vonker> ($_SERVER["REMOTE_ADDR"] == "my static IP") is a bad idea :)
105: [00:50:02] <ajshort> you won't get a response though obviously
106: [00:50:37] <vonker> i include _env.php which contains database settings, google analytics UA number, custom config settings etc
107: [00:50:59] <vonker> i have _env.php ignored in my svn project (and i provide an _env.php-dist which provides empty/sane defaults)
108: [00:51:00] <antmas> js
109: [00:51:01] <antmas> _-_
110: [00:51:05] <antmas> ffffffffffff
111: [00:51:07] <antmas> ;__;
112: [00:51:09] <vonker> for easy setting up of new environments
113: [00:51:12] <ajshort> according to some quick googling it's not possible to spoof
114: [00:51:33] <vonker> my main concern with that approach is seeing people commit their database passwords to svn etc ;(
115: [00:51:59] <Stomach> yeah thats how we are set up vonker
116: [00:52:13] <Stomach> all we commit is mysite and theme directory now pretty much
117: [00:52:13] <guzzlefry> ajshort: yeah, I figured Apache would just use whatever IP is coming in from the socket.
118: [00:52:16] <Stomach> the rest is automated
119: [00:53:19] <ajshort> in any case though, i wouldn't consider that setup ideal
120: [00:53:40] <ajshort> but it's not a big deal
121: [00:53:55] <Stomach> anyone coming to the SS meetup tonight?
122: [00:53:56] <guzzlefry> I only really use it when production is exhibiting unique bugs.
123: [00:54:17] <ajshort> fair enough
124: [01:04:59] <mobiusnz> is there a way in css to select a partial id
125: [01:05:34] <mobiusnz> ie select all of #Name[1] #Age[1] #Address[1] based on the [1]"
126: [01:05:36] <guzzlefry> mobiusnz: kinda sorta maybe
127: [01:05:55] <guzzlefry> Not reliable across browsers.
128: [01:05:58] <mobiusnz> bugger
129: [01:05:59] <mobiusnz> ok
130: [01:06:12] <guzzlefry> mobiusnz: What's the context?
131: [01:06:37] <mobiusnz> I have a form where there can be many fields added via javascript
132: [01:06:54] * andylockran has joined #silverstripe
133: [01:06:57] <mobiusnz> and I want to hide a bunch of fields and use them as a template to clone
134: [01:07:17] <guzzlefry> mobiusnz: Hide them using javascript?
135: [01:07:22] <guzzlefry> That's doable.
136: [01:07:35] <mobiusnz> yeah could do
137: [01:07:47] * nh_ quit (Ping timeout: 250 seconds)
138: [01:09:09] <guzzlefry> mobiusnz: JQuery handles attribute selectors.
139: [01:09:38] <mobiusnz> yeah I see that
140: [01:14:11] * ajshort quit (Ping timeout: 272 seconds)
141: [01:17:02] * andylockran quit (Ping timeout: 246 seconds)
142: [01:18:32] * violetina quit (Remote host closed the connection)
143: [01:25:44] * PapaBear has joined #silverstripe
144: [01:26:21] <ss23> willr: You there?
145: [01:26:32] <willr> knock knock?
146: [01:26:51] <ss23> willr: You going to be here for the next 1-2 hours? Wanna have a chat with you at some point (about some EA stuff)
147: [01:26:59] <ss23> Just gotta urgent issue to deal with first
148: [01:27:30] <willr> Beer o'clock is at 4. You have till then to keep my attention
149: [01:29:12] <ss23> lol okay
150: [01:33:58] * andylockran has joined #silverstripe
151: [01:35:12] <Avro> haha
152: [01:36:31] <simon_w> Getting bookkeeper and bookmaker confused doesn't help when most of our help desk tickets come from bookkeepers
153: [01:38:33] <PapaBear> Hi all. I have a question around best approach. We have an API that is pulling data from a client's main db that is returning the data in a large json object (currently JSONparsed into a nested relational array). What is the best way to get this information into a template to display? The standard ArrayData object seems to only handle a single array - not nested arrays.
154: [01:41:56] * andylockran quit (Ping timeout: 240 seconds)
155: [01:44:38] <Zauberfisch23> PapaBear: you would need to turn the children into Arraylist with many ArrayDatas as well
156: [01:47:59] <PapaBear> Zauberfisch: That's what I though we would have to do. I was hoping there was an easier way - once we have this data we then have to produce some summary information for it. Much of which we can do on the fly whilst parsing. Speed might be the issue.
157: [01:48:40] * andylockran has joined #silverstripe
158: [01:48:55] <PapaBear> it's not a one-off import kind of thing or I would build some dataobjects to handle it and work from there. This is all dynamic data that is pulled on request.
159: [01:50:02] * AlphaCactus quit (Ping timeout: 272 seconds)
160: [01:50:11] <Zauberfisch23> http://paste2.org/zhAVIb6c
161: [01:50:31] <Zauberfisch23> this is how you have to structure your ArrayLists / ArrayData objects
162: [01:50:52] <Zauberfisch23> as far as I know there is no magic auto convert nested array to arraylist
163: [01:51:04] <Zauberfisch23> you need to loop it and create it by hand
164: [01:51:48] * AlphaCactus_ has joined #silverstripe
165: [01:51:48] * AlphaCactus_ is now known as AlphaCactus
166: [01:56:22] <PapaBear> Zauberfisch: Thanks. That was pretty much what I thought. Ok - time to get my hands dirty I guess. Thanks for the help :)
167: [02:01:09] * andylockran quit (Ping timeout: 248 seconds)
168: [02:06:20] * howardgrigg has joined #silverstripe
169: [02:06:21] * andylockran has joined #silverstripe
170: [02:07:20] * PapaBear has left #silverstripe
171: [02:14:11] * marvanni quit ()
172: [02:17:54] * Marvanni_ quit (Quit: Marvanni_)
173: [02:19:33] <mobiusnz> mindblank: why isn't this working? <% if IsEmergingLeader %>Emerging Leader<br/><% end_if %>
174: [02:19:52] <Zauberfisch23> use a $
175: [02:19:53] <Zauberfisch23> !
176: [02:20:09] <mobiusnz> ok. also found I had a nested if in the wrong place
177: [02:20:09] <Zauberfisch23> obmitting $ is sort of deprecated
178: [02:20:20] <Zauberfisch23> it still works with out $
179: [02:20:26] <Zauberfisch23> but you should use $
180: [02:32:39] * UncleCheese quit (Quit: UncleCheese)
181: [02:38:20] <ss23> WHERE YOU THINK YOU'RE GOING BABY?
182: [02:38:51] <Zauberfisch23> :O
183: [02:38:57] <Zauberfisch23> ss23: good morning
184: [02:39:32] <ss23> :D
185: [02:39:33] <ss23> Morning~
186: [02:39:36] <simon_w> IT'S FRIDAY, FRIDAY, GOTTA GET DOWN ON FRIDAY
187: [02:39:40] <Zauberfisch23> !
188: [02:39:44] <ss23> lol
189: [02:40:28] <ss23> Guis, coworker wants a "happy" song
190: [02:40:29] <ss23> What you think?
191: [02:40:55] <EasyCo> Umbrella ella ella ey ey ey
192: [02:40:59] <ss23> lol
193: [02:41:04] <ss23> Has to be marginally better music than that
194: [02:41:06] <Zauberfisch23> I think he'll love to get down to "friday"
195: [02:41:16] <Zauberfisch23> hot problems?
196: [02:41:27] <ss23> It's a chick, and I want beter music!
197: [02:41:28] <EasyCo> Cosmic Girls by Jamiroquai
198: [02:41:37] <simon_w> Bring It All Back
199: [02:41:48] <ss23> okay okay
200: [02:41:51] <Colin[pi]> Shiny Happy People R.E.M
201: [02:42:06] <ss23> Naw for R.E.M
202: [02:42:08] <EasyCo> Chicks like the Jam.
203: [02:42:19] <ss23> She asked for Carley Ray Jespen, so has to be more like that
204: [02:42:19] <simon_w> Trigger Happy by Weird Al
205: [02:42:30] <Colin[pi]> Happy Boys and Girls - Aqua
206: [02:42:33] <ss23> lol
207: [02:42:37] <ss23> The S Club 7 is doing it
208: [02:42:38] <ss23> A+ simon_w
209: [02:42:46] <Zauberfisch23> haha, simon_w
210: [02:42:53] <guzzlefry> ss23: Len - Still My Sunshine
211: [02:42:54] <guzzlefry> DO IT
212: [02:42:56] <Zauberfisch23> aqua is a good tip
213: [02:43:16] <Colin[pi]> it's pretty much impossible to feel sad listening to aqua
214: [02:43:17] <simon_w> S CLUB PARTY TIEM!
215: [02:43:27] * guzzlefry doesn't think ss23 is a bad enough dude.
216: [02:43:35] <EasyCo> What's the best way to handle a DataObject that simply has 2 $many_many fields?
217: [02:43:52] <EasyCo> Upon first loading, you obviously need to save the record first
218: [02:44:06] <simon_w> Not in 3.1
219: [02:44:08] <EasyCo> because you can edit the checkboxsetfields
220: [02:44:17] <Zauberfisch23> ss23: when coworkers ask me to put on good musik I either choose march musik or death core
221: [02:44:17] <EasyCo> simon_w: DAMN YOU
222: [02:44:58] <simon_w> UnsavedRelationList!
223: [02:45:02] <simon_w> I wrote that!
224: [02:45:21] <EasyCo> simon_w: Unfortunately I'm in 3.0.8. Any strategy other then updating?
225: [02:45:22] <ss23> Well yesterday I accidently let it flick over from my playlist to metal
226: [02:45:26] <ss23> They were like "OH GOD PLEASE MAKE IT STOP"
227: [02:45:30] <ss23> Was Carcass :(
228: [02:45:35] <simon_w> EasyCo, frontend form?
229: [02:45:45] <EasyCo> No
230: [02:45:49] <Zauberfisch23> ss23: then you have to turn it louder
231: [02:45:51] <EasyCo> in the CMS.
232: [02:45:55] <EasyCo> backend lovin'
233: [02:45:57] * Marvanni has joined #silverstripe
234: [02:45:58] <simon_w> Gutted. Upgrade then :p
235: [02:46:19] <simon_w> Back to writing tasty SQLs :)
236: [02:46:39] <EasyCo> Blarghhhh
237: [02:46:46] <EasyCo> fuck
238: [02:46:51] <ss23> Zauberfisch23: inbfired
239: [02:46:55] <ss23> Comprimised, RHCP now
240: [02:46:55] <ss23> :P
241: [02:47:28] <simon_w> (this is one reason why I wore headphones that afternoon I worked in the ss offices)
242: [02:47:53] <EasyCo> simon_w: Can I just grab UnsavedRelationList or is it too tightly coupled in 3.1 changes?
243: [02:48:18] <simon_w> EasyCo, well, you'd need DataObject too and there's where things start breaking
244: [02:48:35] <EasyCo> simon_w: Right… That's what I was afraid of.
245: [02:48:46] <Zauberfisch23> ecommerce - 10-20 products - but those should sell a lot - custom delivery integration. any recommendations? built it myself in ss or use a exisitng system? if exisitng, which one plays nice with SS?
246: [02:48:52] <ss23> simon_w: What!
247: [02:48:58] <ss23> simon_w: I don't even think I played my playlist did I? :D
248: [02:49:47] <EasyCo> simon_w: Not bad though.. I like what you did there with UnsaredRL
249: [02:49:52] <Zauberfisch23> ss23: I have it, the perfect song: always erasure
250: [02:50:46] <ss23> ohh
251: [02:50:46] <ss23> A+
252: [02:52:18] * Marvanni quit (Ping timeout: 240 seconds)
253: [02:54:34] <Pyromanik> <3 ORM, you handle many manies so good.
254: [02:54:55] <Pyromanik> 15:43 <@simon_w> S CLUB PARTY TIEM!
255: [02:54:59] <Pyromanik> HOLLAH!
256: [02:55:40] <Pyromanik> 15:41 < EasyCo> Cosmic Girls by Jamiroquai
257: [02:55:43] <Pyromanik> +1
258: [02:55:45] <Pyromanik> this guy!
259: [03:01:13] * andylockran quit (Ping timeout: 272 seconds)
260: [03:09:41] <antmas> ss23: Carcass
261: [03:09:43] <antmas> :D
262: [03:09:44] <antmas> WIN
263: [03:10:17] <Colin[pi]> never seen the appeal in metal
264: [03:10:31] <antmas> Colin[pi]: wrong
265: [03:10:40] <Zauberfisch23> Colin[pi]: wrong
266: [03:10:41] <antmas> Colin[pi]: metal has never seen the appeal in you
267: [03:10:48] <Colin[pi]> o_O
268: [03:10:55] <Zauberfisch23> meh, I listen to a lot of music
269: [03:10:58] <Zauberfisch23> all sorts
270: [03:11:05] <Colin[pi]> me too
271: [03:11:10] <antmas> yeah I'm all over the place
272: [03:11:17] <Colin[pi]> two types I don't listen to, hip hop and metal
273: [03:11:22] <antmas> hiphop, metal, dubstep, jazz
274: [03:11:25] <antmas> lol
275: [03:11:46] <Zauberfisch23> but metal is one of the few that has actually meaning behind it
276: [03:12:01] <antmas> Zauberfisch23: some metal genres anyway
277: [03:12:04] <ss23> antmas: Yeah, I thought they were good, but uh
278: [03:12:09] <ss23> Coworkers did not really like it
279: [03:12:12] <Colin[pi]> lol I started watching those norwegian comedy band videos, did you see their Origin of Dubstep video? http://www.youtube.com/watch?v=6p_RrIA_Alc
280: [03:12:17] <Zauberfisch23> yeah, true that, there is trash in metal as well
281: [03:12:20] <ss23> Colin[pi]: I think if you can't really apperciate classical, it's going to be hard to apperciate metal
282: [03:12:39] <antmas> yeah
283: [03:12:54] <Zauberfisch23> I mainly listen to metalcore
284: [03:12:55] <antmas> metal has some of the most technical musical pieces of any genre by far
285: [03:13:14] <Pyromanik> my playlist goes from the lion king soundtrack to dimmu borgir.
286: [03:13:18] <Zauberfisch23> I especially like the mix with classical that is quiet comming in metalcore
287: [03:13:19] <antmas> Zauberfisch23: not a fan of that realy
288: [03:13:21] <ss23> lol Pyromanik XD
289: [03:13:24] <Pyromanik> with some classical
290: [03:13:32] <Pyromanik> bit of TATU
291: [03:13:38] <Pyromanik> it's a fuck'n mess.
292: [03:13:47] <Zauberfisch23> I also have a theme song playlist
293: [03:13:49] * antmas thinks Zauberfisch23 might be thinking of Human Abstract...
294: [03:13:49] <Zauberfisch23> POKEMON!
295: [03:14:07] <ss23> One of my favoriate albums of all time is Metallicas S&M
296: [03:14:11] <ss23> dat symphony
297: [03:14:12] <ss23> I <3 it
298: [03:14:22] <Pyromanik> you like this kinda stuff Zauberfisch23? http://www.youtube.com/watch?v=zoA2xYmNS1k
299: [03:14:51] <Pyromanik> 4:14 on a friday, how much work is getting done? None. That's how much.
300: [03:15:14] <antmas> http://www.youtube.com/watch?v=xRitJ1m8E1w
301: [03:15:25] <Zauberfisch23> Pyromanik: sort of I guess
302: [03:15:27] * andylockran has joined #silverstripe
303: [03:16:09] <Zauberfisch23> Pyromanik: http://www.youtube.com/watch?v=TTkZt8r2lko
304: [03:16:34] <Pyromanik> http://www.youtube.com/watch?v=2E1LVZJtRLA
305: [03:16:37] <Pyromanik> Zauberfisch23: ^
306: [03:17:17] <Zauberfisch23> everyone: http://www.youtube.com/watch?v=dQw4w9WgXcQ
307: [03:17:26] <Pyromanik> Zauberfisch23: http://vimeo.com/14875835 ?
308: [03:17:46] <Pyromanik> awwww snap Zauberfisch23
309: [03:17:48] <Pyromanik> :<
310: [03:17:51] <Zauberfisch23> :D
311: [03:17:54] <Pyromanik> xD
312: [03:18:14] <Zauberfisch23> yeah, I guess I would enjoy that
313: [03:18:16] <antmas> bit of thrash http://www.youtube.com/watch?v=uhrJLoplnV0
314: [03:18:27] <Pyromanik> Zauberfisch23: Swallow the Sun?
315: [03:18:43] <Zauberfisch23> yes
316: [03:19:14] <Pyromanik> it's good, goes on for ages. Gets heavier like the song you linked. Goes in and out of movements. Fantastic the whole way through (it's iirc ~20m long)
317: [03:20:52] <antmas> not a fan of super long metal songs
318: [03:21:02] <antmas> although, anything by Cult of Luna is rad
319: [03:21:51] <Pyromanik> antmas: it's in like 5 movements, so it's kinda like 5 songs.
320: [03:22:02] <Pyromanik> might even just be an album. Not sure.
321: [03:22:22] <Zauberfisch23> anyway, so let me repost my ecommerce question:
322: [03:22:22] <Pyromanik> Zauberfisch23: haha, this is pretty wicked (endzeit).
323: [03:22:33] <Pyromanik> mmkay
324: [03:22:35] <Zauberfisch23> yeah
325: [03:22:52] * mobiusnz quit (Quit: Leaving.)
326: [03:22:59] <Zauberfisch23> ecommerce - 10-20 products - but those should sell a lot - custom delivery integration. any recommendations? built it myself in ss or use a exisitng system? if exisitng, which one plays nice with SS?
327: [03:23:18] <Pyromanik> Swipestripe only option really.
328: [03:23:29] <Pyromanik> I'd use it as a base, and add modules where needed.
329: [03:23:42] <Pyromanik> but... probably only if you've used it before. There are a few wee gotchas in it.
330: [03:23:56] <Pyromanik> like suddenly members are enforced to have an email for an email.
331: [03:24:06] <Pyromanik> and... it subclasses member, so can cause a few errors.
332: [03:24:22] <Pyromanik> eg, if you're an existing user (like an admin) and are trying to become a customer.
333: [03:24:44] <Zauberfisch23> yeah, that was exactly my thinking, but its my first real ecommerce site (did some minor ones before), so I am unsure
334: [03:25:18] <Zauberfisch23> swipestripe seems to be the best of the available ss shops, however its still young and untested ...
335: [03:25:32] <EasyCo> Just dive into some Magento
336: [03:25:38] <EasyCo> That'll grow you some hairs
337: [03:25:44] <EasyCo> or loose you some.
338: [03:25:48] <EasyCo> Could go either way really.
339: [03:26:20] <Pyromanik> The differences between an option an attribute and a variation aren't all that clear.
340: [03:26:30] <Pyromanik> but once you've used it a few times it's ok.
341: [03:26:41] <Pyromanik> (still a bit of a mindfuck when you go back to it though).
342: [03:26:50] <Pyromanik> EasyCo: just lose.
343: [03:27:09] <Pyromanik> Zauberfisch23: swipestripe is well tested, but still green, yes.
344: [03:27:23] <Colin[pi]> Zauberfisch23: I've almost finished one based on ss-shop.... it went "ok"
345: [03:28:15] <Zauberfisch23> I am sortof leaning agaisnt magento, I am sure its a great product, but I am afraid its just to bloated and hard to customize (I need to build an api integration for a delivery service)
346: [03:28:30] <Zauberfisch23> so Pyromanik you did use swipstripe?
347: [03:28:38] <Pyromanik> both of those things.
348: [03:28:42] <Pyromanik> (re: magento)
349: [03:28:55] <Pyromanik> Zauberfisch23: we've used it a bit here, yeh.
350: [03:29:01] <Pyromanik> tankr used to work with us.
351: [03:29:19] <Pyromanik> I haven't set up too many stores personally, but I've dug around it a few times.
352: [03:29:37] <Pyromanik> plus he open sourced it since going to AKL to work for SS.
353: [03:30:07] <Zauberfisch23> I was just about to say, I can't find a price on swipestripe anymore
354: [03:30:14] <Pyromanik> antmas: yeh, that song is 34 mins long :P
355: [03:30:23] <Zauberfisch23> AKL?
356: [03:30:24] <Pyromanik> Zauberfisch23: yeh, 3.0 version was BSD'd
357: [03:30:34] <Pyromanik> Zauberfisch23: intl. code for Auckland.
358: [03:30:49] <Pyromanik> intl. being 'international'
359: [03:31:03] <Pyromanik> I used to work at an airport, is habbit :<
360: [03:31:40] * Colin[pi] quit (Ping timeout: 240 seconds)
361: [03:31:56] * DigNZ quit (Quit: DigNZ)
362: [03:32:05] <simon_w> WTF? I'm still here?
363: [03:32:17] <EasyCo> Quick leave!!
364: [03:32:21] * Colin[pi] has joined #silverstripe
365: [03:33:00] * mobiusnz has joined #silverstripe
366: [03:33:15] <Colin[pi]> mm the SS community is prolly more incestous than the bigger ones
367: [03:33:21] <Zauberfisch23> Pyromanik: thanks for the input
368: [03:33:22] <Colin[pi]> everyone knows everyone :D
369: [03:33:34] <Zauberfisch23> actually, thanks all for the input
370: [03:33:46] <Zauberfisch23> I appreciate it
371: [03:33:48] <antmas> Pyromanik: not as amazing as Sleep by Dopesmoker :D
372: [03:33:51] <antmas> 1 hour long
373: [03:34:31] <antmas> http://www.youtube.com/watch?v=hIw7oeZKpZc
374: [03:37:22] <irogue23> Pyromanik: i haven't worked at an airport but do it anyway
375: [03:37:32] <irogue23> it's a nice consistent way to refer to cities in short form
376: [03:38:09] <EasyCo> Pyromanik: Popquiz: LAX
377: [03:38:55] * antmas also used to work at an airport
378: [03:44:27] <irogue23> my own city confuses people tho
379: [03:44:51] <irogue23> most folk can guess AKL, WLG and CHC... but HLZ gets them confused
380: [03:45:07] * nickmolhoek quit (Quit: nickmolhoek)
381: [03:46:47] <Pyromanik> EasyCo: derp?
382: [03:46:53] <Pyromanik> HLZ!
383: [03:47:02] <Pyromanik> oh, you already gave the answer irogue23!
384: [03:47:08] <antmas> lol
385: [03:47:11] <irogue23> lol yup
386: [03:47:13] <EasyCo> Ok, how about YOW
387: [03:47:14] <Pyromanik> EasyCo: LA
388: [03:47:31] <Pyromanik> ottowa
389: [03:47:44] <Colin[pi]> spare a thought for Sioux City, Iowa
390: [03:47:46] <irogue23> i only know NZ ones cos they're the only ones relevant to me :P
391: [03:47:49] <Colin[pi]> "SUX"
392: [03:47:49] <EasyCo> Did you look that up or was the in your brain?
393: [03:48:06] <Pyromanik> EasyCo: admittedly I worked domestic freight. And yes, as a webdev, I sit in front of the gugglez all day
394: [03:48:07] <Colin[pi]> or Fukuoka, Japan
395: [03:48:08] <Colin[pi]> :D
396: [03:48:28] <EasyCo> Pyromanik: can't blame you for using the tools at your disposal.
397: [03:48:54] <Pyromanik> :D
398: [03:49:08] <antmas> Pyromanik: I worked the tower :/ had to use them all the time
399: [03:49:29] <Pyromanik> some of the places I know aren't actually airports, or official international abberviations.
400: [03:49:32] <Pyromanik> like CNO
401: [03:49:37] <Pyromanik> kiwis guess that one.
402: [03:49:53] <EasyCo> Can you $this->MyManyManyRel()->leftJoin()?
403: [03:49:57] <antmas> Cunt Number One
404: [03:50:08] <Pyromanik> EasyCo: why though?
405: [03:50:24] <EasyCo> Cause I need to?
406: [03:50:34] <Pyromanik> EasyCo: no reason one shouldn't, but perhaps there's a better way?
407: [03:50:44] <Pyromanik> antmas: Central Otago.
408: [03:50:49] <Pyromanik> Alexandra
409: [03:50:54] <Pyromanik> QLZ queenstown
410: [03:50:58] <Pyromanik> etc
411: [03:51:06] <Pyromanik> although queenstown actually has an airport
412: [03:51:22] <EasyCo> Well I could use the search filter modifiers, but it bugs out when used with anything from SiteTree
413: [03:51:28] <antmas> isn't it an Intl. airport too down there?
414: [03:51:51] <Pyromanik> yeh, but that's not the code we used :<
415: [03:51:56] <Pyromanik> or maybe I just remember wrong.
416: [03:52:00] <Pyromanik> it was a fair few years ago now
417: [03:52:19] <Pyromanik> fuck, alm ost
418: [03:52:29] <Pyromanik> I thought it had an N in it
419: [03:52:32] <Pyromanik> ZQN
420: [03:52:50] <Pyromanik> QLZ always makes much more sense, but that's getting confused with HLZ
421: [03:53:16] <Pyromanik> yeh, we used ZQN, although that all went by truck (as did all of the south island)
422: [03:53:31] <Pyromanik> http://www.youtube.com/watch?v=bve6r9MybJM
423: [03:53:49] <antmas> http://www.stuff.co.nz/oddstuff/9398736/Vacuum-commits-stovetop-suicide
424: [03:53:59] <antmas> NEWS
425: [03:54:04] <Pyromanik> irogue23: while it was AT the airport, it wasn't @airport, knah mean?
426: [03:56:53] <Pyromanik> all the freight from Blenheim, Nelson, Westport, Greymouth & Hokitika, Kaikoura, Timaru, Oamaru, Central Otago (Alexandra iirc), Queenstown, Dunedin, Invercargill drive up to CHC every night, where we'd sort it and then the trucks go back to where they came from.
427: [03:58:41] <Pyromanik> and the Planes take stuff to PMR or AKL, to be distributed around WLG, PMR, NPL, TPO, forgot code but Hawkes Bay, TGA, HLZ, AKL, Whangarei, WKK (walkworth, iirc).
428: [03:58:55] <Pyromanik> although admittedly I don't know NI depots as well as SI.
429: [03:59:25] <Pyromanik> anyway, it's like 29.5 mins past drink o'clock.
430: [03:59:26] <Pyromanik> so... yeh
431: [03:59:28] * Pyromanik quit (Quit: leaving)
432: [03:59:37] <Colin[pi]> lol
433: [03:59:44] <Colin[pi]> how's that for a quick exit?
434: [04:00:05] <spronk> this is making me want to load flight radar..
435: [04:00:19] * Pyromanik has joined #silverstripe
436: [04:00:22] <Pyromanik> hev guud weekeend.
437: [04:00:25] * Pyromanik has left #silverstripe
438: [04:01:08] <Colin[pi]> this is making me want to run MS Flight and explore the world OH WAIT
439: [04:01:19] <Colin[pi]> just hawaii and alaska before they killed the project
440: [04:01:20] <Colin[pi]> gg
441: [04:08:09] * Ryan-Toast quit (Quit: Ryan-Toast)
442: [04:08:41] * mobiusnz quit (Quit: Leaving.)
443: [04:10:13] <Colin[pi]> ss23: https://soundcloud.com/bestdropsever (from reddit)
444: [04:10:39] <Colin[pi]> these are pretty good actually lol
445: [04:24:42] <EasyCo> $results = $this->Intakes()->filter('Clouds.ID:ExactMatch', $cloudsID)->first();
446: [04:24:50] <EasyCo> Much sexier then a big dirty leftJoin
447: [04:40:26] * mobiusnz has joined #silverstripe
448: [04:41:57] * cloph_away has joined #silverstripe
449: [04:42:03] * cloph quit (Ping timeout: 244 seconds)
450: [04:46:50] * donnie has joined #silverstripe
451: [04:49:17] * spronk2 quit (Quit: spronk2)
452: [04:50:33] <donnie> Hey everyone...i am looking for some advice based on your experience. I have almost 50 plus clients all built using SilverStripe. All the code is currently subversioned. Due to SilverStripe using Github and composer I am thinking about switching to Github...however I will need to use private repositories for the client sites, and the all other modules can be public repositories. My question is do i need a new private repository
453: [04:52:21] <guzzlefry> donnie: We run a gitolite server on a Rackspace instance.
454: [04:55:44] * sanjaymundhra has joined #silverstripe
455: [04:58:29] <ss23> We run Gitlab and Gitorious
456: [04:59:40] <EasyCo> We have an enterprise GitHub account
457: [05:01:45] <EasyCo> GitLab looks hot though
458: [05:03:28] * willr quit (Quit: willr)
459: [05:07:58] <donnie> tthanks they look good......so I take it do need a new repository for each websites...I wasn't sure if I can create children 1
460: [05:20:15] <donnie> has anyone had any experience with https://bitbucket.org
461: [05:29:26] * andylockran quit (Ping timeout: 240 seconds)
462: [05:31:50] * EasyCo quit (Ping timeout: 240 seconds)
463: [05:41:39] * sanjaymundhra quit (Ping timeout: 250 seconds)
464: [05:42:28] * openbees has joined #silverstripe
465: [05:53:32] * andylockran has joined #silverstripe
466: [05:57:44] * andylockran quit (Ping timeout: 240 seconds)
467: [06:14:46] <openbees> why it always gives size limit errors in 3.1 Upload field .. even when attaching from Files
468: [06:14:52] <openbees> any ideas guys ?
469: [06:15:09] * zippy__ quit (Quit: zippy__)
470: [06:16:54] <openbees> simon_w any thoughts about uploading big files when there is a limit in server for max upload size .... prior to 3.1 I could just FTP them and file sync :|
471: [06:17:25] <openbees> M asking this 3rd or 4th time :(
472: [06:20:12] * zippy__ has joined #silverstripe
473: [06:20:41] <zippy__> donnie: I use bitbucket, is good
474: [06:22:42] <ss23> openbees: Why can't you file sync ?
475: [06:24:23] <donnie> cheers zippy__
476: [06:27:58] <openbees> ss23 I can .. I can even see my big files when I am trying to attach them from files ... but when I click on attach it gives me max_file_size error
477: [06:28:48] * mobiusnz quit (*.net *.split)
478: [06:28:48] * simon_w quit (*.net *.split)
479: [06:29:37] <ss23> openbees: Annoying! No idea sorry
480: [06:30:08] <openbees> yaah it is :| its ok . thanks anyway
481: [06:33:13] * donnie quit (Ping timeout: 250 seconds)
482: [06:43:23] * openbees quit (Ping timeout: 252 seconds)
483: [06:46:33] * openbees has joined #silverstripe
484: [06:52:01] * vonker quit (Quit: Leaving)
485: [07:01:53] * openbees quit (Quit: Leaving)
486: [07:02:45] * EasyCo has joined #silverstripe
487: [07:04:21] * andylockran has joined #silverstripe
488: [07:04:40] * EasyCo quit (Client Quit)
489: [07:04:50] * zippy___ has joined #silverstripe
490: [07:05:52] * zippy__ quit (Ping timeout: 264 seconds)
491: [07:05:52] * zippy___ is now known as zippy__
492: [07:09:14] * andylockran quit (Ping timeout: 272 seconds)
493: [07:13:41] * SightUnseen has joined #silverstripe
494: [07:16:05] * SightUnseen has left #silverstripe
495: [07:26:11] * howardgrigg quit (Remote host closed the connection)
496: [07:30:57] * Stomach quit (Ping timeout: 246 seconds)
497: [07:38:54] * howardgrigg has joined #silverstripe
498: [07:57:39] * qlex has joined #silverstripe
499: [07:57:46] * qlex says hi
500: [07:58:08] <qlex> does any1 know if unclecheese's dashboard works with 3.1.1 ?
501: [07:58:49] <qlex> i just dev/build, all ok, but when logging to cms, i can only see silverstripe menu on the left (dashboard, pages, security..), "dashboard" word next to it, and whole rest is grey background only
502: [07:59:07] * violetina has joined #silverstripe
503: [07:59:08] <qlex> it worked out of box in 3.0.1 in that i could start adding those widgets
504: [08:14:29] * SightUnseen has joined #silverstripe
505: [08:14:32] * SightUnseen quit (Client Quit)
506: [08:23:09] * andylockran has joined #silverstripe
507: [08:31:05] * marvanni has joined #silverstripe
508: [08:35:00] * andylockran quit (Ping timeout: 245 seconds)
509: [08:37:43] * qlex has left #silverstripe
510: [08:39:49] * andylockran has joined #silverstripe
511: [08:41:18] * ajmitch_ has joined #silverstripe
512: [08:41:26] * ajmitch_ quit (Changing host)
513: [08:41:27] * ajmitch_ has joined #silverstripe
514: [08:44:38] * Shrike_Finland has joined #silverstripe
515: [08:44:38] * mobiusnz has joined #silverstripe
516: [08:44:38] * simon_w has joined #silverstripe
517: [08:45:49] * ec8or_ quit (*.net *.split)
518: [08:45:50] * ajmitch quit (*.net *.split)
519: [08:46:48] * ec8or_ has joined #silverstripe
520: [08:48:20] * ajshort has joined #silverstripe
521: [08:54:57] * howardgrigg quit (Read error: Connection reset by peer)
522: [09:08:29] * willr has joined #silverstripe
523: [09:09:16] * mobiusnz quit (Quit: Leaving.)
524: [09:09:47] * willr quit (Client Quit)
525: [09:09:53] * kinglozzer has joined #silverstripe
526: [09:15:25] <marvanni> in ss3 should augmentSQL also work on the dataobject itself?
527: [09:16:06] <marvanni> vmn.. nope
528: [09:20:53] * lerni has joined #silverstripe
529: [09:28:14] * howardgrigg has joined #silverstripe
530: [09:32:47] * howardgrigg quit (Ping timeout: 252 seconds)
531: [09:34:10] <willmorgan> good morning all
532: [09:36:01] * r3v3rb has joined #silverstripe
533: [09:37:08] <r3v3rb> hi all, any idea why a project updated from 2.4.10 to 2.4.13 now wont allow me to alter any dataobjects in a modeladmin table? The code being written to the browser contains no anchors for the items?
534: [09:37:42] <r3v3rb> I've dev/build and ?flush=all
535: [09:38:16] * howardgrigg has joined #silverstripe
536: [09:42:45] * howardgrigg quit (Ping timeout: 244 seconds)
537: [09:49:45] <r3v3rb> also, just noticed on the dev server I get this when querying the modeladmin using search "Warning: "array_fill() [function.array-fill]: Number of elements must be positive" at line 747 of /Users/digbookpro/Sites/edirect/cms/code/ModelAdmin.php"
538: [09:50:09] <r3v3rb> yet I know that there is data in the system so the array should be positive?
539: [09:50:43] <kinglozzer> Morning willmorgan
540: [09:51:10] * zippy__ quit (Ping timeout: 240 seconds)
541: [09:51:18] <r3v3rb> morning kinglozzer
542: [09:51:39] <kinglozzer> r3v3rb: I've no idea about 2.4, but I'd check the changelogs first of all and see if there's anything that stands out
543: [09:51:46] <r3v3rb> aye
544: [09:54:34] <r3v3rb> I wonder if the archive has some dodgy line endings on uploading as I get this in the security when saving/checking permissions: Saved Member <a href="admin/security/EditForm/field/Members/item/1?SecurityID=1e39d7fd53d6c2a7a853caaa205accc994321231">"Default Admin"</a> <small><a href="http:///admin/security/EditForm/field/Members/item/1/edit?SecurityID=1e39d7fd53d6c2a7a853caaa205accc994321231" onclick="javascript:window.top.GB_hide();
545: [09:54:35] <r3v3rb> return false;">(Close Popup)</a></small> instead of just the "Saved Member" message
546: [09:55:16] <r3v3rb> time to go back to 2.4.12 and see if that resolves it
547: [09:55:56] * zippy__ has joined #silverstripe
548: [09:58:34] <kinglozzer> r3v3rb: http://doc.silverstripe.org/framework/en/2.4/changelogs/2.4.13
549: [09:59:00] <kinglozzer> Says HTML is no longer allowed in validation messages, which probably explains the above issue
550: [09:59:25] <r3v3rb> kinglozzer: yes, which is weird as its part of the sapphire/cms core
551: [09:59:58] <marvanni> does your dataobject have $summaryFields ?
552: [10:00:05] <r3v3rb> it does
553: [10:03:14] <r3v3rb> 2.4.12 works perfectly though marvanni with the same code base
554: [10:03:21] * r3v3rb has left #silverstripe
555: [10:03:56] * r3v3rb has joined #silverstripe
556: [10:03:59] <r3v3rb> whoops
557: [10:04:16] <r3v3rb> managed to cmd-w the wrong window!
558: [10:05:10] <marvanni> so it does work?
559: [10:05:26] <r3v3rb> on 2.4.12 yes everything is fine
560: [10:05:33] <r3v3rb> on 2.4.13 I get the issues
561: [10:06:40] <marvanni> you have stack trace?
562: [10:07:00] <r3v3rb> but I also notice that by the 'clear database before import' section on the modeladmin I get a little green square... When I code inspect it - it is a span for a message - yet there is no message. SOooo, I think there is a line ending issue that breaks the flow in php when building the pages
563: [10:07:15] <r3v3rb> marvanni: no sorry no stack traces - I only use coda for editing
564: [10:08:04] <r3v3rb> what would you like and from what app?
565: [10:09:24] <r3v3rb> I think I remember having an issue like this once before if I downloaded the zip over the gz - where it buggered up all the file lineendings and mac osx/linux freaked out
566: [10:09:43] <marvanni> just the stack trace that outputs in de your browser until the array_fill error
567: [10:10:35] <r3v3rb> sorry nothing appeared just the error and thats with error_reporting on
568: [10:10:55] <r3v3rb> it was in a jquery error in the admin
569: [10:11:35] <r3v3rb> I'll have to try and reproduce it again later as I have to get this site up and running for the client with price changes
570: [10:12:30] <marvanni> ok
571: [10:13:16] <marvanni> A Group code can by anything right? so i can set a custom group code thats not based on the title?
572: [10:16:33] * spronk2 has joined #silverstripe
573: [10:54:38] <marvanni> $pDate->getTimeField()->setConfig('showdropdown', true);
574: [10:54:41] <marvanni> is removed!!!!
575: [10:54:42] <marvanni> no!!!!
576: [10:58:42] <marvanni> Why does this not work?
577: [10:58:42] <marvanni> http://sspaste.com/paste/show/5284aadac2bdc
578: [11:01:31] <r3v3rb> lol, should i tell my wordpress loving client to go take a running jump as they have now realised the cheap template they deployed for their client doesn't work in older browsers... and could I help them out!
579: [11:05:11] <kinglozzer> Haha
580: [11:05:22] <kinglozzer> But... pluginz
581: [11:05:26] <kinglozzer> :D
582: [11:06:21] <Colin[pi]> butt pluginz?
583: [11:07:21] <kinglozzer> butt plugs?
584: [11:07:22] <kinglozzer> :P
585: [11:10:22] <marvanni> ah missing ->getDateField()->setConfig('showcalendar', true)
586: [11:11:40] <marvanni> but that removes the timefield... hm...
587: [11:21:13] * ARNHOE has joined #silverstripe
588: [11:25:47] * Colin[pi]_2 has joined #silverstripe
589: [11:27:13] * Colin[pi] quit (Ping timeout: 245 seconds)
590: [11:27:24] * Colin[pi]_2 is now known as Colin[pi]
591: [11:35:51] * hans_ has joined #silverstripe
592: [11:37:37] <marvanni> is it possible to add an extra ContentEditController besides Main, Settings and History?
593: [11:38:11] <marvanni> for example to move the Translations tab to the root tab level
594: [11:53:05] <r3v3rb> kinglozzer: lol, aye maybe I'll just tell them to poke it
595: [11:55:33] <marvanni> should all statics be private?
596: [11:58:02] <r3v3rb> not in general coding no. but not sure in silverstripes version
597: [11:59:01] <r3v3rb> heh, built client CMS with SS, now they phone me - can I make changes to the site... They even know they have a CMS but are sooooo lazy they can't be arsed to update it themselves
598: [11:59:16] * r3v3rb feels guilty for a ms at charging them £45ph for updates
599: [11:59:45] <r3v3rb> then again they make too much money so they wont notice
600: [12:00:27] <r3v3rb> they just paid £7500 for a WP/WooCommerce site that an agency produced using a template for the design...
601: [12:01:09] <r3v3rb> s h o c k i n g
602: [12:02:26] * Colin[pi] quit (Ping timeout: 246 seconds)
603: [12:07:54] * hubertusanton has joined #silverstripe
604: [12:08:12] <kinglozzer> Why does git use "remote/branch" for rebase, yet "remote branch" for push/pull?
605: [12:08:36] * hans_ quit (Quit: Page closed)
606: [12:12:48] * prij has joined #silverstripe
607: [12:17:17] * prij quit (Ping timeout: 250 seconds)
608: [12:17:19] <marvanni> hm.... any idea why this returns an empty list?
609: [12:17:20] <marvanni> $this->Pages()->exclude('ClassName', 'ErrorPage')
610: [12:18:03] <marvanni> nvm, need Page::get()
611: [12:26:27] <marvanni> hm this feels a bit stupid, but it works...
612: [12:26:34] <marvanni> $gridField->setList($gridField->getList()->sort('Title ASC'));
613: [12:26:40] <marvanni> any improvements?
614: [12:31:01] <marvanni> pfff, coffee time i guess.. in the constructor ofcourse..
615: [12:31:49] <r3v3rb> coffee in the constructor marvanni
616: [12:33:17] <marvanni> hehe
617: [12:33:18] <marvanni> no
618: [12:33:21] <r3v3rb> lol
619: [12:33:26] <r3v3rb> couldn't resist
620: [12:33:38] <marvanni> $this->Pages()->sort() ...
621: [12:33:42] <marvanni> you had to..
622: [12:59:33] <marvanni> withou unittests, when to use objFromFixture and when can I just do new DataObject() ? whats the difference?
623: [13:06:36] * UndefinedOffset has joined #silverstripe
624: [13:14:59] * Alexwijn has joined #silverstripe
625: [13:15:23] * willr has joined #silverstripe
626: [13:17:04] * willr quit (Client Quit)
627: [13:22:10] <Alexwijn> Is there a guide of how to work with namespaces with SS?
628: [13:25:18] <marvanni> I found this a nice example
629: [13:25:19] <marvanni> https://github.com/ajshort/silverstripe-elastica
630: [13:29:18] * r3v3rb quit (Ping timeout: 245 seconds)
631: [13:29:32] * r3v3rb has joined #silverstripe
632: [13:32:33] * r3v3rb quit (Client Quit)
633: [13:33:10] <marvanni> any idea how to unittest a mysql query for a Dataobject?
634: [13:34:20] <marvanni> ah just query....
635: [13:35:36] <Alexwijn> Will Silverstripe convert the namespace to folder?
636: [13:35:44] <Alexwijn> So for example "namespace SilverStripe\Elastica;"
637: [13:35:57] <Alexwijn> Will become: /Silverstripe/Elastic/
638: [13:46:36] <Alexwijn> Can someone explain me how to edit one single DataObject that is attached to a Custom PAge Type
639: [13:46:48] <Alexwijn> As in editing at the cms panel
640: [13:48:10] <marvanni> as far as I know thats the psr-0 standard
641: [13:48:20] <marvanni> for autoloading
642: [13:48:35] <marvanni> with a GridField
643: [13:48:47] <Alexwijn> I only want to manage one dataobject
644: [13:48:53] <Alexwijn> I don't want to add multiple to one page
645: [13:49:00] <Alexwijn> private static $has_one = array(
646: [13:49:00] <Alexwijn> 'LayerSlider' => 'LayerSlider'
647: [13:49:00] <Alexwijn> );
648: [13:51:43] <marvanni> hm, dunno
649: [13:56:07] <Alexwijn> The Homepage page type can contain one LayerSlider
650: [13:56:17] <Alexwijn> The LayerSlider can contain multiple Slides
651: [13:56:26] <Alexwijn> And the Slides can contain multiple Layers
652: [13:56:40] <Alexwijn> What is the best way to approach this
653: [13:57:38] <marvanni> Do you have more LayerSliders for other pages?
654: [13:58:36] <Alexwijn> No
655: [13:58:45] <Alexwijn> Current only for the Homepage PageType
656: [13:59:48] <marvanni> ok. well.. you could remove the AddNewButton in the GridField...
657: [14:00:02] <marvanni> in that way your client sees only one record which he can edit.
658: [14:00:23] <marvanni> or allow the client to create multiple LayerSlides, but select only one on the HomePage
659: [14:00:23] <Alexwijn> And it is not possible to skip the gridfield
660: [14:00:26] <Alexwijn> And goes right to the LayerSlider editing
661: [14:00:33] <Alexwijn> hm
662: [14:00:38] <Alexwijn> That also a good idea
663: [14:00:44] <marvanni> dont think so , not very easy.
664: [14:00:53] <Alexwijn> hm
665: [14:01:03] <marvanni> you need to tie the DetailForm to some Controller
666: [14:01:10] <marvanni> well no that i think of
667: [14:01:22] <marvanni> you can create a GridField, withou any datacolumns...
668: [14:02:05] <marvanni> just create a GridFieldComponent, get the First (and only) LayerSlider and add an custom edit button...
669: [14:02:12] <marvanni> yeah, that should work...
670: [14:02:37] <Alexwijn> Can you give me a snappit of code (It's my birthday)
671: [14:04:42] <Alexwijn> snippet*
672: [14:05:53] <marvanni> sorry for the inline paste
673: [14:05:54] <marvanni> $config = GridFieldConfig::create()
674: [14:05:54] <marvanni> ->addComponent(new GridFieldButtonRow('before'))
675: [14:05:54] <marvanni> ->addComponent(new MyCustomEditButtonWhichLinksToTheFirstItemOfTheList('buttons-before-left'));
676: [14:05:54] <marvanni> GridField::create('LayerSlider', 'LayerSlider', LayerSlider::get()->First(), $config);
677: [14:06:40] <Alexwijn> And that goes into getCMSFields right
678: [14:07:39] <marvanni> yes, you need to create a custombutton
679: [14:07:40] <marvanni> https://github.com/ajshort/silverstripe-gridfieldextensions/blob/master/code/GridFieldAddExistingSearchButton.php
680: [14:07:57] <marvanni> see method getHTMLFragments
681: [14:08:46] <marvanni> there you can do $grid->getList()->First() and construct an edit link
682: [14:09:08] <marvanni> please show me result, so I can use it as well wehen i needed :)
683: [14:09:28] <Alexwijn> Sure
684: [14:09:32] <marvanni> coffee! bring your birthday pie!
685: [14:09:54] <Alexwijn> You say neighbourhood yesterday
686: [14:09:57] <Alexwijn> Where are you now
687: [14:18:17] <marvanni> Den Haag
688: [14:18:26] <Alexwijn> Ah
689: [14:18:30] <Alexwijn> I'm near Rotterdam
690: [14:18:59] <Alexwijn> There is pie if your willing to travel so far :)
691: [14:19:28] <marvanni> thanks for the offer, but i'm not very fond of cake and pie.
692: [14:19:38] <Alexwijn> :)
693: [14:20:00] * zippy__ quit (Quit: zippy__)
694: [14:20:01] <Alexwijn> Well I setup all the code
695: [14:20:04] <Alexwijn> But the new tab is empty
696: [14:20:20] <Alexwijn> Let me SSPaste it
697: [14:20:34] <Alexwijn> http://www.sspaste.com/paste/show/5284da2e072af
698: [14:20:50] <Alexwijn> http://www.sspaste.com/paste/show/5284da40f1d52
699: [14:21:23] <Alexwijn> The LayerSliderEditButton is missing something
700: [14:21:29] <Alexwijn> allowed_actions have to been changed
701: [14:21:34] <Alexwijn> But still it should show something right
702: [14:21:48] * spronk2 quit (Remote host closed the connection)
703: [14:22:11] * spronk2 has joined #silverstripe
704: [14:22:37] <marvanni> yeah you need to pas the whole list to the gridfield
705: [14:22:53] <Alexwijn> Whole list?
706: [14:23:04] <marvanni> gridfield needs a list
707: [14:23:54] <Alexwijn> Ok i'm giving it LayerSlider::get() now
708: [14:24:26] <marvanni> and in the button getHTMLFragments you do $grid->getList()->First() to get the item
709: [14:24:52] <marvanni> and then you need to now how EditButton creates the correct link for the DetailForm
710: [14:25:51] <Alexwijn> Object->__call(): the method 'link' does not exist on 'LayerSlider'
711: [14:26:58] <Alexwijn> http://www.sspaste.com/paste/show/5284dbb1b27d2
712: [14:27:08] * Shrike_Finland quit (Quit: Leaving.)
713: [14:30:00] <marvanni> yes, but you dont need the link of the slider, but the gridfieldeditform link
714: [14:31:18] <marvanni> something like
715: [14:32:01] <marvanni> admin/pages/edit/EditForm/field/LayerSliders/item/46/edit
716: [14:35:07] <Alexwijn> How to generate that?
717: [14:35:30] <Alexwijn> Or is it just admin/pages/edit/EditForm/field/LayerSliders/item/ID/edit
718: [14:37:51] * micmania1 has joined #silverstripe
719: [14:40:11] <marvanni> dunno on top of my head, but gridfieldEditbutton and https://github.com/ajshort/silverstripe-gridfieldextensions/blob/master/code/GridFieldAddExistingSearchButton.php should have enough code to combine it
720: [14:41:09] <marvanni> 'Link' => Controller::join_links($gridField->Link('item'), $record->ID, 'edit')
721: [14:41:16] <marvanni> this is in GridFieldEditButton
722: [14:41:42] <marvanni> just change $record to $grid->getList()->First()->ID should work i guess
723: [14:42:03] <marvanni> $grid === $gridField
724: [14:42:45] <Alexwijn> Geen items gevonden.
725: [14:42:50] <Alexwijn> Ok we got something :)
726: [14:47:20] <Alexwijn> The button does not work
727: [14:49:22] <Alexwijn> Why is this so hard
728: [14:54:16] <Alexwijn> Ok got the link working
729: [14:54:17] <Alexwijn> Action 'item' isn't available on class GridField.
730: [14:54:43] <Alexwijn> URL: /admin/pages/edit/EditForm/field/LayerSlider/item/0/edit
731: [14:58:43] <Alexwijn> What am I missing?
732: [15:01:45] <Alexwijn> Is it not a better to make a AdminModel?
733: [15:01:51] <Alexwijn> And that you can add LayerSliders there
734: [15:01:59] <Alexwijn> And select it at the specific page
735: [15:02:03] <Alexwijn> Which you want to use
736: [15:04:11] <marvanni> sure, thats the easy way... but if you insist that you want to edit one related DO on a page. that should work..
737: [15:04:41] <Alexwijn> Not at the moment it isn't
738: [15:05:32] <marvanni> maybe the grid field cant find the item for a has_one....
739: [15:06:01] <Alexwijn> Well there is nothing created yet
740: [15:08:52] <Alexwijn> hm
741: [15:08:58] <Alexwijn> Is it not better to skip the LayerSlider
742: [15:08:59] <marvanni> and if you replace 0 with new
743: [15:09:05] <Alexwijn> And go right to the layers
744: [15:09:07] <marvanni> maybe
745: [15:09:13] <Alexwijn> And add Input fields to the Homepage page type
746: [15:09:16] <marvanni> nothing wrong with that
747: [15:09:23] <Alexwijn> I think thats more cleaner too
748: [15:10:27] * zfmf has joined #silverstripe
749: [15:10:58] <Alexwijn> So the LayerSlider will become a abstracted classs
750: [15:11:11] <Alexwijn> So if I want to create a page type that contains a SliderLayer I just implement it
751: [15:11:27] <Alexwijn> Correct?
752: [15:13:24] <marvanni> hm.. don't think so... it depends of the requirements
753: [15:13:42] <marvanni> i would sell it as a feautre that your client can create mulitple sliders
754: [15:13:48] <marvanni> feature
755: [15:14:27] <Alexwijn> I want it to make it easy
756: [15:14:28] <marvanni> "Look, you can create a new Slider set, but use it when your done by selecting the new one on the page"
757: [15:14:49] <Alexwijn> I don't want to make use of shortcodes for this
758: [15:14:57] <marvanni> then skip the root slide and make a Page => has_many layers
759: [15:15:12] <Alexwijn> Then what
760: [15:15:17] <Alexwijn> If the client add multiple sliders
761: [15:15:25] <Alexwijn> Then the page will show multiple slider too?
762: [15:17:27] <marvanni> no, he can only select on at a time.. if you use a sperate modeladmin to manage them
763: [15:18:05] <Alexwijn> So you can create a new LayerSlider with the ModelAdmin
764: [15:18:18] <Alexwijn> And select one of them at pages that supports them
765: [15:19:04] <marvanni> for example yes...
766: [15:20:07] <Alexwijn> Ok
767: [15:20:12] <Alexwijn> You ever worked with LayerSlider?
768: [15:22:50] <marvanni> i created them several times for my own projects.. but dunno if I know yours...
769: [15:22:55] <marvanni> is it a paralax slider?
770: [15:23:23] <Alexwijn> http://kreaturamedia.com/layerslider-responsive-jquery-slider-plugin/
771: [15:25:23] <marvanni> nie
772: [15:25:25] <marvanni> nice
773: [15:26:00] <marvanni> seems pretty complicated
774: [15:26:15] <Alexwijn> Not really
775: [15:26:20] <marvanni> if your client can work with that, ModelAdmin will be a breeze
776: [15:26:39] <Alexwijn> Only, I also need a graphical interface for it
777: [15:26:45] <Alexwijn> So you can move those objects around
778: [15:26:55] <Alexwijn> I think that can be done by a custom field right
779: [15:27:21] <Alexwijn> Use Javascript and with every movement I just put it in a hidden input field
780: [15:37:00] <marvanni> you have to 'draw' the movement? or script it?
781: [15:47:26] * ARNHOE quit ()
782: [15:59:54] * lerni quit (Quit: lerni)
783: [15:59:57] <Alexwijn> yes
784: [15:59:58] * Colin[pi] has joined #silverstripe
785: [16:00:01] <Alexwijn> script
786: [16:16:37] * ARNHOE has joined #silverstripe
787: [16:19:48] * catcher has joined #silverstripe
788: [16:20:35] * Colin[pi] quit (Ping timeout: 244 seconds)
789: [16:22:44] * spronk2 quit (Quit: spronk2)
790: [16:23:30] * ARNHOE quit ()
791: [16:26:32] <Alexwijn> I just use jQuery Draggable :)
792: [16:28:27] <Alexwijn> Do you know how to move AdminModels to another tab
793: [16:28:34] <Alexwijn> For example inside a tab at SiteConfig
794: [16:43:18] <marvanni> just add a gridfield...
795: [16:44:14] <marvanni> ModelAdmin is just Controller with some DataObject selectors and Searchforms to a show a GridField for a DataObject
796: [16:57:29] * sekjal has joined #silverstripe
797: [17:09:07] * hubertusanton quit (Remote host closed the connection)
798: [17:12:31] <catcher> Anyone had luck with UploadField in a widget?
799: [17:13:26] * kinglozzer quit ()
800: [17:22:51] * willr has joined #silverstripe
801: [17:24:40] * willr quit (Client Quit)
802: [17:44:44] <Alexwijn> So I just copy all the code of ModelAdmin, marvanni?
803: [17:44:53] * Marvanni_ has joined #silverstripe
804: [17:44:56] <Marvanni_> huh, i add a new tab to Root.Main and its also visible on the HistoryTab?
805: [17:46:28] <Alexwijn> A second Marvanni :)
806: [17:50:06] <Marvanni_> ah jean, I'm on the laptop now… irc is still open on the workhorse
807: [17:54:55] * AlphaCactus_ has joined #silverstripe
808: [17:55:35] * AlphaCactus quit (Ping timeout: 272 seconds)
809: [17:55:49] * AlphaCactus_ is now known as AlphaCactus
810: [17:58:47] * Liquide has joined #silverstripe
811: [17:59:30] <Alexwijn> How to change the name of a tab
812: [17:59:44] <Alexwijn> So it can be transatable
813: [18:04:28] <Alexwijn> nvm found it
814: [18:04:57] <Alexwijn> oh wait, that was not it
815: [18:09:05] * willmorgan quit (Ping timeout: 244 seconds)
816: [18:09:46] <Alexwijn> marvanni, are you there?
817: [18:14:01] <Alexwijn> Is anyone here that can assist me?
818: [18:14:11] * Alexwijn hears his echo
819: [18:19:19] <Marvanni_> fieldLabels()
820: [18:21:38] <Alexwijn> ??
821: [18:22:20] <Marvanni_> if you want a tab to be translatable, you can use fieldlabels
822: [18:22:39] <Marvanni_> function fieldLabels() {}
823: [18:23:19] <Alexwijn> I sued $fields->addFieldToTab('Root.LayerSlider', $listField);
824: [18:23:26] <Alexwijn> used*
825: [18:23:52] <Alexwijn> Now it displays the tab as Layer Slider, but I dont want the space
826: [18:28:02] <Alexwijn> ah found it
827: [18:29:10] <Alexwijn> Now I got the following: http://www.sspaste.com/paste/show/5285147178037
828: [18:29:47] <Marvanni_> add a method fieldLabels and add a field label for LayerSlider
829: [18:30:04] <Alexwijn> But "LayerSlide::get()" needs to be replaced with a datalist that contains all the LayerSlides that is attached to the current SlideLayer
830: [18:30:11] <Alexwijn> yeah I found that
831: [18:31:11] <Marvanni_> use the relation name
832: [18:31:29] <Marvanni_> so if has_many… $this->LayerSlides()
833: [18:32:25] <Alexwijn> Oh I tried $this->LayerSlides
834: [18:32:28] <Alexwijn> But not hte function
835: [18:32:31] <Alexwijn> No errors so far
836: [18:32:45] <Alexwijn> Only the back buttons are acting weird
837: [18:32:58] <Alexwijn> It is not going to the right page when you hit bac
838: [18:33:00] <Alexwijn> k
839: [18:33:29] <Alexwijn> Also I need to add a LayerSlider before I can attach Slides to it
840: [18:36:51] <Marvanni_> dinner!
841: [18:37:55] <Alexwijn> hm :)
842: [18:37:56] <Alexwijn> Enjoy
843: [18:45:54] * SightUnseen has joined #silverstripe
844: [18:45:56] * SightUnseen has left #silverstripe
845: [19:07:37] * antmas quit (Quit: Page closed)
846: [19:07:58] * antmas has joined #silverstripe
847: [19:12:40] <Alexwijn> I added a new FieldSet to the SiteConfig
848: [19:12:49] <Alexwijn> But when editing a item there
849: [19:12:56] <Alexwijn> and go back it return to the first tab of SiteConfig
850: [19:13:03] <Alexwijn> Is it possible to return automaticly to that new tab
851: [19:16:40] * FrozenFire has joined #silverstripe
852: [19:19:52] * joelpittet has joined #silverstripe
853: [19:21:33] <simon_w> Upgrade
854: [19:22:55] <Alexwijn> I got the following JSON: http://www.sspaste.com/paste/show/52852107122ba
855: [19:23:15] <Alexwijn> Does anyone got any suggestion what the best is to setup a DataObjects for this
856: [19:23:31] <Alexwijn> Or just use:
857: [19:23:31] <Alexwijn> 'Title' => 'Varchar',
858: [19:23:31] <Alexwijn> 'Config' => 'Text',
859: [19:23:31] <Alexwijn> 'Hidden' => 'Boolean'
860: [19:25:15] * oddnoc has joined #silverstripe
861: [19:26:43] * ARNHOE has joined #silverstripe
862: [19:28:12] * ARNHOE quit (Remote host closed the connection)
863: [19:32:00] * nickmolhoek has joined #silverstripe
864: [19:36:57] * ARNHOE has joined #silverstripe
865: [19:38:47] * DigNZ has joined #silverstripe
866: [19:41:26] <Marvanni_> Hoe can I disable /remove the CMSPageHistoryController?
867: [19:43:45] <Alexwijn> Lol, I started to read that sentance as dutch one :)
868: [19:43:51] * kpettit has joined #silverstripe
869: [19:44:10] <Alexwijn> I guess it just a matter to remove the FieldSet
870: [19:44:21] <Alexwijn> Locate the name and remove it
871: [19:45:47] <guzzlefry> Is there a way to set an automatic password expiry for members?
872: [19:47:32] * ARNHOE quit ()
873: [19:47:43] <simon_w> Yes
874: [19:48:06] <Marvanni_> Alexwijn have you seen this one :
875: [19:48:07] <Marvanni_> http://addons.silverstripe.org/add-ons/burnbright/silverstripe-hasonefield
876: [19:48:29] <Alexwijn> Now yet
877: [19:49:04] <Alexwijn> Not*
878: [19:49:05] <simon_w> guzzlefry, http://api.silverstripe.org/3.1/source-class-Member.html#107-112
879: [19:49:26] <Alexwijn> Marvanni_, Well I'm going to approach a different way
880: [19:49:35] <guzzlefry> err
881: [19:49:38] <guzzlefry> I left out details.
882: [19:49:46] <Marvanni_> for the next time :)
883: [19:49:46] <guzzlefry> simon_w: During a CSV import?
884: [19:49:48] <Alexwijn> The LayerSliders will be managed by SS
885: [19:50:02] <Alexwijn> And SS still has Layers and Sliders as DataObjects
886: [19:50:06] * UndefinedOffset quit (Quit: Leaving.)
887: [19:50:11] <Alexwijn> But I control how they get inserted into the database
888: [19:50:11] * zfmf has left #silverstripe
889: [19:50:12] <simon_w> guzzlefry, turn it on, import, turn it off
890: [19:50:35] <Alexwijn> So I'm try to render LayerSlider CMSFields with a different template
891: [19:50:37] <guzzlefry> oh, I actually want it left on. I just wasn't sure if it was smart enough to apply it to imports as well as the edit forms.
892: [19:50:40] <Alexwijn> But I'm unable to do that now
893: [19:50:40] <guzzlefry> anyway, thanks again
894: [19:51:10] <Alexwijn> It's like a party, everybody talks through each other :)
895: [19:51:52] * zippy__ has joined #silverstripe
896: [19:53:34] <Alexwijn> Does anyone know how to render FieldList with a different template?
897: [19:53:55] <guzzlefry> overwrite the template?
898: [19:54:06] <guzzlefry> in themes
899: [19:54:11] <guzzlefry> I think that works anyway.
900: [19:54:18] <Alexwijn> It for the admin panel
901: [19:54:23] <Alexwijn> And for specific Model
902: [19:54:26] <guzzlefry> oh
903: [19:56:03] <Alexwijn> I guess I just need to create a new controller
904: [19:56:14] <Alexwijn> And then redirect the create and edit button it
905: [19:57:05] <Alexwijn> I need to return json if do that right
906: [19:57:50] <Alexwijn> Or should I just extend from LeftAndMain
907: [19:57:55] <Alexwijn> And hide it somehow at the menus
908: [19:58:55] <antmas> fucking javascript :<
909: [19:59:04] <antmas> whay am I doing this on Friday
910: [19:59:17] <guzzlefry> It's Thursday!
911: [19:59:22] <guzzlefry> stop lying to me! :(
912: [19:59:41] <simon_w> Stop living in the past!
913: [19:59:51] <antmas> get with the future!
914: [19:59:55] <antmas> get an iPhone!
915: [20:00:25] <guzzlefry> iPhone 8?
916: [20:00:39] * willmorgan has joined #silverstripe
917: [20:03:38] <simon_w> Who wants to guess when my iPhone 5s will stop receiving updates from Apple?
918: [20:03:51] <simon_w> Think it'll be longer than the 18 months a Google device gets?
919: [20:05:50] <Marvanni_> does templates provide permission logic? or do I have to code it in the controllers?
920: [20:06:16] <Marvanni_> if CurrentMember.Permission(SOME_PERMISSION) or something
921: [20:06:47] <simon_w> You need to do it in the controller
922: [20:06:50] * EasyCo has joined #silverstripe
923: [20:06:57] <Marvanni_> ok, ty
924: [20:07:52] <guzzlefry> simon_w: Bad enough dudes jailbreak their Android phones and install unstable third party firmware. :P
925: [20:09:27] * UndefinedOffset has joined #silverstripe
926: [20:10:10] * willr has joined #silverstripe
927: [20:16:16] <Marvanni_> in transiflex
928: [20:16:17] <Marvanni_> Can't assign code "%s" with privileged permissions (requires ADMIN access)
929: [20:16:28] <Marvanni_> in dutch in don't need the single quote
930: [20:16:35] <Marvanni_> now I get
931: [20:16:38] <Marvanni_> The translation does not contain the same number of opening parentheses '(' as the original phrase
932: [20:16:41] <Marvanni_> any hints?
933: [20:18:03] <Marvanni_> no, its moaning about the ()
934: [20:28:09] * willr quit (Quit: willr)
935: [20:28:31] <Marvanni_> do I need special rights to make corrections in transiflex?
936: [20:30:24] <catcher> taking a vote - how many objects do you consider to be too many for Sitetree? I have a couple sections that would benefit from all the Page stuff, but could get up to 50-75 records in a couple years.
937: [20:30:55] <Marvanni_> a few weeks ago I created 5 * 100 * 100 pages
938: [20:31:11] <Marvanni_> no problem in cms, but fronted took ages
939: [20:31:30] <simon_w> Cache your menu
940: [20:31:50] <Marvanni_> I could even drag n drop pages with 100 children in the cmd without any problems
941: [20:31:59] <Marvanni_> yea, but i just wanted to test the cms
942: [20:32:41] <catcher> Am I going to regret going with Pages when it hits 100?
943: [20:32:50] <simon_w> Nope
944: [20:32:53] * willr has joined #silverstripe
945: [20:33:17] <guzzlefry> Any idea on how to use Member without requiring an Email address? Or maybe even spoofing one...
946: [20:33:28] <guzzlefry> The users don't actually login to the silverstripe install.
947: [20:33:47] <guzzlefry> It's something I'm using as a backend to mod_auth stuff.
948: [20:33:59] <simon_w> guzzlefry, set it to NULL
949: [20:34:11] <guzzlefry> simon_w: How would I do that?
950: [20:34:23] <simon_w> $member->Email = null;
951: [20:35:01] <guzzlefry> The editform seems to yell at me if I don't set it to anything?
952: [20:35:19] <simon_w> Well yeah
953: [20:35:32] <simon_w> Remove it from the edit form and validator then
954: [20:37:10] <guzzlefry> I tried that at first, well removing the field from the form, not the validator. When saving a user the edit form redirects to a blank view.
955: [20:39:00] <guzzlefry> No errors in Firebug or apache logs. :/
956: [20:41:04] <guzzlefry> okay
957: [20:41:12] <guzzlefry> it only occurs when adding new members.
958: [20:43:09] * UncleCheese has joined #silverstripe
959: [20:43:24] <guzzlefry> Any ideas?
960: [20:51:01] <guzzlefry> Maybe it would make more sense to implement something similar to Member?
961: [20:51:02] <guzzlefry> :/
962: [20:52:42] <catcher> I'm making a parent Page class that should be subclassed, but not an available type in the dropdown. How?
963: [20:53:02] <catcher> Ah, HiddenClass?
964: [20:56:00] * kpettit has left #silverstripe
965: [20:57:52] * r3v3rb has joined #silverstripe
966: [20:58:08] * Liquide quit ()
967: [20:58:09] <catcher> Seems to be inherited by subclasses though.
968: [20:58:13] <oddnoc> catcher: I usually use the $hide_ancestor static
969: [20:59:02] <guzzlefry> How do I get the validator from within updateCMSFields?
970: [21:02:06] <catcher> oddnoc, doesn't seem to accept an array
971: [21:02:48] <oddnoc> Right, it accepts the name of the ancestor to hide.
972: [21:03:35] <catcher> I must be misunderstanding - I want it (and a couple other pages) hidden from dropdown site-wide, wouldn't they need to go in Page?
973: [21:04:32] <oddnoc> If you want to hide Page, then in each class that extends page, set the static to 'Page'
974: [21:24:44] * peter_ss has joined #silverstripe
975: [21:26:07] <antmas> hmmm, has anyone had an issue where having allowed_children set to all makes the right-click contextual menu jump off to the right for the site tree?
976: [21:26:13] <antmas> I'm betting it's a 3.0 thing
977: [21:26:17] <antmas> but super annoying
978: [21:28:03] <antmas> a bit like this http://imgur.com/Dq5oHkd,chcTl9L
979: [21:28:14] <guzzlefry> Is there any effort to make a CMS that doesn't depend on Javascript?
980: [21:28:18] <antmas> off to the left*
981: [21:28:55] * wracu has joined #silverstripe
982: [21:29:05] <sekjal> anyone know of a good tutorial on how to use GridFieldEditableColumns? I feel like I could do a lot with it if I understood it better
983: [21:33:05] <Marvanni_> check gridfieldextensions on github
984: [21:33:18] <Marvanni_> that module covers pretty much all you can do with gridfield
985: [21:33:57] <Marvanni_> can i disable stage/Live filtering when I DO::get('SiteTree') ?
986: [21:33:58] <sekjal> Marvanni_: yes, I've installed the module and have access to the new components, but the how of using them isn't as clearly documented in GitHub as it could be
987: [21:35:29] * UndefinedOffset quit (Quit: Leaving.)
988: [21:37:13] <Marvanni_> just browse the core code and the code from the gridfieldextensions and just try some settings and create your own buttons, etc
989: [21:37:28] <Marvanni_> its very powerful, yet the code is quite clean
990: [21:38:02] * oddnoc has left #silverstripe
991: [21:38:14] * oddnoc has joined #silverstripe
992: [21:38:47] <sekjal> what I'm looking for is some documentation on the code, rather than having to read the code itself and trial-error my way through it
993: [21:39:25] <sekjal> for example, how do I use the callback option in setDisplayFields()? I'd like to be able to include a calendar with my date field
994: [21:40:49] <Marvanni_> https://github.com/ajshort/silverstripe-gridfieldextensions/blob/master/docs/en/index.md
995: [21:41:06] <Marvanni_> 'FirstField' => function($record, $column, $grid) {
996: [21:41:06] <Marvanni_> return new TextField($column);
997: [21:41:07] <Marvanni_> }
998: [21:41:23] <sekjal> Marvanni_: yup, that's what's not clear
999: [21:41:38] <Marvanni_> this is the callback
1000: [21:41:39] <Marvanni_> function($record, $column, $grid) {
1001: [21:41:53] <sekjal> what are $record, $column and $grid?
1002: [21:42:01] <Marvanni_> quess
1003: [21:42:04] <Marvanni_> q=g
1004: [21:42:15] <sekjal> that's what I'm asking not to have to do
1005: [21:42:20] <Marvanni_> hehe
1006: [21:42:32] <Marvanni_> record = the data object for that row
1007: [21:42:55] <Marvanni_> column the FirstField column
1008: [21:43:03] <Marvanni_> grid the GridField
1009: [21:43:11] <Marvanni_> can't explain it easier
1010: [21:43:37] <sekjal> fair enough.
1011: [21:44:21] <Marvanni_> if(isset($info['callback'])) {
1012: [21:44:21] <Marvanni_> $field = call_user_func($info['callback'], $record, $col, $grid);
1013: [21:44:32] <Marvanni_> in GridFieldEditableColumns::getFields
1014: [21:47:08] <Marvanni_> and you can always do a hardcore var_dump($variable);exit(); what it contains ;)
1015: [21:52:55] <sekjal> thanks, Marvanni_. having some initial success. I'll continue my lessons tomorrow
1016: [21:52:57] <sekjal> cheers
1017: [21:53:36] <Marvanni_> good luck!
1018: [21:55:43] * sekjal quit (Quit: Leaving)
1019: [21:57:32] * Alexwijn quit ()
1020: [21:57:36] * oddnoc has left #silverstripe
1021: [22:05:12] * peter_ss quit (Ping timeout: 240 seconds)
1022: [22:05:30] * peter_ss has joined #silverstripe
1023: [22:06:10] <antmas> hmmm, anyone know off hand where spellcheck is now disabled?
1024: [22:07:37] <guzzlefry> hm
1025: [22:08:12] <antmas> it's browser based now... how do switch back?
1026: [22:08:13] <antmas> :P
1027: [22:08:31] <guzzlefry> simon_w: Config::inst()->update("Member", "password_expiry_days", 60); Is that correct? Doesn't seem to be working with the import. :/
1028: [22:08:33] <simon_w> antmas, you mean switch back to the thing that doesn't work?
1029: [22:08:47] <antmas> simon_w: well, it did work
1030: [22:08:50] <antmas> MOSTLY
1031: [22:08:59] <simon_w> antmas, nope. Google removed the API.
1032: [22:09:06] * UncleCheese quit (Quit: UncleCheese)
1033: [22:09:09] <antmas> simon_w: dang
1034: [22:10:34] <antmas> are there any alternatives? browser based is horrid
1035: [22:11:11] <guzzlefry> Maybe I need to set that in yml instead?
1036: [22:11:14] * UncleCheese has joined #silverstripe
1037: [22:14:33] <simon_w> Hmm, tempted to have an early lunch
1038: [22:14:41] <antmas> hmmm PSpell
1039: [22:20:26] <guzzlefry> guys!
1040: [22:20:58] <antmas> guzzlefry: !
1041: [22:21:00] <guzzlefry> if(!$this->isChanged('PasswordExpiry')) <-- determines whether or not to set the default expiry date.
1042: [22:21:08] <guzzlefry> It's not firing when importing. :/
1043: [22:21:13] * EasyCo quit (Ping timeout: 244 seconds)
1044: [22:26:08] * r3v3rb quit (Quit: r3v3rb)
1045: [22:27:42] * Colin[pi] has joined #silverstripe
1046: [22:28:53] <guzzlefry> Someone correct me if I'm wrong here.
1047: [22:30:39] <guzzlefry> When importing a list of Members via CSV file, if the PasswordExpiry isn't set and if the Member::password_expiry_days property is set, the PasswordExpiry property on that new member should be set to $password_expiry_days after today.
1048: [22:30:49] <guzzlefry> If so, I have a PR to do. :P
1049: [22:32:43] <antmas> :O
1050: [22:32:51] <antmas> yay, my partime contract is ending
1051: [22:32:53] <antmas> FINALLY
1052: [22:33:25] <guzzlefry> FREEDOOMMM
1053: [22:33:29] <antmas> no more graphic design or email templates for me
1054: [22:33:31] <antmas> :D
1055: [22:36:02] <antmas> but that also means no more free Speight's :(
1056: [22:36:12] <guzzlefry> I don't know what those are.
1057: [22:36:18] <antmas> guzzlefry: NZ beer
1058: [22:36:31] <peter_ss> hello how to do a full page refresh on an success response from an ajax call in the CMS admin?
1059: [22:37:32] <Colin[pi]> hai2all
1060: [22:37:41] <antmas> Colin[pi]: COLIN!
1061: [22:37:43] <antmas> HAI
1062: [22:37:49] <Colin[pi]> :D
1063: [22:37:59] <guzzlefry> hello
1064: [22:39:30] <antmas> anyone need some graphic design or email template work?
1065: [22:39:35] <antmas> :P
1066: [22:40:33] * Stomach has joined #silverstripe
1067: [22:40:36] <guzzlefry> ss23: Given that documentation is kind of lacking, who do I confirm with about intended behavior of certain functions?
1068: [22:40:45] * catcher quit (Quit: Leaving)
1069: [22:41:25] <guzzlefry> Don't want to waste time in setting up a dev environment for SilverStripe just to be told that I'm doing it wrong. >_>
1070: [22:42:14] <ss23> guzzlefry: Uhhhhh
1071: [22:42:25] <ss23> guzzlefry: You can't really
1072: [22:42:37] <ss23> You confirm "it works" or "it doesn't work" (it being what you feel like it should do I guess?)
1073: [22:43:25] <guzzlefry> When importing a list of Members via CSV file, if the PasswordExpiry isn't set and if the Member::password_expiry_days property is set, the PasswordExpiry property on that new member should be set to $password_expiry_days after today.
1074: [22:43:26] <guzzlefry> ^ this
1075: [22:43:51] <ss23> You want to know if thats correct?
1076: [22:43:55] <guzzlefry> yessir
1077: [22:44:02] <guzzlefry> That's the assumption I'm basing this fix on.
1078: [22:44:02] <ss23> Does it do that?
1079: [22:44:08] <ss23> If yes, then yes! If not, then no!
1080: [22:44:12] <ss23> :D
1081: [22:44:16] <ss23> Sorry guzzlefry, but that's how I work
1082: [22:44:21] <guzzlefry> understood
1083: [22:44:37] <guzzlefry> Also, wish I could just send in a patch. :P
1084: [22:49:56] <simon_w> Bah, still only a 70 kb patch
1085: [22:51:06] * simon_w thinks it should be lunch time now
1086: [22:56:21] <antmas> ugggh there is no php5-pspell package available
1087: [22:56:24] <antmas> ;___;
1088: [22:56:25] <antmas> booooooooo
1089: [22:57:07] <guzzlefry> antmas: Pear, composer module?
1090: [22:57:24] <antmas> guzzlefry: ?
1091: [22:57:34] <antmas> installing via yum
1092: [22:57:50] <antmas> which I'm guessing should be yum install blahblah?
1093: [22:58:23] <guzzlefry> oh
1094: [22:58:27] <guzzlefry> there's an actual library...
1095: [22:58:30] <guzzlefry> http://us1.php.net/pspell
1096: [22:59:06] <antmas> yeah, just can't seem to find it to install :/
1097: [22:59:22] <simon_w> pecl install spell
1098: [22:59:44] <antmas> simon_w: huh?
1099: [23:00:18] <simon_w> Oh, it's a compile time thing
1100: [23:00:32] <antmas> indeed
1101: [23:00:35] <simon_w> Have fun :p
1102: [23:00:39] <guzzlefry> Gentoo!
1103: [23:02:52] <antmas> huh, it's CentOS - no 'php5' needed
1104: [23:05:10] <simon_w> lunch lunch lunch, what to lunch
1105: [23:05:14] <simon_w> Some make a decide for me!
1106: [23:06:44] <ss23> simon_w: CAKE
1107: [23:06:45] <ss23> :D
1108: [23:07:03] * coldblooded01 has joined #silverstripe
1109: [23:07:30] <peter_ss> hey guys in my custom model admin. i have a form how can i do a reload or redirect after a form submission? since it's doing an ajax
1110: [23:10:01] <coldblooded01> Any opinions on Silverstripes Report generating framework?
1111: [23:10:02] <coldblooded01> http://doc.silverstripe.org/framework/en/reference/site-reports
1112: [23:10:54] <Colin[pi]> coldblooded01: I've used it a fair bit in 2.4, it needs a fair bit of hacking to be effective
1113: [23:11:10] <coldblooded01> I see
1114: [23:11:27] <Colin[pi]> if you want simple tabular data it's pretty easy to use
1115: [23:11:31] * peter_ss1 has joined #silverstripe
1116: [23:11:57] <coldblooded01> planning on using it on ss3.1 on a large-scale site. Right now my hacky custom report generating script in .csv exhausts the server big time
1117: [23:12:07] <coldblooded01> hmm, thats what i need
1118: [23:12:33] <Colin[pi]> yeah it should be able to do that with no problem
1119: [23:13:09] * peter_ss quit (Ping timeout: 272 seconds)
1120: [23:14:54] <Colin[pi]> coldblooded01: I hacked the bejesus out of mine to make it do charting on the last project
1121: [23:15:31] <coldblooded01> sweet
1122: [23:16:51] <simon_w> ss23, probably shouldn't :p
1123: [23:17:37] <Colin[pi]> not even lolly cake?
1124: [23:17:51] <simon_w> mmm, lolly cake
1125: [23:18:08] <antmas> woah lolly cake
1126: [23:18:13] <madmatt> haha ss23
1127: [23:18:15] <antmas> haven't had that in forever
1128: [23:18:46] <Colin[pi]> I didn't even know it was a thing
1129: [23:24:16] <antmas> w00t, spellcheck works again
1130: [23:24:19] <antmas> happy clients :D
1131: [23:26:12] <ss23> :D
1132: [23:31:12] <coldblooded01> Colin[pi]: you have any simple examples for using SS_Report in ss3.1?
1133: [23:31:27] <Colin[pi]> no sorry my stuff was in 2.4 :\
1134: [23:31:40] <coldblooded01> like, pulling information of all pages from the CMS. Or pulling info from a data object table, fields, infoz
1135: [23:31:42] <coldblooded01> I see
1136: [23:31:44] <coldblooded01> ok
1137: [23:32:54] <Colin[pi]> though i suspect it probably hasn't changed much
1138: [23:33:02] <Colin[pi]> just replaced the table field with a grid field
1139: [23:33:26] * peter_ss has joined #silverstripe
1140: [23:34:33] * peter_ss1 quit (Ping timeout: 246 seconds)
1141: [23:34:45] <coldblooded01> the documentation for it with version tagged as 3.1 is totally outdated (http://doc.silverstripe.org/framework/en/reference/site-reports)
1142: [23:35:04] <Colin[pi]> like much of the documentation >_>
1143: [23:35:09] <coldblooded01> xD
1144: [23:35:24] <coldblooded01> someone needs to get hire to update all that
1145: [23:35:28] <coldblooded01> hired*
1146: [23:35:29] * Marvanni_ quit (Quit: Marvanni_)
1147: [23:35:35] <Colin[pi]> yeah, his name is ss23
1148: [23:35:36] <Colin[pi]> ;)
1149: [23:35:45] <coldblooded01> :O
1150: [23:36:26] <coldblooded01> i thought ss23 == silverstripe2.3 end of story
1151: [23:36:31] <coldblooded01> they need ss3.1
1152: [23:36:40] <coldblooded01> anyway, got the report working to return all the sites pages
1153: [23:37:00] * UncleCheese quit (Quit: UncleCheese)
1154: [23:40:50] <ss23> ss23 is not silverstripe related
1155: [23:40:51] <ss23> :(
1156: [23:40:56] <Colin[pi]> lol
1157: [23:41:08] <simon_w> Okay then!
1158: [23:41:10] <Colin[pi]> tbh that's what I thought too when I first saw your nick
1159: [23:41:11] <ss23> ;____;
1160: [23:41:17] <ss23> DON'T MAKE ME BAN YOU, simon_w!
1161: [23:41:26] <Colin[pi]> your powers are weak old man
1162: [23:41:28] <simon_w> DON'T MAKE ME GET YOU FIRED
1163: [23:41:30] <coldblooded01> lol
1164: [23:42:02] <ss23> 1521 packets transmitted, 496 packets received, 67.4% packet loss
1165: [23:42:04] <ss23> yay internet!
1166: [23:42:06] <ss23> simon_w: :(
1167: [23:46:40] <simon_w> Looks like no free server for ss23
1168: [23:47:29] <simon_w> Hmm, noodles it is!
1169: [23:47:45] <antmas> hey so it's Friday
1170: [23:47:53] <antmas> here is something to celebrate with
1171: [23:47:54] <antmas> http://www.youtube.com/watch?v=TvLZxG6pB6U
1172: [23:49:24] <Colin[pi]> what in the actual
1173: [23:49:38] <ss23> o.o
1174: [23:49:39] <ss23> why
1175: [23:49:39] <Colin[pi]> ok never going close to dolphins
1176: [23:50:43] <antmas> he also totally knows the camera is watching o.O
1177: [23:50:53] <antmas> filming*
1178: [23:51:05] <ss23> rofl
1179: [23:52:16] <antmas> so I'm guessing this is what they mean when they say 'so long, and thanks for all the fish'...
1180: [23:52:26] <ss23> dude
1181: [23:52:28] <ss23> rofl
1182: [23:52:36] <Colin[pi]> LOL
1183: [23:52:57] <antmas> :P
1184: [23:53:24] <Colin[pi]> least now you know why dolphins are always smiling :D
1185: [23:53:33] <antmas> XD
1186: [23:57:19] * willr quit (Quit: willr)
1187: [23:57:24] * peter_ss quit (Ping timeout: 260 seconds)
1188: [23:58:21] * peter_ss has joined #silverstripe

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